[Armadillo:04811] Re: Android(Eclair)でのBluetooth検証

東山雅彦 email@hidden
2009年 12月 17日 (木) 20:45:12 JST


東山です。

お世話になります。
ご回答ありがとうございます。

私の方でも確認を行ってみました。
usb 2-1: new full speed USB device using fsl-ehci and address 2
usb 2-1: configuration #1 chosen from 1 choice
と表示され、ご指南のありましたとおりに、
/sys/class/bluetooth/l2cap,sco,rfcomm_dlc,rfcomm,hci0
とディレクトリが作成されました。
idVendor,idProductまでは表示されず、分かりませんでしたが、
カーネルレベルでは認識されているようです。

やはりドライバが必要なのだと考え、
現在、bluez-libs-3.36, bluez-utils-3.36 のビルドを実施しています。

bluez-libs-3.36 はビルド・インストールできたのですが、
bluez-utils-3.36 の configure が通りません。

./configure --host=i686-pc-linux-gnu --target=arm-linux-gnu \
 CC=arm-linux-gnu-gcc --build=arm-linux-gnu --prefix=/usr/arm-linux-gnu \
 --with-bluez=/usr/arm-linux-gnu/lib LDFLAGS=-Wl,-elf2flt
を実行した結果、
・
・
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
checking for ppoll... no
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BLUEZ... no
configure: error: Bluetooth library is required

bluez-lib はクロス開発環境の /usr/arm-linux-gnu にインストールしており
/usr/arm-linux-gnu/lib 配下に
libbluetooth.a, libbluetooth.la, libbluetooth.so libbluetooth.so.1,
libbluetooth.so.1.0.25
libbluetooth.so.2, libbluetooth.so.2.11.2
が存在しています。

なぜ checking for BLUEZ... no となるのでしょうか。
お分かりの方、申し訳ありませんがご教示お願いできないでしょうか。
よろしくお願いいたします。


2009年12月16日17:43 Takenoshita Koyo <email@hidden>:

> 竹之下です。
>
> 手元のマシンで確認してみました。
>
> カーネルが起動した後に、Bluetoothデバイスを挿すと、
> 以下のカーネルメッセージが表示されました。
> usb 1-1: new full speed USB device using fsl-ehci and address 2
> usb 1-1: configuration #1 chosen from 1 choice
> usb 1-1: New USB device found, idVendor=0a12, idProduct=0001
> usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
>
> また、以下のsysfsディレクトリが作成ました。
> /sys/class/bluetooth/hci0
>
> 上記があれば、カーネルとしてはデバイスを認識しています。
>
> もしカーネルがデバイスを認識していれば、次はAndroidが
> どのようにデバイスを検出しているか、なのですが、
> すみません、こちらはよく分からないです。
>
> 申し訳ありません。
>
> --
> Koyo Takenoshita
>  _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://lists.atmark-techno.com/pipermail/armadillo/attachments/20091217/8a63c390/attachment.html>


armadillo メーリングリストの案内