How do I install Qt 4.7.0 on Snow Leopard?
I tried using the binary installer and I get the same problem I am describing below.
I have compiled it from source and used the instructions given on the Qt website, but I can't get Qt Creator to find Qt. I tried copying the Qt directory from /usr/local/Trolltech to /Developer/Applications/QT I have 开发者_运维百科tried copying the frameworks into /Developer/Library/Frameworks
When I run Qt Creator I get the following error:
dyld: Library not loaded: QtGui.framework/Versions/4/QtGui Referenced from: /Developer/Examples/Qt/richtext/calendar-build-desktop/calendar.app/Contents/MacOS/calendar Reason: Incompatible library version: calendar requires version 4.7.0 or later, but QtGui provides version 4.5.0
Does anyone know what I am doing wrong? Where is Qt Creator looking for the frameworks?
It looks like you have an old version of QT4 installed.
When you run qmake -version
in the terminal, what do you get?
Here is my output:
$ qmake -version
QMake version 2.01a
Using Qt version 4.7.0 in /Library/Frameworks
You have to check QtCreator preferences to define de qt version to be used. Probably you are pointing to an old version of qt installed. Go to Preferences -> Qt4 and then you will be able to define which version of Qt should be used.
精彩评论