[hatari-devel] Crosscompiling Hatari for GP2X Wiz

Matthias Arndt marndt at asmsoftware.de
Wed Mar 30 18:47:57 CEST 2011


Am Dienstag, den 29.03.2011, 18:25 +0200 schrieb Matthias Arndt:
> Am Montag, den 28.03.2011, 19:09 +0200 schrieb Matthias Arndt:
> > 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! :)
> 
> I temporarily removed the call and evaluation of SDL_VideoInfo. And
> presto, the build continues to the end.
> 
> I will do a test of this gizmo later.

The good points: the binary can execute, I can get terminal output.
The bad point: The config I customtailored for my tests works with the
PC Linux build and opens a 320x240 window. On the Wiz it gives "Video
mode not supported" 

That error seems to come from SDL and not Hatari.

The following SDL video init works for my own SDL game on the Wiz:

screen = SDL_SetVideoMode(320, 240, 16, SDL_video_flags)

The flags are set to no hardware surface, fullscreen, no doublebuffer

How can I configure Hatari via commandline or the configfile to engage
such videomode?

I won't start coding my joystick and keyboard patches unless I finally
can get some screen output or atleast an EmuTOS bootscreen on my Wiz.

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