[Interest] Building Qt from Sources

Mark Constable markc at renta.net
Tue Feb 21 07:19:48 CET 2012


On 02/21/12 15:38, Szalata, Zenon M. wrote:
> I have unpacked qt-everywhere-opensource-src-4.8.0 into the first directory.  There I executed configure -prefix /opt/qt/qt-4.8.0, followed by make and make install and this worked fine.
> Then I modified PATH to include /opt/qt/qt-4.8.0/bin.
> I also had to define QMAKESPEC=/opt/qt/qt-4.8.0/mkspecs/default
> Finally:
> Unpacked qt-creator-2.4.1-src.tar.gz in the third directory and
> cd /opt/qt/qtc-2.4.1
> qmake /opt/qt/qt-creator-2.4.1-src/qtcreator.pro
> and this last command fails and I suspect that it needs the SDK installation of qt 4.7.4 or higher.

Try something like this...

export QTDIR=/opt/qt/qt-4.8.0
export PATH=$QTDIR/bin/:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib/:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig/:$PKG_CONFIG_PATH
export QT_PLUGIN_PATH=$QTDIR/lib/plugins/

QTDIR may have to be QT4DIR



More information about the Interest mailing list