Mac Qt4:PyQt 4.8 安装错误(需要帮助)

发布于 2024-09-29 14:30:31 字数 803 浏览 3 评论 0原文

希望你们中有人能帮助我。我是 mac 和 qt 的新手,所以如果我问一些愚蠢的问题,请原谅我。那么问题来了。我想在 macbook (Mac OS X 10.6.4) 上安装 PyQt 4.8。 首先我安装了 Qt 4.7,就像这个描述 http://doc.trolltech.com/4.7/安装-mac.html。然后我安装了 sip 4.11.2(没有 --arch=i386),这里是操作方法页面(http://www.expobrain.net/2010/06/22/install-pyqt4-in-snow-leopard)。之后我尝试安装 PyQt 4.8(没有 --use-arch=i386),但出现错误。我用谷歌搜索了一下,没有成功。我不知道该怎么办。我尝试从源代码构建它,因为我需要安装更多的软件包,例如 qimage2ndarray。我听说使用 .dmg(二进制)可能会遇到一些麻烦。也许有人可以帮助我。希望我不需要重新安装整个操作系统。 这里是错误。

Olis-MacBook-Pro:PyQt-mac-gpl-4.8 opetra$ python configure.py build
Determining the layout of your Qt installation...
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

hope someone of you can help me. I'm new to mac and qt, so please forgive me if I ask some dumb questions. So to the problem. I want to install PyQt 4.8 on the macbook (Mac OS X 10.6.4).
First I installed Qt 4.7 like in this description http://doc.trolltech.com/4.7/install-mac.html. Then I installed sip 4.11.2 (without --arch=i386), here the how-to page (http://www.expobrain.net/2010/06/22/install-pyqt4-in-snow-leopard). After that I tried to install PyQt 4.8 (without --use-arch=i386), but I get an error. I googled it, no success. I don't know what to do. I try to build it from source, because I need to install a lot more packages, like qimage2ndarray. And I heard that with the .dmg (binary) you can have some trouble. May be someone can help me. Hope I don't need to reinstall the whole OS.
Here the error.

Olis-MacBook-Pro:PyQt-mac-gpl-4.8 opetra$ python configure.py build
Determining the layout of your Qt installation...
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

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

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

发布评论

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

评论(1

为你鎻心 2024-10-06 14:30:31

好的,伙计们,我解决了问题。我必须将这三个拱门设置为 x86_64。不仅适用于 sip 和 PyQt。如果没有它,qt 将默认编译 PowerPC arch。不知道为什么,我有一台配备 i5 的 MacBook Pro 2010。以为配置会自动识别这一点。

OK guys, I solved the problem. I had to set the arch, in my case to x86_64, for all three. Not only for sip and PyQt. Without it, qt was compiling PowerPC arch as default. Don't know why, I have a macbook pro 2010 with an i5. Thought the configuration would automatic recognize that.

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