-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Build with cmake using a toolchain file made for the Android NDK.
For example, this one works:
https://github.com/AerialX/libbricks/blob/master/cmake/toolchain.android.cmake
Use its NDK_CPU_X86, NDK_CPU_ARM, and NDK_CPU_ARM_V7A/NDK_CPU_ARM_VFPV3
options as needed to build for the various configurations.
As if building with CMake using the NDK was a straight forward task...
What about showing up the commands you used ? Because mine
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain.android.cmake ..
doens't work.
Here's the log:
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
-- Looking for sys/types.h
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for sys/types.h - not found
-- Looking for stdint.h
[...]
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of long - failed
-- Check size of long long
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of long long - failed
-- Performing Test HAVE_RESTRICT
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Performing Test HAVE_RESTRICT - Failed
-- Performing Test HAVE___RESTRICT
[...]
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Performing Test HAVE_GCC_DEFAULT_VISIBILITY - Failed
-- Performing Test HAVE_GCC_FORMAT
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Performing Test HAVE_GCC_FORMAT - Failed
-- Looking for fenv.h
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for fenv.h - not found
-- Looking for fpu_control.h
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for fpu_control.h - not found
-- Looking for float.h
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for float.h - not found
-- Looking for ieeefp.h
[ ....]
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for strcasecmp - not found
-- Looking for _stricmp
CMake Error: your C compiler: "/bin/-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for _stricmp - not found
CMake Error at CMakeLists.txt:265 (MESSAGE):
No case-insensitive compare function found, please report!
-- Configuring incomplete, errors occurred!
Any idea ?
Metadata
Metadata
Assignees
Labels
No labels