- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我下载了 ndk cmake 和 LLDB 用于 ndk 开发。然后我创建了一个项目
c++代码,应用程序编译出错。
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
...
Configuration failed.
External native generate JSON debug: JSON generation completed with problem
FAILURE: Build failed with an exception.
\* What went wrong:
Execution failed for task ':app:generateJsonModelDebug'.
com.android.ide.common.process.ProcessException: Error configuring
最佳答案
我用 Valentin Safonnikov 的评论解决了这个问题:
"Instead changing global path, you can add the path to cmake into local.properties file in the same dir as gradlew.
cmake.dir=D\:\\Android\\sdk\\cmake\\3.10.2.4988404
"
cmake.dir=...\\3.6...
,它仍然使用 3.10。我可以在文本 gradle 输出中看到这一点:
External native generate JSON debug: executing cmake Executable : C:\Users\User\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\cmake.exe
arguments :
...
-DCMAKE_MAKE_PROGRAM=C:\Users\User\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe
...
关于android-studio - 未设置 Ninja CMAKE_MAKE_PROGRAM 的 ndk 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54666491/
我对 CMake 已经束手无策了;它有很大的潜力,但我似乎无法让它找到基本的系统工具(即 make )来运行。 症状 CMake 和 CMake GUI 生成以下内容(删除 CMakeCache.tx
我正在尝试构建 openCv,我之前从未构建过任何东西。 我在 C:\MinGW 中安装了 gcc ftp://ftp.equation.com/gcc/gcc-7.1.0-64.exe现在,当我在命
我是 CMake 的新手,正在尝试了解如何配置 CMake 以使用 Ninja 作为构建工具。我遇到的具体问题是我正在尝试使用他们的 install.py 为 vim 安装 YouCompleteMe
我有一个项目,我正在通过 Jenkins CI 服务器运行并使用 Cmake 插件构建,但我一直收到相同的错误: -- Configuring done -- Generating done -- B
我下载了 ndk cmake 和 LLDB 用于 ndk 开发。然后我创建了一个项目 c++代码,应用程序编译出错。 CMake Error: CMake was unable to find a b
我要为这个错误发疯。我已经尝试根据可以在 stackoverflow 中找到的一些建议搜索和更改我的代码,但仍然得到相同的错误。 我已经下载了 CMake,里面有 Ninja。没有LLDB。 My N
有人知道这个 CMake 构建问题吗?我看到了几个类似的问题,但他们在 Window 就我而言, 操作系统:Ubuntu 16.04 CMake 版本:3.11 当我在下面写终端时cmake -DRO
我是一名优秀的程序员,十分优秀!