我希望使用Android NDK和Cmake生成我的Android本地应用程序,因此我下载了android-cmake工具链。
Cmake成功生成了我的项目,但是当我尝试进入生成的目录并运行"make"时,出现了以下错误:
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ldz/Desktop/myProject
[ 1%] Building CXX object Project/src/Main/Core/CMakeFiles/Core.dir/Main/Main.cpp.o
arm-linux-androideabi-g++: error: unrecognized command line option '-stdlib=libc++'
我不知道这里出了什么问题,我的项目使用C++11,在这里是我的g++ --version结果:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
谢谢!