GP2X Toolchain Problems


efegea

Active Member
Joined
Aug 8, 2005
Messages
636
Age
38
Location
GP32Spain, Spain
Hi, I've compiled gcc 3.4.6, glibc 2.3.6 with crossdev from gentoo, as I did time ago. I also compiled all the libs from open2x svn.

I tried to compile a few programs that previusly have worked on the GP2X but all I get is a white screen.

This is the gdb output:

Code:
(gdb) run
Starting program: /mnt/sd/pruebascroll.gpe 
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
SDL_GP2X: CreateDevice
SDL_GP2X: VideoInit
SDL_GP2X: Physical screen = 16192x61424 (ilace = 0)
SDL_GP2X: Looking for a mouse
SDL_GP2X: No mice found
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x22f688 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_SYS_JoystickInit
SDL_GP2X: ListModes
SDL_GP2X: Setting video mode 320x240 16 bpp, flags=0
SDL_GP2X: FreeHWSurfaces
SDL_GP2X: InitHWSurfaces 0x4005f800, 5085184
SDL_GP2X: Screen bucket 0x231f5c
SDL_GP2X: First free bucket 0x22d5e0 (size = 5085184)
SDL_GP2X: Creating cursor 16x16
SDL_GP2X: Allocated WMcursor @ 0x22d5f8 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 5084928 bytes @ 0x22d610
SDL_GP2X: SurfaceManager allocated 256 bytes at 0x4005f800

Can anyone help me?
 
I think this is the problem:

SDL_GP2X: Physical screen = 16192x61424 (ilace = 0)

I remember seeing a thread/post with the same thing (or at least something where it found a totally bogus resolution somewhere), but I'm too lazy to search for it.
 
Easy to fix, it's an alignment/ARM opt. issue on GCC 2/3 with hardware SDL :) (and many many other libs, code etc.).

Try building with -march=armv4t if I recall correctly, and don't forget to make static executables.

Any reason you went for an old GCC 3 hosted chain?

J,
 
Back
Top