-
Notifications
You must be signed in to change notification settings - Fork 15
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
Build armeabi-v7a with Android NDK #135
Comments
Error LogCompiling the C compiler identification source file "CMakeCCompilerId.c" failed. The output was: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. The output was: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. The output was: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. The output was: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. The output was: |
It seems that your compiler does not recognize your CPU architecture: |
Hi @pablogs9 , I tried to compile arm64_ V8a architecture, the compilation is completed successfully, but the generated so file is not arm64_ V8a architecture, but x86-x64. What may be the problem? Is the configuration not effective? Or there is a problem with some parameter passing in the project. I want to know where the configuration file is? |
Error
Build Environment
ubuntu 20.04
Order
git clone https://github.com/eProsima/Micro-XRCE-DDS.git
cd Micro-XRCE-DDS-Agent
mkdir build && cd build
cmake
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_TOOLCHAIN_FILE=/home/lxc/Android/Sdk/ndk/22.1.7171670/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=21
-DCMAKE_ANDROID_NDK=/home/lxc/Android/Sdk/ndk/22.1.7171670
-DCMAKE_ANDROID_STL_TYPE=c++_shared
-DANDROID_STL=c++_shared
-DCMAKE_MAKE_PROGRAM=/home/lxc/ninja
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_SYSTEM_VERSION=21
-DANDROID_NATIVE_API_LEVEL=21
-DEPROSIMA_BUILD_EXAMPLES=ON
-GNinja
-DBUILD_SHARED_LIBS=ON
-DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang
-DANDROID_TOOLCHAIN=clang
-DCMAKE_GENERATOR="Ninja"
-DTHIRDPARTY=ON
-DANDROID_FUNCTION_LEVEL_LINKING=OFF
-DANDROID_ABI=armeabi-v7a
-DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a
..
ninja
When tested, ANDROID_ABI builds when set to X86, armeabi reports an error
The text was updated successfully, but these errors were encountered: