LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 06-17-2009, 10:07 AM   #1
kewl
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?

Code:
[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/libgdbus.la -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/libglib-2.0.la' or unhandled argument `/usr//lib/libglib-2.0.la'
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, 01:47 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
Quote:
.. cannot find the library `/usr//lib/libglib-2.0.la' ..
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 'libglib-2.0.la' text file, an example
file is attached. Please rename to libglib-2.0.la, edit file names,
.... and the path in line 41 .
.....
Attached Files
File Type: txt libglib-2.0.la.txt (950 Bytes, 3 views)

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


Reply

Tags
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 4 05-07-2009 04:37 AM
Cross compiling Bluez-utils for ARM deshu Linux - Software 1 03-06-2009 02:29 PM
Problem compiling BlueZ stack on ARM ( cross compilation from linux x86) shilpates Linux - Wireless Networking 1 08-20-2008 04:02 AM
Cross-Compiling DLLs with Mingw32- Linking a Static Library KrayZier Programming 1 01-24-2007 06:52 PM
cross compiling a shared library baba_gorakhnath Linux - Laptop and Netbook 0 03-11-2005 12:02 AM


All times are GMT -5. The time now is 11:55 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration