[hatari-devel] Crosscompiling Hatari for GP2X Wiz
Matthias Arndt
marndt at asmsoftware.de
Mon Mar 28 19:09:55 CEST 2011
Am Montag, den 28.03.2011, 18:35 +0200 schrieb Thomas Huth:
> > Just edit the CMake configuration variables with ccmake (ncurses UI).
>
> No, for configuring a cross-compilation toolchain, that's maybe not
> enough. Have a look at this URL, it describes how to set up a cross
> compilation toolchain with CMake:
>
> http://www.cmake.org/Wiki/CMake_Cross_Compiling
>
I now used this Cross compiling definition and I get a lot farther into
the build process:
[ 74%] Building C object src/CMakeFiles/hatari.dir/resolution.c.o
cd /home/marndt/src/hatari/wiz/src
&& /opt/arm-openwiz-linux-gnu/bin/arm-openwiz-linux-gnu-gcc -DCONFDIR=
\"/etc\" -D_GNU_SOURCE="1 -D_REENTRANT" -Wcast-qual -Wbad-function-cast
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wall
-Wwrite-strings -Wsign-compare -Wformat-security -O3 -DNDEBUG
-I/home/marndt/src/hatari/wiz
-I/opt/arm-openwiz-linux-gnu/arm-openwiz-linux-gnu/sys-root/usr/include/SDL -I/home/marndt/src/hatari/src/uae-cpu -I/home/marndt/src/hatari/src/includes -I/home/marndt/src/hatari/src/debug -I/home/marndt/src/hatari/src/falcon -I/opt/arm-openwiz-linux-gnu/arm-openwiz-linux-gnu/sys-root/usr/include -o CMakeFiles/hatari.dir/resolution.c.o -c /home/marndt/src/hatari/src/resolution.c
/home/marndt/src/hatari/src/resolution.c: In function 'Resolution_Init':
/home/marndt/src/hatari/src/resolution.c:38: error: 'SDL_VideoInfo' has
no member named 'current_w'
/home/marndt/src/hatari/src/resolution.c:38: error: 'SDL_VideoInfo' has
no member named 'current_h'
/home/marndt/src/hatari/src/resolution.c:39: error: 'SDL_VideoInfo' has
no member named 'current_w'
/home/marndt/src/hatari/src/resolution.c:40: error: 'SDL_VideoInfo' has
no member named 'current_h'
/home/marndt/src/hatari/src/resolution.c:46: error: 'SDL_VideoInfo' has
no member named 'current_w'
/home/marndt/src/hatari/src/resolution.c:46: error: 'SDL_VideoInfo' has
no member named 'current_h'
make[2]: *** [src/CMakeFiles/hatari.dir/resolution.c.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home/marndt/src/hatari/wiz'
make[1]: *** [src/CMakeFiles/hatari.dir/all] Fehler 2
make: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis '/home/marndt/src/hatari/wiz'
My libSDL for the target is not the latest version and probably it is
unlikely to get one.
For compatibility reasons this obvious new call of SDL_ should be made
optional or replaced with backward compatible code.
3 cheers for Thothy for helping me further! :)
Matthias
--
Matthias Arndt <marndt at asmsoftware.de>
PGP-Key: http://www.final-memory.org/files/marndt.asc ICQ: 40358321
>>> Jabber: simonsunnyboy at jabber.ccc.de <<<
More information about the hatari-devel
mailing list