♩About myself♪

我的相片
永遠的藍星
怠惰是一種病,偷懶是種藉口

Panda dog?

2008年8月13日 星期三

Bluez-移植問題

http://www.yuanma.org/data/2006/0607/article_699.htm 主要都是由這篇文章,源頭dennis以下是我的問題編譯bluez函式庫(版本:Bluez-libs-3.36)沒有問題,但在下面產生函式庫就出現下面的問題(待解)/usr/local/arm/3.4.1/bin/arm-linux-gcc -o -shared -o libbluetooth.so.1.0.17 bluetooth.o hci.o sdp.oerror:/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: bluetooth.o: Relocations in generic ELF (EM: 3)bluetooth.o: could not read symbols: File in wrong formatcollect2: ld returned 1 exit status
search:http://www.linuxeden.com/forum/thread-159396-1-6.html接下來只要作函式庫連結在放到arm核心中就可以了# ln -s libbluetooth.so.1.0.17 libbluetooth.so# ln -s libbluetooth.so.1.0.17 libbluetooth.so.1
http://www.yuanma.org/data/2006/0607/article_699.htm(參考文章)
在基本核心內已經有包括bluez,hci_usb,rfcomm...等基本模組,再來函式庫及檔案系統中的bin操作測試版本同lib一樣 bluez-utils-3.36
checking for DBUS... noconfigure: error: D-Bus library is required作blue-unit設定時DBUS ERROR
改換版本bluez-utils-2.25+bluez-libs-2.25(都給他試試看)做了以下設定:libs./configure --prefix=/usr --host=armv4l CC=/usr/local/arm/3.4.1/bin/arm-linux-gccmake;make installutils./configure --prefix=/usr/bluetooth --includedir=/usr/include/bluetooth --libdir=/usr/lib --with-bluez=/usr/bluetooth --disable-test --disable-cups --disable-pcmia --host=armv4l CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc CPP=/usr/local/arm/3.4.1/bin/arm-linux-cpp AR=/usr/local/arm/3.4.1/bin/arm-linux-ar STRIP=/usr/local/arm/3.4.1/bin/arm-linux-strip RANLIB=/usr/local/arm/3.4.1/bin/arm-linux-ranlib LD=/usr/local/arm/3.4.1/bin/arm-linux-ldmake;make install在我的/usr/bluetooth裡面就看得到bin及sbin了接下來要丟到機器上試試看~~ 結果沒問題照藍芽的基本操作來設定也是接收的到gps的訊號的! 上面問題就無視了==+
檔案系統預設方面有點問題,在設定device時要etc的rfcomm.conf不能設定初始化,全部用成註解
還有在/.bashrc 的檔案內容新增
ln -sf /dev/bluetooth/rfcomm/0 /dev/rfcomm0
重新啟動, 再照上面操作結果ok!

(ENDLESS)

沒有留言: