GP2X Hello Everyone


yaustar posted on Dec 19 2006 at 05:06 PM said:
The order of the libraries you link to may matter, try the following taking out the libraries you don't need:
Code:
-static -lSDL_gfx -lSDL_ttf -lfreetype -lSDL_image -ljpeg -lpng12 -lz -lSDL_mixer -lvorbisidec -lmikmod -lsmpeg -lSDL -lgcc -lm -lc -lexpat -lpthread

Putting the SDL sub libraries infront of -lSDL did the trick. Seems like this sort of stuff should be documented somewhere.

My GPE went for 35k to a hair over 3 megs, yet the x86 compile of it is only 400k.

That doesn't make much sense.
 
Last edited by a moderator:
Shared libraries would be nice but setting the search path and making sure they are on the gp2x is problematic. I tried setting the path to look in "nand" and then put the files there and it worked somewhat. But depending on others to do the same thing or even having enough space to do this on other machines is not very easy. I also tried setting the search path to look in a fixed location on the SD card. That seemed better to me but would require some common use to make it predictable.
 
Back
Top