[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Dynamic linking (to compile bluez)



 
>> I've gone back to an older (3.x) series bluez, which seems to have less 
> plugins, and more of the things I want statically compiled, so I'm hoping to 
> just ifdef out the plugin stuff...  I'll let you know how it goes!
> 

'tis done!

I had to ifdef out the plugin part of the bluez-utils source, remove the plugins directory (and the makefile references to it).  I also had to ifdef out several calls to daemon() which is not a uclinux available function.  I used these flags on ./configure:
--disable-audio --enable-tools --enable-serial --disable-test --enable-usb --disable-glib

libusb is also required (assuming you have a USB bluetooth dongle), but builds straightforwardly.

Bluez also depends on dbus (I used the permissive variant), which compiles with some extra flags to ./configure (--enable-abstract-sockets=no)

dbus depends on libexpat (which I noticed too late is in the petalinux distribution already, so I didn;t try and use that one).

Once all that lots is statically linked together, you need to make sure there's a messagebus user in the /etc/passwd and a /var/run/dbus/ for the PID file and then dbus will start with:
dbus-daemon --config /etc/dbus-1/system.conf --nofork &

then 
sbin/hciconfig hci0 up
bin/hcitool scan

Hope this helps someone!
Cheers,
Martin
-- 

Martin Thompson CEng MIET
TRW Conekt, Stratford Road, Solihull, B90 4GW. UK
+44 (0)121-627-3569 : martin.j.thompson@xxxxxxx
http://www.conekt.net/

Conekt is a trading division of TRW Limited 
Registered in England, No. 872948 
Registered Office Address: Stratford Road, Solihull B90 4AX

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/