-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Won't Compile Detail error below #387
Comments
Any update of this issue? I've been facing the same problem. |
I will admit I am also stumped as to where to put the libusb1.0 files that had been built using it's JNI system. I wonder if anyone will ever add a README to the android folder |
You can put wherever you want it. Just add LIBDIR to project and that will sort things out |
Error above says there is ANDROID_NDK not set. Download NDK end export path to it and it should work. I am using Ubuntu Docker to build android libs and never had problems with it |
when I compile the Android.MK inside jni using NDK under windows, I am getting this error:
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14. D:/adt-bundle-windows-x86_64-20140702/android-ndk-r16b/build//../build/core/build-binary.mk:693: Android NDK: Module hidapi depends on undefined modules: usb1.0 D:/adt-bundle-windows-x86_64-20140702/android-ndk-r16b/build//../build/core/build-binary.mk:693: Android NDK: Module hidapi depends on undefined modules: usb1.0 D:/adt-bundle-windows-x86_64-20140702/android-ndk-r16b/build//../build/core/build-binary.mk:693: Android NDK: Module hidapi depends on undefined modules: usb1.0 D:/adt-bundle-windows-x86_64-20140702/android-ndk-r16b/build//../build/core/build-binary.mk:693: Android NDK: Module hidapi depends on undefined modules: usb1.0 [arm64-v8a] Compile : hidapi <= hid.c hidapi-master/android/jni/../../libusb/hid.c:47:10: fatal error: 'libusb.h' file not found #include <libusb.h> ^~~~~~~~~~ 1 error generated. make: *** [hidapi-master/android/obj/local/arm64-v8a/objs/hidapi/__/__/libusb/hid.o] Error 1
The text was updated successfully, but these errors were encountered: