You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
I want to compile all the android native libraries (.a & .so) to x86 processor.
While running the "build_android.sh" script i'm getting failed error regarding the make file.
Code example
I tried running both for x86 and arm64, failed to do so in both scenarios:
Mac 10.12.6
Android NDK - R14
cmake version 3.12.0
clang Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
The error while running the build with x86 is :
Android: Selected GCC toolchain 'x86-4.9'
-- Check for working CXX compiler: /Users/myuser/Library/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++
-- Check for working CXX compiler: /Users/myuser/Library/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -- broken
CMake Error at /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/myuser/Workspaces/pytorch_source_code/pytorch/build_android/CMakeFiles/CMakeOutput.log".
See also "/Users/myuser/Workspaces/pytorch_source_code/pytorch/build_android/CMakeFiles/CMakeError.log".
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue description
I want to compile all the android native libraries (.a & .so) to x86 processor.
While running the "build_android.sh" script i'm getting failed error regarding the make file.
Code example
I tried running both for x86 and arm64, failed to do so in both scenarios:
./scripts/build_android.sh -DANDROID_ABI=arm64-v8a -DANDROID_TOOLCHAIN=clang
./scripts/build_android.sh -DANDROID_ABI=x86 -DANDROID_TOOLCHAIN=clang
System Info
Mac 10.12.6
Android NDK - R14
cmake version 3.12.0
clang Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
The error while running the build with x86 is :
Android: Selected GCC toolchain 'x86-4.9'
-- Check for working CXX compiler: /Users/myuser/Library/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++
-- Check for working CXX compiler: /Users/myuser/Library/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -- broken
CMake Error at /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/myuser/Workspaces/pytorch_source_code/pytorch/build_android/CMakeFiles/CMakeOutput.log".
See also "/Users/myuser/Workspaces/pytorch_source_code/pytorch/build_android/CMakeFiles/CMakeError.log".
The text was updated successfully, but these errors were encountered: