在 Snow Leopard 上安装 Qt 失败

发布于 2024-08-22 11:36:41 字数 579 浏览 4 评论 0原文

我很难让 Qt 运行。我下载了 4.6.2 SDK-Installer,它成功完成。然而,当我尝试通过终端编译任何示例并输入“qmake”时,我收到这样的错误

Failure to read QMAKESPEC conf file /Users/xxx/mkspecs/macx-g++/qmake.conf.
Error processing project file: /Users/xxx/chap06/mdieditor/mdieditor.pro

我尝试添加

#qt
export PATH='/usr/local/Qt4.6':$PATH
export QTDIR=’/usr/local/Qt4.6‘
export QMAKESPEC=/usr/local/Qt4.6/mkspecs/macx-g++

到我的 .profile 文件中,我收到另一个错误,指出

Project LOAD(): Feature qt_config cannot be found.

您知道安装中出了什么问题吗?

非常感谢您的意见

I am having a hard time trying to get Qt running. I downloaded the 4.6.2 SDK-Installer and it completed successfully. Yet, when I try to compile any of the examples by Terminal and typing "qmake" I get errors like this

Failure to read QMAKESPEC conf file /Users/xxx/mkspecs/macx-g++/qmake.conf.
Error processing project file: /Users/xxx/chap06/mdieditor/mdieditor.pro

I tried adding

#qt
export PATH='/usr/local/Qt4.6':$PATH
export QTDIR=’/usr/local/Qt4.6‘
export QMAKESPEC=/usr/local/Qt4.6/mkspecs/macx-g++

to my .profile file, I get another error, stating

Project LOAD(): Feature qt_config cannot be found.

Do you have any idea what went wrong in the installation?

Thank you very much for your input

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

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

发布评论

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

评论(1

野生奥特曼 2024-08-29 11:36:41

尝试

export PATH='/usr/local/Qt4.6/bin':$PATH

一下。

Try

export PATH='/usr/local/Qt4.6/bin':$PATH

instead.

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