我的Java蓝牙服务器在raspberry pi运行debian wheezy需要bluecove本机图书馆 - 在哪里可以找到它? [英] My Java bluetooth server on raspberry pi running debian wheezy needs bluecove native library - where can I find it?
问题描述
我有一个Java蓝牙服务器运行在Windows的盒子上,我想移植到Raspberry pi。我有很多Java的经验,但很少有蓝牙或Linux。
pi目前有Debian Wheezy操作系统,我已经安装了蓝牙和Java,并放置bluecove-gpl和bluecove jar在类路径中。
然而,当我尝试运行服务器时,Java抱怨
<
本地库bluecove_arm不可用
我尝试重命名 libbluecove_arm .so
从gpl jar没有成功,即使设置 -Dbluecove.native.path
来指向它。
[SOLVED}
在google代码网站上找到一个sh构建脚本,显示如何编译java源文件,生成jni标头,编译和链接c文件以生成一个这样的库文件。只有打嗝才能找到库文件,然后重新命名为libbluecove_arm.so。所有在pi上完成的
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.info/raspberry-pi-kak-rabotat-s-bluetooth-na-java/
I have a Java bluetooth server running on a Windows box which I want to port to the Raspberry pi. I have lots of experience with Java but little with Bluetooth or Linux.
The pi currently has Debian Wheezy operating system and I've installed bluetooth and Java ok, and placed the bluecove-gpl and bluecove jars in the classpath.
When I try to run the server, however, Java complains
Native library bluecove_arm not available.
I've tried renaming libbluecove_arm.so
from the gpl jar without success, even when setting -Dbluecove.native.path
to point to it.
Does anyone know where to find the correct library, what it should be called, and where it should be placed?
[SOLVED}
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!
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.info/raspberry-pi-kak-rabotat-s-bluetooth-na-java/
这篇关于我的Java蓝牙服务器在raspberry pi运行debian wheezy需要bluecove本机图书馆 - 在哪里可以找到它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!