Difference between revisions of "Qt3"
From CBLFS
Jump to navigationJump to searchLine 24: | Line 24: | ||
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH && | export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH && | ||
export PATH=$PWD/bin:$PATH && | export PATH=$PWD/bin:$PATH && | ||
− | |||
− | |||
− | |||
− | |||
./configure -prefix /opt/qt-3.3.6 \ | ./configure -prefix /opt/qt-3.3.6 \ | ||
-sysconfdir /etc/qt \ | -sysconfdir /etc/qt \ | ||
Line 63: | Line 59: | ||
export PATH=$PWD/bin:$PATH && | export PATH=$PWD/bin:$PATH && | ||
export QMAKESPEC=linux-g++-32 && | export QMAKESPEC=linux-g++-32 && | ||
− | |||
− | |||
− | |||
− | |||
./configure -prefix /opt/qt-3.3.6 \ | ./configure -prefix /opt/qt-3.3.6 \ | ||
-sysconfdir /etc/qt \ | -sysconfdir /etc/qt \ | ||
− | |||
-qt-gif \ | -qt-gif \ | ||
-system-zlib \ | -system-zlib \ | ||
Line 105: | Line 96: | ||
export PATH=$PWD/bin:$PATH && | export PATH=$PWD/bin:$PATH && | ||
export QMAKESPEC=linux-g++-64 && | export QMAKESPEC=linux-g++-64 && | ||
− | |||
− | |||
− | |||
− | |||
./configure -prefix /opt/qt-3.3.6 \ | ./configure -prefix /opt/qt-3.3.6 \ | ||
-sysconfdir /etc/qt \ | -sysconfdir /etc/qt \ | ||
-libdir /opt/qt-3.3.6/lib64 \ | -libdir /opt/qt-3.3.6/lib64 \ | ||
− | |||
-qt-gif \ | -qt-gif \ | ||
-system-zlib \ | -system-zlib \ | ||
Line 134: | Line 120: | ||
cp -v -r examples /opt/qt/doc | cp -v -r examples /opt/qt/doc | ||
ln -v -sfn qt-3.3.6 /opt/qt | ln -v -sfn qt-3.3.6 /opt/qt | ||
+ | |||
+ | == Extra == | ||
+ | If compiling with MySQL add: | ||
+ | sed -i "s@mysql.h@mysql/mysql.h@g" src/sql/drivers/mysql/qsql_mysql.h | ||
+ | |||
+ | -qt-sql-mysql \ | ||
== Configuring == | == Configuring == |
Revision as of 14:22, 4 September 2006
Download Source: | http://ftp.silug.org/mirrors/ftp.trolltech.com/qt/source/qt-x11-free-3.3.6.tar.bz2 |
---|
Contents
Dependencies
Required
Optional
Non-Multilib
Compile the package:
bash export QTDIR=$PWD && export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH && export PATH=$PWD/bin:$PATH && ./configure -prefix /opt/qt-3.3.6 \ -sysconfdir /etc/qt \ -qt-gif \ -system-zlib \ -system-libpng \ -system-libjpeg \ -system-libmng \ -plugin-imgfmt-png \ -plugin-imgfmt-jpeg \ -plugin-imgfmt-mng \ -no-exceptions \ -thread \ -tablet && make && exit
Install the package
make install && ln -v -sfn qt-3.3.6 /opt/qt && ln -v -s libqt-mt.so /opt/qt/lib/libqt.so && cp -v -r doc/man /opt/qt/doc && cp -v -r examples /opt/qt/doc
Multilib
32Bit
Compile the package:
bash export QTDIR=$PWD && export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH && export PATH=$PWD/bin:$PATH && export QMAKESPEC=linux-g++-32 && ./configure -prefix /opt/qt-3.3.6 \ -sysconfdir /etc/qt \ -qt-gif \ -system-zlib \ -system-libpng \ -system-libjpeg \ -system-libmng \ -plugin-imgfmt-png \ -plugin-imgfmt-jpeg \ -plugin-imgfmt-mng \ -no-exceptions \ -thread \ -tablet && make && exit
Install the package
make install && ln -v -s libqt-mt.so /opt/qt/lib/libqt.so && rm -rf qt-x11-free-3.3.6
N32
Compile the package:
TO BE DONE
64Bit
Compile the package
bash export QTDIR=$PWD && export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH && export PATH=$PWD/bin:$PATH && export QMAKESPEC=linux-g++-64 && ./configure -prefix /opt/qt-3.3.6 \ -sysconfdir /etc/qt \ -libdir /opt/qt-3.3.6/lib64 \ -qt-gif \ -system-zlib \ -system-libpng \ -system-libjpeg \ -system-libmng \ -plugin-imgfmt-png \ -plugin-imgfmt-jpeg \ -plugin-imgfmt-mng \ -no-exceptions \ -thread \ -tablet && make && exit
Install the package
make install ln -v -s libqt-mt.so /opt/qt/lib64/libqt.so cp -v -r doc/man /opt/qt/doc && cp -v -r examples /opt/qt/doc ln -v -sfn qt-3.3.6 /opt/qt
Extra
If compiling with MySQL add: sed -i "s@mysql.h@mysql/mysql.h@g" src/sql/drivers/mysql/qsql_mysql.h
-qt-sql-mysql \
Configuring
export QTDIR=/opt/qt
cat >> /etc/ld.so.conf << "EOF" && # Begin qt addition to /etc/ld.so.conf
/opt/qt/lib /opt/qt/lib64
# End qt addition EOF
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig:/opt/qt/lib64/pkgconfig