Qt 4.8 beta and Mac OSX Lion, Phonon bug

After successfully installing mac OS 10.7, I tried to compile my qt 4.7 project.

I had a lot of warnings about the "unsupported version of mac os x". So I decided to use Qt 4.8 beta, and now all the warnings are gone.

However, I now have a problem with the linker 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 that I can fix this?

Thanks!

+3
source share
4 answers

For now, I decided to stick with Qt 4.7.3 in order to remove the warnings that I hacked qtglobal.h, and added Mac 10.7 as a supported version.

Everything seems to be fine ...

0
source

You can easily install QT under Lion using homebrew (which already has a fix ):

+2
source

I would recommend using MacPorts. If you download the MacPorts 2.0.0 installer (the latter at the time of writing), you can unzip the qt4-mac-devel-4.8.0-beta1.tgz file at the end of this MacPorts traffic report through the qt4-mac-devel port to get 4.8 .0 beta 1 running under Lion.

This is not official yet, but then Qt 4.8.0. It seems to work well and can be used to create Qt Creator 2.2.1 without any problems.

0
source

I am using Qt Creator 2.2.1 and Qt 4.7.4 (64 bit).

While the Lion build reported a few warnings (regarding the Mac OS version), the resulting application worked as expected.

Using the macdeployqt tool (QtSDK / Desktop / Qt / 473 / gcc / bin / macdeployqt), using the -dmg switch, a dmg file is created from the application with all the necessary dependencies.

And while it reported a number of errors (related to copying nib files), the resulting dmg file still worked as expected.

0
source

Source: https://habr.com/ru/post/1390393/


All Articles