Qt 5.2版本未在Mac上正确安装

Yel*_*low 5 macos installation qt osx-lion qt5

我最近尝试将我的Qt版本升级到5.2,因此我卸载了以前的版本(使用MaintenanceTool.app),并下载并安装了最新版本.但这完全打破了它.每当我尝试建立一个项目时,它会说:

The Qt version is invalid: Qt version is not properly installed, please run make install.
Run Code Online (Sandbox Code Playgroud)

在打开示例项目时,它在常规消息中说:

Error while parsing file /Users/thisuser/Qt/5.2.0/5.2.0/clang_64/examples/gui/analogclock/analogclock.pro. Giving up.
Could not find qmake configuration file default.
Cannot read /usr/local/Qt-5.2.0/mkspecs/macx-clang/qmake.conf: No such file or directory
Could not read qmake configuration file /usr/local/Qt-5.2.0/mkspecs/macx-clang/qmake.conf.
Project ERROR: Unknown module(s) in QT: gui core
Project ERROR: Unknown module(s) in QT: gui core
Run Code Online (Sandbox Code Playgroud)

我检查了这个路径(/usr/local/Qt-5.2.0/mkspecs/macx-clang/),确实没有这样的东西:甚至没有/usr/local/Qt-5.2.0目录.我已经再次卸载了所有内容然后再次安装,但这根本没有帮助.有没有人有什么建议?

我的操作系统是OSX Lion.

小智 0

您可以使用在线安装程序并通过在线安装程序再次重新安装,该安装程序会识别所有可能的错误并尝试解决它们。