如何在 OS X Snow Leopard 上安装 QT、PyQT 和 PySide 的步骤

发布于 2024-09-17 11:34:58 字数 240 浏览 4 评论 0原文

我在 Snow Leopard 上安装 QT 时遇到了一些问题,我希望我能从其他经历过这种情况的人那里受益。 :)

我假设我需要使用 SL 中未包含的 python 版本...可以是 homebrew、macports、python.org 等。

任何人都可以给我一些简单的步骤来获取 QT 、PyQT 和 PySide 安装了吗?有关如何设置项目以将 py2app 与所有这些一起使用的示例的奖励积分。

谢谢! :)

I've had some problems installing QT on Snow Leopard and I'm hoping that I can benefit from someone else who's been in this position. :)

I'm assuming that I'll need to use a version of python that's not included with SL... be it from homebrew, macports, python.org, etc.

Can anyone give me some simple steps to follow to get QT, PyQT, and PySide installed? Bonus points for an example of how to setup a project to use py2app with all this.

Thanks! :)

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

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

发布评论

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

评论(4

☆獨立☆ 2024-09-24 11:34:58

如果您想尝试 PySide,可以按照以下步骤操作:

http://blogger-mikael.blogspot.com/2010/09/compiling-pyside-for-qt-47-on-os-x.html

If you want to try out PySide, you can follow these steps:

http://blogger-mikael.blogspot.com/2010/09/compiling-pyside-for-qt-47-on-os-x.html

一瞬间的火花 2024-09-24 11:34:58

只需使用适用于 OS X 的 PyQt + Qt + Python 的二进制发行版,然后手动安装 PySide 即可。例如,有: http://sourceforge.net/projects/pyqt-mac/files/ ,但相关网站似乎已经消失。

只是想知道,为什么要同时使用 PyQt 和 PySide?

Just use a binary distribution of PyQt + Qt + Python for OS X, and then install PySide manually. For example, there's: http://sourceforge.net/projects/pyqt-mac/files/ , but it appears that the associated web site has vanished.

Just wondering though, why would you use both PyQt and PySide?

烟雨凡馨 2024-09-24 11:34:58

如果您想在 Snow Leopard 上安装 QT,这可能会帮助您...

根据 这个 bug报告,4.8.0 版本仅与 OS X Lion 捆绑在一起。使用 4.8.0 版本将导致如下错误:

dyld: Symbol not found: _kCFWebServicesProviderDefaultDisplayNameKey
Referenced from: /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit 
Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

换句话说,您将需要使用 4.7.0 版本,直到该问题得到纠正。 Homebrew 引用的是 4.8.0,因此您必须使用独立安装程序。这是 QT 4.7.0 Snow 的链接Leopard 安装程序

关于PyQT和PySide,我无法帮助你。我对Python一无所知。 =/

If you want to install QT on Snow Leopard, this might help you...

According to this bug report, the 4.8.0 release was bundled for OS X Lion only. Using the 4.8.0 release will result in errors like:

dyld: Symbol not found: _kCFWebServicesProviderDefaultDisplayNameKey
Referenced from: /Library/Frameworks/QtWebKit.framework/Versions/4/QtWebKit 
Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

In other words, you will need to use the 4.7.0 release until this is remedied. Homebrew is referencing 4.8.0, so you'll have to use the standalone installer. Here is the link for the QT 4.7.0 Snow Leopard installer.

In regards to PyQT and PySide, I can't help you there. I don't know anything about Python. =/

空宴 2024-09-24 11:34:58

看来对于SL上的Qt 5.x,你需要编译它。
本页介绍了如何执行此操作

然而,在 SL 上首先安装了最新的 XCode 3.2.6 后,安装运行顺利。仅当运行 Qt Creator 时,才会出现一些错误消息:

Symbol not found: _kCFWebServicesProviderDefaultDisplayNameKey...
Plugin initialization failed...

It seems that regarding Qt 5.x on SL, you need to compile it.
This page explains how to do so.

However, having first installed the latest XCode 3.2.6 on SL, the setup runs smoothly. It's only when running Qt Creator that a few error messages start to appear:

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