Unzip the downloaded. GZ Source code:
Gunzip xxx.tar.gz
Tar xvf Xxx.tar, in fact, in the Mac can directly double-click Unzip.
Then navigate to the extracted directory:
./configure
Make
sudo make install
So QT will be installed on the /usr/local/trolltech/qt-4.4.0.
In this way, you can use the qmake.
/usr/local/trolltech/qt-4.4.0/bin/qmake-project
/usr/local/trolltech/qt-4.4.0/bin/qmake
Make-f Makefile
Open./qt01.app
In order to use Qt, some environment variables need to be extended.
PATH -To locate Qmake, MOC and other Qt tools
This is the done like this:
. profile (If your shell is bash), add the following lines:
Path=/usr/local/trolltech/qt-4.3.4/bin: $PATH
Export PATH
In . Login (your shell was csh or tcsh), add the following line:
Setenv Path/usr/local/trolltech/qt-4.3.4/bin: $PATH
If you use a different shell, please modify your environment variables accordingly.
For more detailed instructions see: http://doc.trolltech.com/4.3/install-mac.html
1. Add PATH: Tap Vim ~/.profile at the end of the terminal
I don't know if you'll use VIM. Search the network; then add export path= "/usr/local/trolltech/qt-4.4.0/bin: $PATH"
Save, exit Vim, and finally restart the terminal, the new path is: You can use the Echo $PATH look.
2. Open the *.app file: You can double-click to open in the Finder (to go to the/usr/local/trolltech/qt-4.4.0/bin directory, in the Finder menu)
Or use open *.app in the terminal to do so.
3. Release the QT program, and Win on the same, also find the necessary resources such as Dylib, and then packaged together to publish.
XCode also has related tools, see/developer/applications, specifically I have not tried, after everyone to explore together to see ...
Http://www.cppblog.com/biao/archive/2008/05/09/49271.html
Install QT 4.4 in your Mac