-
Notifications
You must be signed in to change notification settings - Fork 907
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
Executables compiled by Android NDK cannot compile the schema files #2023
Comments
Hmm, why do you need to run the capnp binary on Android? Seems unusual to be running CLI tools on a phone... Our CI verifies that all the unit tests pass on Android, but admittedly it cross-compiles the tests, so it doesn't attempt to run the capnp binary on Android directly. In any case, I'm happy to accept a PR to fix this but I don't have bandwidth to investigate it myself. |
Well, I actually just need the binary to build the schema files on the build time. In my case, the Android app project uses a native library whose APIs are able to return the data in Can'Proto format, and I would like to utilize them to get data in the app frontend from the native backend (via JNI or else). Naturally I want to just |
Oh, your problem is that you've built a binary targeting Android but you're trying to run it on your build host which is not Android? What you should do is first build the binaries for the host system, install them, and then when you build for android, use Unfortunately I don't know how the cmake build works so I don't know how to do the equivalent with cmake, but it's probably possible. |
The Android NDK version is "25.2.9519653".
The log will report like:
I tried to
ldd
the generated executables and reports:The text was updated successfully, but these errors were encountered: