[2] | 1 | The linux version: |
---|
| 2 | ================== |
---|
| 3 | |
---|
| 4 | * Introduction |
---|
| 5 | |
---|
| 6 | First of all, create two directories! Qt-4.2.2 and usr in your home. |
---|
| 7 | $HOME/Qt-4.2.2 will be your QTDIR. |
---|
| 8 | |
---|
| 9 | Add the following lines to your .bashrc, and source it (or close and reopen your terminal) |
---|
| 10 | export QTDIR=~/Qt-4.2.2 |
---|
| 11 | export PATH=${PATH}:${QTDIR}/bin |
---|
| 12 | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${QTDIR}/lib:${HOME}/usr/lib |
---|
| 13 | |
---|
| 14 | The Qt compilation will spent almost two hours, so this is the first thing to begin. |
---|
| 15 | |
---|
| 16 | During the Qt compilation, you can install GLee and DevIL. |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | * The Qt library |
---|
| 20 | |
---|
| 21 | Download (the OpenSource Version) from http://www.trolltech.com/developer/downloads/qt/x11 (careful: about 36Mo) |
---|
| 22 | |
---|
| 23 | Uncompress, compile and install Qt in a local directory: |
---|
| 24 | $ tar zxvf qt-x11-opensource-src-4.2.2.tar.gz |
---|
| 25 | $ cd qt-x11-opensource-src-4.2.2 |
---|
| 26 | $ ./configure --prefix=$QTDIR # it takes 5mn. |
---|
| 27 | (type 'yes' at the license question, if you agree) |
---|
| 28 | $ make # Almost 2 hours but perhaps it is possible to remove some useless content (with the configure options). |
---|
| 29 | |
---|
| 30 | There is nothing else to do during the Qt compilation, so you can go and read some Google News. |
---|
| 31 | |
---|
| 32 | When Qt Compilation is over, then you can install it: |
---|
| 33 | $ make install |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | * ProjDesigner |
---|
| 37 | |
---|
| 38 | Uncompress, qmake and make it: |
---|
| 39 | $ tar zxvf projection-designer-linux-rc1.tar.gz |
---|
| 40 | $ qmake |
---|
| 41 | $ make |
---|
| 42 | |
---|
| 43 | And finally, to test, do not forget to declare that you want to link with glrc: |
---|
| 44 | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${PWD}/glrc |
---|