Skip to content
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

Add support for NDK r16b #102

Open
HIPERCUBE opened this issue Dec 26, 2017 · 6 comments
Open

Add support for NDK r16b #102

HIPERCUBE opened this issue Dec 26, 2017 · 6 comments

Comments

@HIPERCUBE
Copy link

I think android-cmake doesn't support NDK r16b yet.
In the NDK r16b, there's no include directory in ndk-r16b/andorid-**/arch-**/usr.

CMake Error at toolchain/android.toolchain.cmake:308 (file):
  file STRINGS file
  "/.../android-ndk-r16b/platforms/android-21/arch-arm/usr/include/android/api-level.h"
  cannot be read.
Call Stack (most recent call first):
  toolchain/android.toolchain.cmake:803 (__DETECT_NATIVE_API_LEVEL)
  /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/CMakeDetermineSystem.cmake:91 (include)
  CMakeLists.txt:2 (project)


CMake Error at toolchain/android.toolchain.cmake:805 (message):
  Specified Android API level (21) does not match to the level found ().
  Probably your copy of NDK is broken.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/CMakeDetermineSystem.cmake:91 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/CMakeForceCompiler.cmake:69 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  toolchain/android.toolchain.cmake:1128 (CMAKE_FORCE_C_COMPILER)
  /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/CMakeDetermineSystem.cmake:91 (include)
  CMakeLists.txt:2 (project)


CMake Deprecation Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/CMakeForceCompiler.cmake:83 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  toolchain/android.toolchain.cmake:1140 (CMAKE_FORCE_CXX_COMPILER)
  /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/CMakeDetermineSystem.cmake:91 (include)
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
@hoonkai
Copy link

hoonkai commented Dec 31, 2017

+1

@JingLiu24
Copy link

+1, any solutions?

@cerkiewny
Copy link

+1

@yuri4029
Copy link

Hi everyone, I am very new with pangolin on android, and I confuse about how to put pangolin lib in project. I use cmake and use these commands code on project, I dont know if I right or wrong ? please help me.
cmake_pangolin_anroid

@yassiezar
Copy link

I think this cmake script is very outdated. The newest Android NDK has a toolchain file bundled with it. It should be under {NDK_ROOT}/build/cmake/android.toolchain.cmake. Try using that one instead?

@kelvin7feng
Copy link

This android.toolchain.cmake is too old. You can update the NDK and modify the -DCMAKE_TOOLCHAIN_FILE=${NEW_NDK_PATH}/build/cmake/android.toolchain.cmake. Hope to help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants