LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Bluez 3.36 cross compiling + cannot find library (http://www.linuxquestions.org/questions/linux-software-2/bluez-3-36-cross-compiling-cannot-find-library-733612/)

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?

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


knudfl 06-17-2009 12:47 PM

1 Attachment(s)
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 .
.....


All times are GMT -5. The time now is 10:23 AM.