Gpe Complie Question


Dantrasoft

Still Fresh
Joined
Jun 6, 2006
Messages
5
Hello,

Im new to this place and to C++ programming. I have installed the GP2XSDK and have it compiling my program which is the 2nd tutorial found on Lazy Foo's site. So it compiles to a gpe but when i put it on my SD card I get a blank screen. Anyone come across this problem or knows what im doing wrong? Do I need to do anything to the SDL library on the GP2X? My GP2X is Firmware version 2 and ive had it for about a week.

Cheers.

Dan gp32_console
 
There are libs installed onto the gp2x, but they have been compiled with an old version of gcc (it always used to be 2.95, don't know if the latest firmware is any different). When you compile a linux app it normally dynamicly links to the libraries (it will use the libs on the gp2x), but this will only work if you are also using an older version of gcc for your app. If you're compiling with a newer version then it won't like the libs it finds.

Most things for the gp2x are compiled with gcc 4, and to get around the lib problem they are static linked which means the gcc4 compiled libs are included with the exe. To do this you need to find the link line in your make file and add -static to the list of parameters. Now there is a chance that you're already doing this and you've got a different problem that needs solving, but this is normally the first thing to check :).
 
Yes i have -static as a linker, here are the links I am using -static -lSDL_mixer -lSDL_ttf -lSDL_image -lvorbisidec -lfreetype -ljpeg -lpng12 -lz -lm -lSDL -lpthread. Any other suggestions?
 
Back
Top