[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Dynamic linking (to compile bluez)
Hi Martin,
Martin.J Thompson wrote:
>
>>> 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!
Thanks for your description. Could you please pack it or create any patches and send it to mailing
list with small installation guide? (I am not sure if is any email size limit)
Some information about your testing HW/board/ref desing and bluetooth modul will be helpful too.
Thanks,
Michal
> Cheers,
> Martin
--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
___________________________
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/