SDL cross compiled troubles
I have bought a mini2440 development board based on a ARM920T processor. I achieve in compiling my first "hello world" !! However, now I would use SDL_mixer to play a music file.
Context : I am developing on Ubuntu 9.10 with Eclipse IDE with the CDT plug in. My project is a C++ project.
I have the cross compile toolchain for my mini2440 and I set Eclipse to work with it. Here, everything is ok !
Now, I would use SDL_mixer to play a sound. SDL_mixer needs SDL lib to work. So I cross compile SDL and SDL_mixer with the same cross toolchain as I use in Eclipse. Is that correct ?
As a result I have for each lib, some .h, .so, .a etc files. I thought "Great ! Everything is ok, I add the path of these file in the Eclipse's linker, I also add SDL and SDL_Mixer in the include lib of the linker ( -lSDL and -lSDL_mixer) and everything should work". Guess what ?! I was wrong.
Eclipse seems to find my lib but give me this kind of error:
skipping incompatible libSDL.so
skipping incompatible libSDL.a
Error : Cannot find lib SDL
I am not writting on my development PC so I don't have the exact linker output, but it is something like that.
Could someone give me a solution or a clue to fix this problem ?
I really thnak you,