Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This 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.


  Search this Thread
Old 06-03-2010, 04:56 AM   #1
LQ Newbie
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
Angry SDL cross compiled troubles

Hi all,

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:
GCC linker:
skipping incompatible
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,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ldd on cross-compiled executable ranthal Linux - Software 2 10-19-2009 06:03 PM
Help regarding installing cross compiled bluez mrmuds Linux - Software 3 07-01-2009 09:36 AM
Config Problem With Cross-Compiled OpenSSH Mahonri Linux - General 2 06-02-2007 12:41 PM
Config Problem With Cross-Compiled OpenSSH Mahonri Linux - Software 0 06-01-2007 02:02 PM
problem with the cross compiled executable??? raklo Linux - Kernel 0 04-03-2007 08:16 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration