在 Mac OS X Lion 上安装 Qt SDK 时出现问题

发布于 2024-12-03 19:54:32 字数 881 浏览 0 评论 0原文

我刚刚升级到 OS X Lion,我正在尝试安装 Qt SDK。我已经通过 homebrew 安装了 Qt 4.7.3,并且正在尝试获取 Qt SDK 1.1.1 运行在我的机器上。

我从诺基亚 Qt 网站下载了安装程序并运行它。然而,在安装过程中,出现了一系列奇怪的错误:

First Qt Install Error Message

我点击了“重试”几次无济于事,所以点击“忽略”,因为“取消”只会退出安装程序。

第二个 Qt 安装错误消息

再次单击“重试”。

第三个Qt安装错误消息

最后,再次点击“重试”,安装完成。

但是,显然有问题,因为当我尝试运行 Qt Creator 时,我看到以下窗口:

在此处输入图像描述

如您所见,右侧的 Qt Designer 选项卡以及 Projects 选项卡均呈灰色。我尝试再次运行安装程序,并弹出同样的错误。我尝试用谷歌搜索解决方案(寻找涉及 Harmattan-postinstall.sh 的错误),但没有出现任何结果。

还有其他人遇到过这些问题吗?有谁知道解决方案吗?

I've just upgraded to OS X Lion and am I trying to install Qt SDK. I've installed Qt 4.7.3 through homebrew, and am trying to get Qt SDK 1.1.1 running my machine.

I downloaded the installer from the nokia Qt site, and run it. However, during the installation, a strange series of errors appeared:

First Qt Install Error Message

I clicked "Retry" a few times to no avail, so hit "Ignore", as "Cancel" just quits the installer.

Second Qt Install Error Message

Again, clicked "Retry".

Third Qt Install Error Message

Finally, clicked "Retry" again, and the installation completed.

However, there's obviously something faulty, because when I try to run Qt Creator, I am greeted with the following window:

enter image description here

As one can see, the Qt Designer tab on the right, as well as the Projects tab are greyed out. I tried running the installer again, and the same exact errors pop up. I tried googling a solution (looking for errors involving harmattan-postinstall.sh) and nothing came up.

Has anyone else encountered these problems? Does anyone know of a solution?

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

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

发布评论

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

评论(2

楠木可依 2024-12-10 19:54:32

您所需要做的就是安装 Xcode 附带的 GCC!
我有同样的问题 Lion,我安装了 gcc,并重新安装了 QT...一切都很顺利。
要仔细检查您是否有相同的问题,请使用“which gcc”并查看您是否有 gcc。

  • 要安装gcc,请转到Xcode->首选项->下载,然后单击“命令行工具”旁边的安装按钮。

All you need to do is install GCC - that comes with Xcode !
I had the same issues Lion, I installed gcc, and reinstalled QT... things went smooth.
to double check if you have the same issues, use " which gcc" and see if you have gcc.

  • To install gcc, go to Xcode->Preference->Downloads and click install button besides "Command line tools".
标点 2024-12-10 19:54:32

cwadding 用户的回答:

QtSDK 的更新版本现已推出,可能会解决以下问题
问题。我能够在 Lion 上安装 QtSDK 并使用
自制的。事实上,Qt Designer 选项卡呈灰色是无关的
对于您遇到的错误,您只需安装它即可。安装
只需在 QtSDK 目录中选择“SDK Maintenance Tool”,然后
选择“包管理器”并继续。您应该能够选择并
安装其他工具,例如 Qt Designer 以及其他东西
比如例子。希望这会有所帮助。

Answer from the user, cwadding:

An updated version of the QtSDK is available which might solve the
problem. I was able to install the QtSDK fine on Lion and using
homebrew. The fact that the Qt Designer tab is grayed out is unrelated
to the error you are having, you just have to install it. To install
it just select "SDK Maintenance Tool" in your QtSDK directory and then
Select "Package Manager" and continue. You should be able select and
install additional tools such as Qt Designer as well as other things
like examples. Hope this helps.

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