-   Linux - Software (
-   -   Bluez 3.36 cross compiling + cannot find library (

kewl 06-17-2009 09:07 AM

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]#

knudfl 06-17-2009 12:47 PM

1 Attachment(s)

.. 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 .

All times are GMT -5. The time now is 07:44 AM.