Install QT 4.4 in your Mac

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.