Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-17-2009, 09:07 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 29

Rep: Reputation: 15
Unhappy Bluez 3.36 cross compiling + cannot find library

Hi all,
I am cross compiling bluez 3.36. what change should i do in order to get the hcid folder in the bluez compiled? I googled to find the solution,... providing the path of the library in the makefile should solve it but I am still getting the same error. I have checked the file in the lib and its exists
what might be the problem? any pointers or any hints as of what might have went wrong?

[root@localhost hcid]# make
make  all-am
make[1]: Entering directory `/home/kewal/tmp_pkgs/bluez-utils-3.36/hcid'
/bin/sh ../libtool --tag=CC   --mode=link arm-linux-gcc -I /opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/include -I /opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/usr/include/ -I /opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/include/dbus-1.0/ -I /opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I../gdbus -DPLUGINDIR=\""/lib/bluetooth/plugins"\" -I /opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/include -I /opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/usr/include/ -D_FORTIFY_SOURCE=2  -L/opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/usr/lib/ -L/opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/lib/ -o hcid main.o libhciserver.a ../sdpd/libsdpserver.a ../common/libhelper.a ../gdbus/ -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0   -lglib-2.0   -L/opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/usr/lib -L/opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/lib/dbus-1.0 -L/opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/usr/lib -L/opt/imx21_ida24/ltib-imx21ads-20070609/rootfs/lib
libtool: link: cannot find the library `/usr//lib/' or unhandled argument `/usr//lib/'
make[1]: *** [hcid] Error 1
make[1]: Leaving directory `/home/kewal/tmp_pkgs/bluez-utils-3.36/hcid'
make: *** [all] Error 2
[root@localhost hcid]#
Old 06-17-2009, 12:47 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634
.. cannot find the library `/usr//lib/' ..
Does that mean, you have /usr/lib/ in your path ? ?
Must probably be excluded by starting every terminal session for
cross compiling with :
'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/imx21_ida24/ \
ltib-imx21ads-20070609/rootfs/lib/', etc. etc.

Then the system path :/lib:/usr/lib:/usr/local/lib etc. is not used.
If you are just missing a '' text file, an example
file is attached. Please rename to, edit file names,
.... and the path in line 41 .
Attached Files
File Type: txt (950 Bytes, 42 views)

Last edited by knudfl; 06-17-2009 at 12:52 PM.


bluez, compiling, cross, crosscompile

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
bluez-utils cross-compiling error cloudlast Linux - Embedded & Single-board computer 5 08-27-2015 03:10 AM
Cross compiling Bluez-utils for ARM deshu Linux - Software 1 03-06-2009 01:29 PM
Problem compiling BlueZ stack on ARM ( cross compilation from linux x86) shilpates Linux - Wireless Networking 1 08-20-2008 03:02 AM
Cross-Compiling DLLs with Mingw32- Linking a Static Library KrayZier Programming 1 01-24-2007 05:52 PM
cross compiling a shared library baba_gorakhnath Linux - Laptop and Netbook 0 03-10-2005 11:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 PM.

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
Open Source Consulting | Domain Registration