Skip to content
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

Open
Rathna-K opened this issue Mar 25, 2018 · 5 comments
Open

Android Won't Compile Detail error below #387

Rathna-K opened this issue Mar 25, 2018 · 5 comments

Comments

@Rathna-K
Copy link

Rathna-K commented Mar 25, 2018

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

@chiawei-liu
Copy link

Any update of this issue? I've been facing the same problem.

@cnlohr
Copy link

cnlohr commented Aug 23, 2019

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

@malbit
Copy link

malbit commented Aug 26, 2019

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

@Rathna-K
Copy link
Author

@cnlohr @malbit sorry, are you saying you were able to compile it successfully ? If i remember, the problem was it wont compile successfully.

@malbit
Copy link

malbit commented Aug 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants