Qt 4.8 beta 和 Mac OSX Lion,Phonon 错误
成功安装 mac OS 10.7 后,我尝试编译我的 qt 4.7 项目。
我收到了很多“不支持的 mac os x 版本”的警告。因此我决定使用 Qt 4.8 beta,现在所有警告都消失了。
但是,我现在使用 Phonon 时遇到链接器问题:
dyld: Library not loaded:/Users/pulseagent/repos/build2/Desktop/Qt/4.8.0/gcc/lib/QtDBus.framework/Versions/4/QtDBus
Referenced from: /Users/kikohs/QtSDK/Desktop/Qt/4.8.0/gcc/lib/phonon.framework/Versions/Current/phonon
Reason: Incompatible library version: phonon requires version 4.8.0 or later, but QtDBus provides version 4.7.0
你知道我可以解决这个问题吗?
谢谢!
After a successful install of mac OS 10.7 I tried to compile my qt 4.7 project.
I had many warnings of "unsupported mac os x version". I thus decided to use Qt 4.8 beta and now, all the warnings are gone.
However, I now have a linker problem using Phonon:
dyld: Library not loaded:/Users/pulseagent/repos/build2/Desktop/Qt/4.8.0/gcc/lib/QtDBus.framework/Versions/4/QtDBus
Referenced from: /Users/kikohs/QtSDK/Desktop/Qt/4.8.0/gcc/lib/phonon.framework/Versions/Current/phonon
Reason: Incompatible library version: phonon requires version 4.8.0 or later, but QtDBus provides version 4.7.0
Do you know I could I fix this ?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用 homebrew 轻松地在 Lion 下安装 QT(已经对此进行了修复):
使用安装自制程序
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com。 com/gist/323731)"
使用安装qt
brew install qt --build-from-source
You could easily install QT under Lion using homebrew(which already has a fix for this):
install homebrew using
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
install qt using
brew install qt --build-from-source
现在我决定坚持使用 Qt 4.7.3,为了消除警告,我破解了 qtglobal.h 并添加了 Mac 10.7 作为受支持的版本。
看起来运行良好...
For now I decided to stick with Qt 4.7.3, to remove the warnings I hacked the qtglobal.h and added Mac 10.7 as a supported version.
It seems to run fine ...
我建议使用 MacPorts。如果您下载 MacPorts 安装程序 2.0.0(最新版本位于撰写本文时)您可以解压 qt4-mac-devel-4.8.0-beta1 .tgz 文件 发布在此 MacPorts trac 报告通过 qt4-mac-devel 端口,以便让 4.8.0 beta 1 在 Lion 下工作。
它还不是官方的,但 Qt 4.8.0 也不是。它似乎运行良好,可以用来构建 Qt Creator 2.2.1,没有任何问题。
I would recommend using MacPorts. If you download the MacPorts installer 2.0.0 (latest at the time of writing) you can unpack the qt4-mac-devel-4.8.0-beta1.tgz file posted at the end of this MacPorts trac report over the qt4-mac-devel port, in order to get 4.8.0 beta 1 working under Lion.
It's not official yet, but then nor is Qt 4.8.0. It seems to work well and can be used to build Qt Creator 2.2.1 without problems.
我正在使用 Qt Creator 2.2.1 和 Qt 4.7.4(64 位)。
虽然 Lion 中的构建报告了许多警告(与 Mac OS 版本有关),但生成的应用程序确实按预期工作。
使用 macdeployqt 工具 ( QtSDK/Desktop/Qt/473/gcc/bin/macdeployqt ) 和 -dmg 开关,从应用程序创建一个包含所有必需依赖项的 dmg 文件。
虽然这报告了许多错误(与复制 nib 文件有关),但生成的 dmg 文件仍然按预期工作。
I'm using Qt Creator 2.2.1 and Qt 4.7.4 (64 bit).
While a build in Lion reported a number of warnings (to do with the Mac OS version) the resulting app did work as expected.
Using the macdeployqt tool ( QtSDK/Desktop/Qt/473/gcc/bin/macdeployqt ), with the -dmg switch, creates a dmg file from the app with all of the required dependencies.
And while this reported a number of errors (to do with copying nib files) the resulting dmg file still worked as expected.