2015-09-16 06:32:43

by 浩宇郑

[permalink] [raw]
Subject: Fwd: port bluez to android

Hi all,
I am a newbie to BlueZ. I want to port BlueZ to android 4.2.2, But
when I copy the blueZ to external folder with glib, after compile,
some error happend:

external/bluetooth/bluez/src/shared/mainloop.c:35:26: fatal error:
sys/signalfd.h: No such file or directory

How do I solve it ? Thanks a lot.


2015-09-16 09:08:27

by Szymon Janc

[permalink] [raw]
Subject: Re: port bluez to android

Hi,

On Wednesday 16 of September 2015 10:58:16 Marcel Holtmann wrote:
> Hi,
>
> > I am a newbie to BlueZ. I want to port BlueZ to android 4.2.2, But
> >
> > when I copy the blueZ to external folder with glib, after compile,
> > some error happend:
> >
> > external/bluetooth/bluez/src/shared/mainloop.c:35:26: fatal error:
> > sys/signalfd.h: No such file or directory
> >
> > How do I solve it ? Thanks a lot.
>
> follow our BlueZ for Android build instructions.
>
> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/README

Also note that we support only Android 4.4 and newer.

Android 4.2.2 might is missing required functionality in bionic and due to
backward incompatible changes in BT HAL API our library will not compile
against Android 4.2.

So if you really want to use that on Android 4.2 you must be prepared for some
patching (both BLueZ and Bionic, and possibly other Android components).

--
BR
Szymon Janc

2015-09-16 08:58:16

by Marcel Holtmann

[permalink] [raw]
Subject: Re: port bluez to android

Hi,

> I am a newbie to BlueZ. I want to port BlueZ to android 4.2.2, But
> when I copy the blueZ to external folder with glib, after compile,
> some error happend:
>
> external/bluetooth/bluez/src/shared/mainloop.c:35:26: fatal error:
> sys/signalfd.h: No such file or directory
>
> How do I solve it ? Thanks a lot.

follow our BlueZ for Android build instructions.

https://git.kernel.org/cgit/bluetooth/bluez.git/tree/android/README

Regards

Marcel