【发布时间】:2014-08-14 16:22:50
【问题描述】:
我正在尝试从 Windows 机器运行 CMake 以生成具有特定工具链文件的 Android NDK 项目。谷歌有一个关于如何使用 CMake 生成 Android 项目的教程。无论如何,我需要该项目是一个 Eclipse 项目,因为这是将其导入 ADT 包的唯一方法。现在在 CMake UI 上有更多选项:
- Eclipse CDT4 - MinGW
- Eclipse CDT4 - NMake
- Eclipse CDT4 - Unix
- Eclipse CDT4 - 忍者
第二个(Eclipse CDT - NMake)是此配置的正确选择,当我启动 CMake 时,它无法生成以下错误:
CMake Warning at CMakeLists.txt:3 (project):
To use the NMake generator, cmake must be run from a shell that can use the
compiler cl from the command line. This environment does not contain
INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
work.
有什么想法吗?
【问题讨论】:
标签: eclipse android-ndk cmake