2005-01-19 10:49:52

by tcalexander

[permalink] [raw]
Subject: [Bluez-users] bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"

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


2005-01-19 20:39:34

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Re: bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"

Hi,

> 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

2005-01-19 18:15:20

by tcalexander

[permalink] [raw]
Subject: Re: [Bluez-users] Re: bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"

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

On Wed, 19 Jan 2005 13:55:30 +0100, Sebastian Roth
<[email protected]> wrote:
> Hello!
>
> I guess your linker just can't find the bluetooth library because you
> have installed it into a non-standard path.
> > ./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


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

2005-01-19 12:55:30

by Sebastian Roth

[permalink] [raw]
Subject: [Bluez-users] Re: bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"

Hello!

I guess your linker just can't find the bluetooth library because you
have installed it into a non-standard path.
> ./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

2005-01-19 12:01:51

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"

Hi,

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

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