【发布时间】:2013-10-13 00:23:05
【问题描述】:
我想用 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
谢谢!
【问题讨论】:
标签: gcc android-ndk makefile cmake