-
qt打开工程,只显示.pro文件
-
cannot run compiler ‘g++’.output:
-
cannot run compiler ‘clang++’.output:
1和3的解决方法皆为:
sudo apt-get clang
2的不清楚,我用的是clang++,不是g++ -
Maybe you forgot to setup the environment?Error while parsing file /home/ruofu/test1/test1.pro. Giving up.Project ERROR: Cannot run compiler ‘g++’. Output:
也许您忘记设置环境?
解决方法:
vi /etc/profile
按a进入编辑,加入
export PATH=$PATH:/usr/bin
按esc,输入:wq
保存退出。
source /etc/profile
更新环境变量即可。
(这个路径,是我的clang++的路径,可在qt里的toolsoptionskits~compile中查看)
如果使用qmake进行编译,则写到qmake的上一级路径 -
cannot find -IGL/gl.h error
解决方法:
sudo apt-get install mesa-common-dev
-
Could not determine which “make” command to run. Check the “make” step in the build configuration.Error while building/deploying project test1 (kit: Desktop Qt 5.12.4 GCC 64bit)When executing step “qmake”
无法确定要运行哪个“make”命令。检查生成配置中的“make”步骤。构建/部署项目测试1时出错(套件:桌面 Qt 5.12.4 GCC 64 位)执行步骤“qmake”时。
http://t.csdn.cn/k4yDE
查看这个可以理解一些东西。
qt程序没问题,运行却出现问题
最新推荐文章于 2024-08-03 17:53:10 发布