本文介绍了我的Java蓝牙服务器在raspberry pi运行debian wheezy需要bluecove本机图书馆 - 在哪里可以找到它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个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 来指向它。 $ b $有没有人知道在哪里找到正确的图书馆,应该调用什么,应该放在哪里? [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 bluecovelibcd bluecovelibwget http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.63/bluecove-gpl-2.1.1-SNAPSHOT-sources.tar.gztar -zxvf bluecove-gpl-2.1.1-SNAPSHOT-sources.tar.gzmkdir -p bluecove/targetcd bluecove/targetwget http://snapshot.bluecove.org/distribution/download/2.1.1-SNAPSHOT/2.1.1-SNAPSHOT.63/bluecove-2.1.1-SNAPSHOT.jarcd ../../bluecove-gpl-2.1.1-SNAPSHOTant allhttp://privateblog.info/raspberry-pi-kak-rabotat-s-bluetooth-na-java/ 这篇关于我的Java蓝牙服务器在raspberry pi运行debian wheezy需要bluecove本机图书馆 - 在哪里可以找到它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-29 19:00