Skip to contentSkip to conversation

bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"

Bluez-users tcalexander 3 participants 5 messages Jan 19, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello everyone!
I'm using Yoper with a 2.6.8.1-3 kernel. I downloaded bluez-libs and bluez-utils, both 2.14. Did the following:
(in /home/blabla/bluez-libs-2.14)
./configure --prefix=/usr/local/bluez
make
(did a su)
make install
(so far so good)
(now to /home/blabla/bluez-utils-2.14)
./configure --prefix=/usr/local/bluez
make
(now things go crappy, read below the final lines of the output)

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/bluez/include
-I/usr/local/bluez/include -Wall -O2 -c test -f 'hcisecfilter.c' || echo './'hcisecfilter.c
gcc -I/usr/local/bluez/include -I/usr/local/bluez/include -Wall -O2 -o hcisecfilter hcisecfilter.o -lbluetooth /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lbluetooth
collect2: ld returned 1 exit status
make[2]: *** [hcisecfilter] Error 1
make[2]: Leaving directory `/home/blabla/bluez-utils-2.14/tools' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/blabla/bluez-utils-2.14'
make: *** [all] Error 2

*blabla stands for a long and awkward branch of the directory tree; I found it to be annoying, so I replaced it;

Couldn't find any hints anywhere. :( I saw another topic on compile errors, but it wasn't quite what I needed, so I came up with this one. If it's been discussed earlier, please point it out. 10x in advance.

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi,

Quoted 27 lines

I'm using Yoper with a 2.6.8.1-3 kernel. I downloaded bluez-libs and bluez-utils, both 2.14. Did the following:
(in /home/blabla/bluez-libs-2.14)
./configure --prefix=/usr/local/bluez
make
(did a su)
make install
(so far so good)
(now to /home/blabla/bluez-utils-2.14)
./configure --prefix=/usr/local/bluez
make
(now things go crappy, read below the final lines of the output)

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/bluez/include
-I/usr/local/bluez/include -Wall -O2 -c test -f 'hcisecfilter.c' || echo './'hcisecfilter.c
gcc -I/usr/local/bluez/include -I/usr/local/bluez/include -Wall -O2 -o hcisecfilter hcisecfilter.o -lbluetooth /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lbluetooth
collect2: ld returned 1 exit status
make[2]: *** [hcisecfilter] Error 1
make[2]: Leaving directory `/home/blabla/bluez-utils-2.14/tools' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/blabla/bluez-utils-2.14'
make: *** [all] Error 2

Quoted 2 lines

*blabla stands for a long and awkward branch of the directory tree; I found it to be annoying, so I replaced it;

you need to install bluez-libs first and make sure bluez-utils can find it.

Regards

Marcel

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw
In reply to tcalexander

Hello!

I guess your linker just can't find the bluetooth library because you have installed it into a non-standard path.

Quoted 1 line

./configure --prefix=/usr/local/bluez

make install runs the command `ldconfig -n /usr/local/bluez/lib' but the option -n forces ldconfig just to create the library links and not to update the cache. (man ldconfig) Add this path to your /etc/ld.so.conf and re-run ldconfig as root.

`ldconfig -p | grep bluetooth' should show libbluetooth now!

Best regards,
Sebastian

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw

Added /usr/local/bluez/lib (even tried /usr/local/bluez), ran ldconfig as root. ldconfig -p | grep bluetooth
libbluetooth.so.1 (libc6) => /usr/local/bluez/lib/libbluetooth.so.1 libbluetooth.so (libc6) => /usr/local/bluez/lib/libbluetooth.so
Same thing gets spat out during make. :((
bluez-libs...I had that installed first...at least that's what I presume I did. :)
I've even turned religous - started praying, that is. :P

Quoted 11 lines · Sebastian Roth

Hello!

I guess your linker just can't find the bluetooth library because you have installed it into a non-standard path.

Quoted 1 line

./configure --prefix=/usr/local/bluez

make install runs the command `ldconfig -n /usr/local/bluez/lib' but the option -n forces ldconfig just to create the library links and not to update the cache. (man ldconfig)
Add this path to your /etc/ld.so.conf and re-run ldconfig as root.

Quoted 4 lines

`ldconfig -p | grep bluetooth' should show libbluetooth now!

Best regards,
Sebastian

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#4 lore raw

Hi,

Quoted 8 lines

Added /usr/local/bluez/lib (even tried /usr/local/bluez), ran ldconfig as root. ldconfig -p | grep bluetooth
libbluetooth.so.1 (libc6) => /usr/local/bluez/lib/libbluetooth.so.1 libbluetooth.so (libc6) => /usr/local/bluez/lib/libbluetooth.so
Same thing gets spat out during make. :((
bluez-libs...I had that installed first...at least that's what I presume I did. :)
I've even turned religous - started praying, that is. :P

if you use a different prefix than /usr you might to tell the utils about it. Look at --with-bluez=... for example.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users