[Interest] Building Qt from Sources
André Pönitz
andre.poenitz at mathematik.tu-chemnitz.de
Tue Feb 21 20:04:39 CET 2012
On Tue, Feb 21, 2012 at 09:53:52AM +0100, Jesus Fernandez wrote:
>
> For building Qt Creator I use 2 scripts:
> bin> cat buildQt
> #!/bin/sh
> export LD_LIBRARY_PATH=/users/fernajes/paks/dbus/dbus-1.4.16/deploy/lib:/local/
> paks/gcc-4.6.0/deploy/lib:/local/paks/gmp\-4.3.2/deploy/lib:/local/paks/
> mpc-0.8.1/deploy/lib:/local/paks/mpfr-2.4.2/.libs:$LD_LIBRARY_PATH
> export PATH=/local/paks/gcc-4.6.0/deploy/bin:$PATH
> ./configure -developer-build -commercial -confirm-license -no-qt3support
> -dbus-linked -no-multimedia -no-audio-backend -no-phonon -no-openssl -no-opengl
> -nomake demos -nomake examples -no-nis -no-cups -no-gtkstyle -I /local/paks/
> dbus/dbus\-1.4.16/deploy/include/dbus-1.0
> make -j 13
Something here is complicated by your local setup.
None of the environment variables should be needed.
./configure ... [perhaps with -prefix `pwd` to avoid the 'make install']
make -j 13
> bin> cat buildQtCreator
> #!/bin/bash
> oldDir=$PWD
> #qtDir=/local/paks/qt-everywhere-opensource-src-4.8.0
> qtDir=/local/paks/qt-everywhere-opensource-src-4.7.4
> deployDirectory=$oldDir/$1_deploy
> echo "Old directory $oldDir"
> echo "Building Qt Creator please wait...\n"
> export LD_LIBRARY_PATH=/local/paks/gcc-4.6.0/deploy/lib:/local/paks/mpc-0.8.1/
> deploy/lib:/local/paks/mpfr-2.4.2/.libs:$LD_LIBRARY_PATH
> export PATH=/local/paks/gcc-4.6.0/deploy/bin:$PATH
> echo "Using: "
> $qtDir/bin/qmake --version
> cd $1
> $qtDir/bin/qmake
> make -j 13
> make INSTALL_ROOT="$deployDirectory" install -j 13
> cp $qtDir/bin/qhelpgenerator $deployDirectory/bin
>
> As you can see there is some dependencies that I need to resolve before
> building Qt (dbus; gcc; mpc; mpfr)
/path/to/your/qt-build/bin/qmake -r
make -j 13
No need to install anything here either.
Andre'
More information about the Interest
mailing list