public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"
@ 2005-01-19 10:49 tcalexander
  2005-01-19 12:01 ` Marcel Holtmann
  2005-01-19 12:55 ` [Bluez-users] " Sebastian Roth
  0 siblings, 2 replies; 5+ messages in thread
From: tcalexander @ 2005-01-19 10:49 UTC (permalink / raw)
  To: bluez-users

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"
  2005-01-19 10:49 [Bluez-users] bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth" tcalexander
@ 2005-01-19 12:01 ` Marcel Holtmann
  2005-01-19 12:55 ` [Bluez-users] " Sebastian Roth
  1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-01-19 12:01 UTC (permalink / raw)
  To: BlueZ Mailing List

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bluez-users] Re: bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"
  2005-01-19 10:49 [Bluez-users] bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth" tcalexander
  2005-01-19 12:01 ` Marcel Holtmann
@ 2005-01-19 12:55 ` Sebastian Roth
  2005-01-19 18:15   ` tcalexander
  1 sibling, 1 reply; 5+ messages in thread
From: Sebastian Roth @ 2005-01-19 12:55 UTC (permalink / raw)
  To: bluez-users

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Re: bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"
  2005-01-19 12:55 ` [Bluez-users] " Sebastian Roth
@ 2005-01-19 18:15   ` tcalexander
  2005-01-19 20:39     ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: tcalexander @ 2005-01-19 18:15 UTC (permalink / raw)
  To: bluez-users

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
<sebastian.roth@esk.fhg.de> 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Re: bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth"
  2005-01-19 18:15   ` tcalexander
@ 2005-01-19 20:39     ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-01-19 20:39 UTC (permalink / raw)
  To: BlueZ Mailing List

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-19 20:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-19 10:49 [Bluez-users] bluez-utils-2.14 compile error: make returns "cannot find -lbluetooth" tcalexander
2005-01-19 12:01 ` Marcel Holtmann
2005-01-19 12:55 ` [Bluez-users] " Sebastian Roth
2005-01-19 18:15   ` tcalexander
2005-01-19 20:39     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox