|
|
|
- install development tools with the Cygwin Installer, at least
- cvs
- make
- >=gcc 3.3.1
- recent binutils
- flex
- byacc
- XFree (at least base and prog)
- cygipc
- gcc-2 (for the gcc2 version)
- ld patch for gcc3.3
- The qt source requires yacc, which could be emulates through byacc. (It was reported that using bison doesn't work)
Create a yacc wrapper by entering the following lines into a bash shell:
cat >/usr/local/bin/yacc
byacc $*
Then enter RETURN and CTRL-D to close the cat command.
- download last qt 3.2.3 sources
- unpack the source archive
cd <any-src-dir>
tar -xjf qt-3.2.3-2-src.tar.bz2
- create some missing links which are not set by cygwin
ln -s /usr/lib/libcygipc.a /usr/lib/libipc.a
- prepare configuring (this creates the links in the include directory)
cd <qt-src-dir>
make -f Makefile.cvs
- configure qt with threading support, which is required for kde 3.
echo yes | ./configure -platform cygwin-g++ -fast -plugin-imgfmt-mng -thread -no-stl \
-qt-zlib -qt-gif -qt-libpng -qt-libjpeg -qt-libmng -no-g++-exceptions -no-xft -no-xkb \
-disable-opengl -prefix /opt/qt/3.2
- make
make
- Only for qt releases older 3.2.3-2: Due to an internal qmake problem, which wasn't fixed in the recent release, the linking process may fail with an error like "cannot find -lqui" .
You can fix this problem with the following hack:
cd <qt-src-dir>
cd lib
ln -fs ../bin/cygqui-1.dll libqui.dll
cd ..
make
- After successfull compiling, create symbolic link from the <qt-src-dir> to /usr/lib/qt3
make -p /opt/qt/
ln -s <qt-src-dir> /opt/qt/3.2
- In the last step you should set some environment variables for accessing the qt dll's, qt applications
and the man pages regardless of your current directory location.
To ensure a permanent activation of this settings you can add the settings to /etc/profile or,
which is the better way, create a script in the /etc/profile.d dir. This script will be called every
time a new bash shell is opened.
Create this script by copying the following lines into a bash shell and enter RETURN and CTRL-D to close the cat command.
cat >/etc/profile.d/qt3.2.sh
export QTDIR=/opt/qt/3.2
export PATH=$QTDIR/bin:$PATH
export MANPATH=$MANPATH:$QTDIR/doc/man
At last you should reread the environment to activate this settings for your current bash shell with
. /etc/profile
After this step you are ready to use your qt release. See the Using QT3 page for further informations.
a little note: If you are using qmake for a project outsite the qt installation path you have to use qmake
with the -cache option to find the building environment.
qmake -cache /opt/qt/3.2/.qmake.cache
|