简体   繁体   English

C ++与Linux上的Qt创建者:Qtversion无效

[英]c++ with Qt creator on linux: Qtversion is invalid

I just installed Qt creator to develop c++ on linux, 我刚刚安装了Qt Creator在Linux上开发c ++,

I try to start to build the smallest example, however I get this message: 我尝试开始构建最小的示例,但是却收到以下消息:

:: error: The Qt version is invalid: Could not determine the path to the binaries of the Qt installation, maybe the qmake path is wrong? ::错误:Qt版本无效:无法确定Qt安装二进制文件的路径,也许qmake路径错误? :: error: The qmake command "" was not found or is not executable. ::错误:找不到qmake命令“”或该命令不可执行。

in the build issues window 在构建问题窗口中

What should I do 我该怎么办

Thank you 谢谢

In the settings window on Qt4 tab there should be automaticaly-detected path to qmake. 在“ Qt4”选项卡上的“设置”窗口中,应该有自动检测到的qmake路径。 If there isn't one (or it is invalid) you should simply give the correct path. 如果没有(或无效),则只需给出正确的路径。 For this you have to locate qmake using the command window in linux: whereis qmake. 为此,您必须使用linux中的命令窗口找到qmake:whereis qmake。 Then on qt4 tab you should add manually the location (I particularly added: /usr/lib/qt4/bin/qmake). 然后,在qt4选项卡上,您应该手动添加位置(我特别添加了:/ usr / lib / qt4 / bin / qmake)。

In the settings window on Qt4 tab there should be automaticaly-detected path to qmake. 在“ Qt4”选项卡上的“设置”窗口中,应该有自动检测到的qmake路径。 If there isn't one (or it is invalid) you should simply give the correct path. 如果没有(或无效),则只需给出正确的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM