LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-03-2010, 03:56 AM   #1
emping
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 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,

Emping
 
  


Reply



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 05:03 PM
Help regarding installing cross compiled bluez mrmuds Linux - Software 3 07-01-2009 08:36 AM
Config Problem With Cross-Compiled OpenSSH Mahonri Linux - General 2 06-02-2007 11:41 AM
Config Problem With Cross-Compiled OpenSSH Mahonri Linux - Software 0 06-01-2007 01:02 PM
problem with the cross compiled executable??? raklo Linux - Kernel 0 04-03-2007 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:29 PM.

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