AXL79
AXL79

Reputation: 33

Installing Qt libraries on OS X

I'm trying to install the Qt 4.8.3 precompiled libraries downloaded from http://qt-project.org/downloads on my OS X 10.6 machine. Unfortunately the package doesn't seem to actually install any libraries (although it claims to do so in the readme)

I've read loads of instructions of how to configure and build Qt from source but these are precompiled, as in 'you don't have to compile them yourself'. So I must be missing something.

Is there anyone out there who knows how to actually install Qt on OS X so that it is possible to link against them -without- building the whole thing from source.

Thanks

Upvotes: 1

Views: 9137

Answers (2)

Trenton Schulz
Trenton Schulz

Reputation: 778

The Qt frameworks are located in /Library/Frameworks/.

When you start the Qt.mpkg in Installer. The Welcome Screen has the following text:

After a successful install, you can find most new things in /Developer. Specifically things will be located in the following places:

•   Qt Designer, Qt Linguist: /Developer/Applications/Qt
•   Qt Documentation: /Developer/Documentation/Qt
•   Qt Examples: /Developer/Examples/Qt
•   Qt Plugins: /Developer/Applications/Qt/Plugins
•   Qt Frameworks: /Library/Frameworks
•   Qt Libraries: /usr/lib
•   qmake, moc, uic, etc.: /Developer/Tools/Qt (symlink to /usr/bin)
•   Uninstall script: /Developer/Tools/uninstall-qt.py

These should help you out.

Upvotes: 2

oggmonster
oggmonster

Reputation: 4872

Assuming you have downloaded the compiled libraries, all you should need to do is locate them in Qt Creator preferences. Go to:

Preferences->Build & Run->Qt Versions

Click add, it will ask you to locate the qmake executable for your Qt library version. Mine happens to be located at:

/Users/MyUserName/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake

As long as you know where you have put your downloaded libraries you should be able to locate the file. Then all you need to do is go to Projects on the Qt Creator sidebar and select your Qt version from the drop down.

Upvotes: 2

Related Questions