2

Raspberry piに移植したいWindowsボックスで実行されているJava Bluetoothサーバーがあります。Java の経験は豊富ですが、Bluetooth や Linux の経験はほとんどありません。

pi には現在 Debian Wheezy オペレーティング システムがあり、bluetooth と Java を正常にインストールし、bluecove-gpl と bluecove jar をクラスパスに配置しました。

ただし、サーバーを実行しようとすると、Java が文句を言います。

ネイティブ ライブラリ bluecove_arm は利用できません。

それを指すようlibbluecove_arm.soに設定しても、gpl jar から 名前を変更しようとしましたが、成功しませんでした。-Dbluecove.native.path

正しいライブラリの場所、名前、配置場所を知っている人はいますか?

[解決済み]

Found a sh build script on the google code site which showed how to compile the java source files, generate jni headers, compile and link the c files to produce a so library file. Only hiccup was that the library file needed then to be renamed libbluecove_arm.so before it would be found. All done on the pi!

4

1 に答える 1

0
mkdir bluecovelib

cd bluecovelib

wget http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.63/bluecove-gpl-2.1.1-SNAPSHOT-sources.tar.gz

tar -zxvf bluecove-gpl-2.1.1-SNAPSHOT-sources.tar.gz

mkdir -p bluecove/target

cd bluecove/target

wget http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.63/bluecove-2.1.1-SNAPSHOT.jar

cd ../../bluecove-gpl-2.1.1-SNAPSHOT
ant all

http://privateblog.by/raspberry-pi-kak-rabotat-s-bluetooth-na-java/

于 2017-01-06T03:51:21.470 に答える