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

问题描述 投票:0回答:1

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

The Qt version is invalid: Qt version is not properly installed, please run make install.

打开示例项目时,一般消息中会显示:

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

我检查了这条路径(

/usr/local/Qt-5.2.0/mkspecs/macx-clang/
),确实没有这样的东西:甚至没有
/usr/local/Qt-5.2.0
目录。我已经再次卸载了所有内容,然后再次安装,但这根本没有帮助。有人对该怎么做有什么建议吗?

我的操作系统是 OSX Lion。

macos qt installation osx-lion qt5
1个回答
-1
投票

您可以使用在线安装程序,并通过在线安装程序再次重新安装,该安装程序会识别并尝试解决所有可能的错误。 试试这个链接: https://www.qt.io/download-qt-installer-oss?hsCtaTracking=99d9dd4f-5681-48d2-b096-470725510d34%7C074ddad0-fdef-4e53-8aa8-5e8a876d6ab4

您还可以在 www.qtacademy.com 上创建一个帐户,从 qt 中学习很多东西并使用它来找到教程。

© www.soinside.com 2019 - 2024. All rights reserved.