PDA

View Full Version : Where is "configure" on Macintosh ?



kimfujiyama
3rd November 2009, 20:11
Hello,

I have experience with Qt on Linux and Windows. But today, I got access to a Macintosh machine and I am completely lost. I downloaded the "Qt 4.6 Beta for Macintosh" .dmg file. I installed it. But for the love of god, I can't find the "configure" utility, which I need to build Qt statically. Also, I can't figure out what the Qt path is. There's no centralised "c:\qt" or "/usr/local/TrollTech" folder on Macintosh : everything seems scattered all over the place ! The Qt documentation for Mac deployment is of no help at all, as it's copied from the Windows and Linux documentation. Please help me build Qt statically on Macintosh. Thanks in advance ! I have Snow Leopard.

cyglor
3rd November 2009, 21:38
The sdk releases for OSX scatter things around under /Developer/ and other locations.
If you you want to have the familiar unix way of building Qt ( configure; make; make install)

Try the Single Source Code Package:
http://qt.nokia.com/developer/qt-4.6-preview#download-the-qt-4-1

kimfujiyama
4th November 2009, 16:27
Thanks to your reply, I got everything working. Apparently, the .dmg package was not appropriate. I used the sources instead. I took note of every step I followed, and I give those notes here.

1) Uninstall the inappropriate .dmg package :

sudo /Developer/Tools/uninstall-qt.py

2) Optional : Delete directories forgotten by uninstaller :

sudo rm -R /Developer/
sudo rm -R /Library/Frameworks/QtDesigner.framework

3) Download and install Xcode from Apple. A free registration is required :

http://developer.apple.com/technology/xcode.html

4) Download latest stable Qt from Public Repository :

http://qt.gitorious.org/qt/qt

5) Build Qt statically. Optional : Use -i to ignore errors :

./configure -static -debug-and-release -no-sql-sqlite
make -i
sudo make install -i

6) Install Qt Creator and specify in its preferences the Qt path.