LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2009, 10:54 PM   #1
feiyinziiu
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Rep: Reputation: 0
Red face arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth


Hello
Recently when I cross compiling the bluetoot test programm,I get the
problem below:
# arm-linux-gcc -o bluetest bluetest.c -lbluetooth
arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth
collect2: ld returned 1 exit status

But if I use gcc to compile ,that works correctly:
gcc -o bluetest bluetest.c -lbluetooth

My bluetooth lib is put below:

[root@feiyinziiu lib]# pwd
/usr/local/lib
[root@feiyinziiu lib]# ls
alsa-lib libbluetooth.a libbluetooth.so libbluetooth.so.1.0.25 libbluetooth.so.2.11.2
bluetooth libbluetooth.la libbluetooth.so.1 libbluetooth.so.2 pkgconfig


What can I do ?
Thank you.
 
Old 10-17-2009, 11:03 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Pal, no double-posting.
 
  


Reply

Tags
bluetooth



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
arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth feiyinziiu Linux - Embedded & Single-board computer 4 10-18-2009 01:30 AM
which binary should I use to crosscompile binaries in /bin for arm mrmuds Linux - Wireless Networking 1 06-23-2009 07:44 AM
When do i get "/arm-elf/bin/ld:cannot find -lc" while compiling my project rameshsatyavaram Linux - Newbie 0 09-10-2008 03:31 PM
/arm-linux-uclibc/bin/ld: cannot find -lcrypto tosatishpatel Linux - Software 0 03-20-2006 11:53 PM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:13 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