I don't mind whether I use Open2x or Code::block, all i want to do is to compil my .cpp files, just as if I were using gpp to compil a linux-exe
I successfully created a test program.gpe with Open2x, but it's segfaulting my GP2X
It works fine on my computer, same code
I'm using SDL_SWSURFACE, 16bpp, what else should I do??
Thanks for all your help
i'm about to compile my first GP2X program!
[root@gp2x sd]$./test.gpe
SDL_GP2X: CreateDevice
SDL_GP2X: VideoInit
SDL_GP2X: Physical screen = 320x240 (ilace = 0, pol = 0)
SDL_GP2X: InitHWSurfaces
SDL_GP2X: InitHWSurfaces scratch = 0
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x18ce68 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 5242624 bytes @ 0x18ce80
SDL_GP2X: SurfaceManager allocated 256 bytes at 0x41100000
SDL_GP2X: Looking for a mouse
SDL_GP2X: No mice found
SDL_SYS_JoystickInit
SDL_GP2X: SYS_JoystickName(0)
SDL_GP2X: ListModes
SDL_GP2X: Setting video mode 320x240 16 bpp, flags=40000001
SDL_GP2X: Freeing cursor 0x18ce68
SDL_GP2X: SurfaceManager freeing 256 bytes @ 0x41100000 from bucket 0x18c5d8
SDL_GP2X: merging with next bucket (0x18ce80) making 5242880 bytes
SDL_GP2X: FreeHWSurfaces
SDL_GP2X: Freeing bucket 0x18c5c0 (size 17825792)
SDL_GP2X: Freeing bucket 0x18c5d8 (size 5242880)
SDL_GP2X: InitHWSurfaces
SDL_GP2X: InitHWSurfaces scratch = 0
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x18d2b8 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 5242624 bytes @ 0x18ce68
SDL_GP2X: SurfaceManager allocated 256 bytes at 0x41100000
SDL_GP2X: SurfaceManager allocating 307200 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 4935424 bytes @ 0x18cea0
SDL_GP2X: SurfaceManager allocated 307200 bytes at 0x41100100
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
SDL_GP2X: Freeing cursor 0x18d2b8
SDL_GP2X: SurfaceManager freeing 256 bytes @ 0x41100000 from bucket 0x18c5c0
SDL_GP2X: VideoQuit
SDL_GP2X: FreeHWSurfaces
SDL_GP2X: Freeing bucket 0x18c5d8 (size 17825792)
SDL_GP2X: Freeing bucket 0x18c5c0 (size 256)
SDL_GP2X: Freeing bucket 0x18ce68 (size 307200)
SDL_GP2X: Freeing bucket 0x18cea0 (size 4935424)
SDL_GP2X: FreeHWSurface 0x18ceb8
SDL_GP2X: SurfaceManager freeing 5242880 bytes @ 0x40000000 from bucket 0x18c484
SDL_GP2X: DeleteDevice
[root@gp2x sd]$