Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFailure in cross-compiling for Android on OS X #11920
Closed
Comments
|
I suspect this may be related to #11876. |
|
Meanwhile, a temporary fix is to run the build like this: |
|
The fix by mmatyas works well. Closing the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Host: OS X 10.11.5
Target: Nexus 6P (Android 6.0 has an API-level of 23)
I used the toolchain generated by this command:
/path/to/my/android-ndk-r12/build/tools/make-standalone-toolchain.sh --platform="android-23" --toolchain=arm-linux-androideabi-4.9 --install-dir=./toolchain --ndk-dir=/path/to/my/ndk --arch=armThe above command is slightly different from the one on Building for Android wiki page w.r.t. the eabi version (the new NDK comes with 4.9) and the platform number.
I set the environment variables through the .servobuild file. Here are the values I set:
sdk = "/path/to/my/sdk"
ndk = "/path/to/my/android-ndk-r12"
toolchain = "/path/to/my/toolchain"
platform = "android-23"
I also tried the same with the platform set to "android-18" but I still get the same error. In all my trials, the build always fails at
heartbeats-simple-sys v0.3.0and the error isSpecified Android native API level 'android-8' is not supported by your NDK/toolchain.I'm not seeing any ERROR messages in the previous scripts that compile C files.
What could be causing this issue?
@larsbergstrom @glennw