/opt/cmake/bin/cmake目录中没有文件

发布于 2025-01-20 05:45:53 字数 683 浏览 3 评论 0原文

我正在新鲜的Raspberry Pi 4上安装QT6,运行最新官方32bit OS

https://www.tal.org/tutorials/building-qt-62-raspberry-pi

,我被困在 中/em>部分要求我执行这一行,

/opt/cmake/bin/cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=/opt/Qt/6.2.3-armv7l \
-DQT_FEATURE_opengles2=ON \
-DQT_FEATURE_opengles3=ON \
-DCMAKE_TOOLCHAIN_FILE=tc.cmake \
-DQT_AVOID_CMAKE_ARCHIVING_API=ON ../qtbase-everywhere-src-6.2.3

但是我遇到了一个错误

bash: /opt/cmake/bin/cmake: No such file or directory

,我遵循每一步的障碍,没有问题,一切都会顺利进行这部分。有人可以帮助我解决这个问题吗?

I am installing Qt6 using this guide on my fresh raspberry pi 4 running the latest official 32bit OS

https://www.tal.org/tutorials/building-qt-62-raspberry-pi

and i am stuck in the Configure the Qt 6.2 build portion where it asks me to execute this line

/opt/cmake/bin/cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=/opt/Qt/6.2.3-armv7l \
-DQT_FEATURE_opengles2=ON \
-DQT_FEATURE_opengles3=ON \
-DCMAKE_TOOLCHAIN_FILE=tc.cmake \
-DQT_AVOID_CMAKE_ARCHIVING_API=ON ../qtbase-everywhere-src-6.2.3

but i am getting an error

bash: /opt/cmake/bin/cmake: No such file or directory

I followed every step behore hand and there were no problems, everthing went smoothly exempt this part. Can anybody help me with this problem ?

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

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

发布评论

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

评论(1

じ违心 2025-01-27 05:45:53

默认路径

/usr/bin/cmake

如果您已经通过APT安装了Cmake,则应尝试查看是否存在 。如果是,您可能需要

/opt/cmake/bin/cmake

/usr/bin/cmake

另一种方法来替换,如果您安装了CMAKE,其他地方将是运行命令:

whereis cmake

If you have installed Cmake through apt, the default path should be

/usr/bin/cmake

Try to see if is there. If yes, you might want to replace

/opt/cmake/bin/cmake

with

/usr/bin/cmake

Another way to find if you have cmake installed somewhere else would be to run the command:

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