projectNe10/Ne10

Ne10 compiling error

Opened this issue · 1 comments

hi all, I am meeting an urgent Ne10 compiling error:
1, I git clone Ne10 project
2, I download android-ndk
3, I input the command in the Terminal:
cd $NE10_PATH
mkdir build && cd build
export ANDROID_NDK=/home/chenyuz/android-ndk
export NE10_ANDROID_TARGET_ARCH=aarch64
export ANDROID_API_LEVEL=27
export ARM_ANDROID_TOOLCHAIN_VERSION=4.9
cmake -DCMAKE_TOOLCHAIN_FILE=../android/android_config.cmake ..

Then error happens:
~/Ne10/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../android/android_config.cmake ..
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/chenyuz/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-as
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Target architecture: aarch64
-- Building type: RELEASE
CMake Error at CMakeLists.txt:117 (string):
string does not recognize sub-command APPEND

-- Loaded toolchain:
/home/chenyuz/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
/home/chenyuz/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++
/home/chenyuz/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-as
-- CMAKE_C_FLAGS:
-fno-strict-aliasing -O2 -DNDEBUG --sysroot=/home/chenyuz/android-ndk/platforms/android-27/arch-arm64/ -pie
-- Configuring incomplete, errors occurred!
See also "/home/chenyuz/Ne10/build/CMakeFiles/CMakeOutput.log".
See also "/home/chenyuz/Ne10/build/CMakeFiles/CMakeError.log".

Could you help to check it please? Do I miss something?
Thanks

string does not recognize sub-command APPEND

Looks to me like your CMake version might be incompatible (i.e. too old). I’d try using CMake from the Android SDK (in Android/sdk/cmake/<version>/bin/cmake).