TrevorBradley
Active Member
- Joined
- Nov 6, 2007
- Messages
- 732
I've been toying SDL development, and things are looking good on my Linux system. I've got a first few programs of the "Hello World" variety, using SDL and SDL_draw. I'm looking ahead to SDL development for the Pandora next year.
I'd like to attempt to bring these programs over to my GP2X F200, to ensure I know what I'm doing and that I can continue development on LInux. Can I verify that I want to install the Open2X toolchain (http://wiki.gp2x.org/wiki/Installing_the_Open2x_toolchain), and compile my program with this or a similar command on my Linux box?
/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin/arm-open2x-linux-g++ -lSDL -lSDL_draw SDLTest.cpp -o SDLTest
Sadly at the moment I'm getting a "version `GLIBC_2.4' not found" error, but I know this isn't a open2x or g++ issue. I also know the last time I tried to upgrade to GLIBC 2.4 on my Slackware 11.0 system I lost several hours of my life and suffered a small heart attack before mostly reverting back to GLIBC2.3. Time to move development to a real operating system and plot to upgrade my server...
(actually, that's odd.. the toolchain says it's for glib2.3.6... It's possible I've fried my system more than I feared when I attempted the 2.4 upgrade).
I also have some concerns that SDL_draw (primitive graphics library) will actually work without open2x specific libraries.. but here I show my SDL noobishness. Should I be able to get SDL_draw working on the GP2X? Can I just compile against my existing libraries or does SDL_draw need to be compiled against the arm processor?
Thanks in advance for your replies and patience. Any hints or pointers you can provide would be greatly appreciated.
I'd like to attempt to bring these programs over to my GP2X F200, to ensure I know what I'm doing and that I can continue development on LInux. Can I verify that I want to install the Open2X toolchain (http://wiki.gp2x.org/wiki/Installing_the_Open2x_toolchain), and compile my program with this or a similar command on my Linux box?
/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin/arm-open2x-linux-g++ -lSDL -lSDL_draw SDLTest.cpp -o SDLTest
Sadly at the moment I'm getting a "version `GLIBC_2.4' not found" error, but I know this isn't a open2x or g++ issue. I also know the last time I tried to upgrade to GLIBC 2.4 on my Slackware 11.0 system I lost several hours of my life and suffered a small heart attack before mostly reverting back to GLIBC2.3. Time to move development to a real operating system and plot to upgrade my server...
(actually, that's odd.. the toolchain says it's for glib2.3.6... It's possible I've fried my system more than I feared when I attempted the 2.4 upgrade).
I also have some concerns that SDL_draw (primitive graphics library) will actually work without open2x specific libraries.. but here I show my SDL noobishness. Should I be able to get SDL_draw working on the GP2X? Can I just compile against my existing libraries or does SDL_draw need to be compiled against the arm processor?
Thanks in advance for your replies and patience. Any hints or pointers you can provide would be greatly appreciated.