-
Notifications
You must be signed in to change notification settings - Fork 46
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
Can not build out arm64 version for linux-android platform #574
Comments
What error do you get from the above instructions? |
No error found, it built out successfully. ... IoT.js Build Succeeded!! To run tests use '--run-test' or one of the folowing commands:
|
Oops, I was misunderstood your question, may I ask you to print the |
pint the
|
May I ask you to have a look at /home/cchma/tool/android-ndk-r21/build/cmake/android.toolchain.cmake? |
It seems need to set the ... [Failed - 2] make -C /home/cchma/tool/ShadowNode/build/aarch64-linux-android/debug -j |
This might be caused by the wrong format of some object files, have you tried a clean build? |
Every time is clean build. First |
armeabi-v7a is 32 bit |
The issue has been fixed. The "-DANDROID_ABI" should be "arm64-v8a" and the "-DANDROID_ABI" should also be added in the deps cmake files, otherwise these deps static libraries will all be arm32. I have created a pull request: |
I try to build the ShadowNode sources with the guide:
https://github.com/yodaos-project/ShadowNode/blob/master/docs/build/Build-for-Android.md
I used exactly the same build config as the description in doc. But what I built out is arm-32 version, not 64.
The result of "file" command:
build/aarch64-linux-android/debug/bin/iotjs: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=799e3a8d0ab40f80600bfc07ba0760e10b251219, not stripped
My build steps:
export NDK_DIR=/home/tool/android-ndk-r21
./tools/build.py
--target-arch=aarch64
--target-os=linux-android
--cmake-param=-DANDROID_NDK=$NDK_DIR
--cmake-param=-DANDROID_NATIVE_API_LEVEL=23
--cmake-param=-DANDROID_ABI=armeabi-v7a
--cmake-param=-DANDROID_TOOLCHAIN=clang
--cmake-toolchain-file=$NDK_DIR/build/cmake/android.toolchain.cmake
--profile=./profiles/basic.profile
The text was updated successfully, but these errors were encountered: