Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 ?