azibug / androhid

Automatically exported from code.google.com/p/androhid
0 stars 0 forks source link

Compile Problem #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please provide any additional information below.
I use ndk-r6 to build the jni part of your code, and it reports an error:

 ld.exe: cannot find -lbluetooth

Could you help me to how to resolve the problem?

Original issue reported on code.google.com by zx.ou...@gmail.com on 28 Sep 2011 at 7:09

GoogleCodeExporter commented 9 years ago
Same problem here! though I get:
android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../
lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: 
cannot find -lbluetooth

Original comment by tov...@googlemail.com on 9 Feb 2012 at 2:45

GoogleCodeExporter commented 9 years ago
Please have a look at the FAQ page, this problem was solved in the comments! 
After all I will finally write a step by step guide if I find the time!

Manu

Original comment by manuel.l...@gmail.com on 10 Feb 2012 at 9:22

GoogleCodeExporter commented 9 years ago
Install bluez-devel (or similar name depending on distibution).

Original comment by fisiu82 on 20 Apr 2012 at 6:56

GoogleCodeExporter commented 9 years ago
I try to build the jni under Ubuntu and I get these:
warning: skipping incompatible /usr/lib/i386-linux-gnu/libbluetooth.so while 
searching for bluetooth
error: cannot find -lbluetooth
Any one knows what is wrong

Original comment by Xiangwen...@gmail.com on 26 Mar 2013 at 8:23

GoogleCodeExporter commented 9 years ago
I have solved my problem by read the FAQ page(The bluetooth lib can be found on 
the phone in /system/lib/libbluetooth.so)

Original comment by Xiangwen...@gmail.com on 5 Apr 2013 at 6:19