在Android上运行CMAKE 3.18.1

发布于 2025-01-31 08:35:26 字数 571 浏览 3 评论 0原文

在使用CMAKE 3.18.1运行项目时,我执行了以下步骤:

  1. 我在build.gradle上添加了externalnativeBuild {cmake {cmake {path file('src/main/main/cpp/cmakelists)上请求的版本。 txt')版本'3.18.1'}}

  2. 我在build.gradle上添加了externalNativeBuild {cmake {path file('src/main/cpp/cmakelists.txt')版本'3.18.1'}}

    添加的 。在DefaultConfig上

  3. cmakelist cmake_minimin_required(版本3.18.1)

我获得了错误消息[cxx1405]构建JSON时出现问题时发生了一个问题,' /3.18.1/bin/cmake'''

我已经清理了该项目并无效,但仍然错误。我尝试增加版本,但有很多错误。谢谢

Got error when running my project with CMake 3.18.1, I executed the following steps:

  1. I added the version requested on build.gradle as externalNativeBuild { cmake { path file('src/main/cpp/CMakeLists.txt') version '3.18.1' } }

  2. And also add on defaultConfig externalNativeBuild { cmake { cppFlags '' } }

  3. Inside CmakeList cmake_minimum_required(VERSION 3.18.1)

I got error message [CXX1405] exception while building Json A problem occurred starting process 'command '/Users/user/Library/Android/sdk/cmake/3.18.1/bin/cmake''

I already clean the project and invalidate cache, but still error. I try increase the version but got many error. thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

好菇凉咱不稀罕他 2025-02-07 08:35:26

我面临着完全相同的问题。这是ADB没有证明对Apple M系列芯片组的支持的问题。我找到了解决方案在这里。只需安装Rosetta即可。

softwareupdate --install-rosetta

google essue eslove tracker

I faced the exact same issue. This is an issue with ADB not proving support for Apple M series chipsets. I found the solution here . Simply install rosetta.

softwareupdate --install-rosetta

Google Issue Tracker

梦归所梦 2025-02-07 08:35:26

我发现该解决方案是需要从您的Co Worker中删除CMAKE或.cxx文件,然后再推入Git,因为生成文件,因此问题。谢谢

I found the solution is need remove CMake or .cxx file from your co worker before push to git, the issue because generate file. thanks

零度° 2025-02-07 08:35:26

卸载并安装CMAKE版本3.18.1

uninstall and install cmake version 3.18.1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文