-
Notifications
You must be signed in to change notification settings - Fork 395
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
How to build for Android #24
Comments
I'm not familiar with |
I am struggling with the same issue and a complete dirth of any information surrounding linking jni's to jni's on the internet at all. Nothing I do seems to let hidapi find libusb1.0. I perpetually see Android NDK: Module hidapi depends on undefined modules: usb1.0 . If anyone can shed light on the "proper" way to build the Android NDK module, please let me know! P.S. THANK YOU SO MUCH FOR POSTING THIS! Though a bit kludgy, your solution works! |
thanks for posting this, it should be added to master. |
Again, hard-coding full system-specific paths is definitely not something we should have in master. |
Because I didn't really understand this fully at first, I worked it out in a script The point that I entirely missed was that I had to clone libusb/libusb too and point to its |
At this point I think it should be enough to say that CMake build works perfectly fine on Android (I'm using it in my personal projects). For that two things needed:
As for |
With the following modifications to the Android.mk file, the build succeeds (using
~/Android/Sdk/ndk-bundle/ndk-build
):See also https://developer.android.com/ndk/guides/android_mk#my-dir
The text was updated successfully, but these errors were encountered: