Difference between revisions of "Compiling Qt from source"
Jump to navigation
Jump to search
(New page: == Download == Download [http://www.trolltech.com/downloads/opensource/appdev/linux-x11-cpp Qt sources] == Build steps == Untar the archive: tar xvfz qt-x11) |
|||
Line 7: | Line 7: | ||
Untar the archive: | Untar the archive: | ||
− | tar xvfz qt-x11 | + | tar xvfz qt-x11-opensource-src-4.4.3.tar.gz |
+ | |||
+ | Configure Qt: | ||
+ | |||
+ | cd qt-x11-opensource-src-4.4.3 | ||
+ | ./configure -prefix /usr/local/Trolltech/Qt-4.4.3 | ||
+ | |||
+ | Accept the license offer GPLv2 or v3. Running the configuration script takes at least a few minutes. Compile Qt: | ||
+ | |||
+ | make | ||
+ | |||
+ | Log in as 'root' to get permissions to write to /usr/local/Trolltech: | ||
+ | |||
+ | su | ||
+ | |||
+ | Once logged in as 'root': | ||
+ | |||
+ | make install | ||
+ | exit | ||
+ | |||
+ | Alternatively, you can use sudo: | ||
+ | |||
+ | sudo make install | ||
+ | |||
+ | Or, if you cannot log in as 'root', change the '-prefix' option to a path where you have write permissions. |
Revision as of 21:08, 22 October 2008
Download
Download Qt sources
Build steps
Untar the archive:
tar xvfz qt-x11-opensource-src-4.4.3.tar.gz
Configure Qt:
cd qt-x11-opensource-src-4.4.3 ./configure -prefix /usr/local/Trolltech/Qt-4.4.3
Accept the license offer GPLv2 or v3. Running the configuration script takes at least a few minutes. Compile Qt:
make
Log in as 'root' to get permissions to write to /usr/local/Trolltech:
su
Once logged in as 'root':
make install exit
Alternatively, you can use sudo:
sudo make install
Or, if you cannot log in as 'root', change the '-prefix' option to a path where you have write permissions.