|
|
(48 intermediate revisions by 12 users not shown) |
Line 1: |
Line 1: |
− | {| style="text-align: left; background-color: AliceBlue;"
| + | == Making a Selection == |
− | |-
| |
− | !Download Source:
| |
− | | http://www.trolltech.com/download/opensource.html
| |
− | |}
| |
| | | |
− | ----
| + | From here you have two paths you can take. You can either install [[Qt4]] to /usr, not recommended because of conflicts with [[Qt3]] or you can install into /opt, recommended. |
| | | |
− | == Introduction to Qt4 ==
| + | * [[Qt4/opt]] (Recommended) |
| + | * [[Qt4/usr]] |
| | | |
− | The Qt4 package contains a C++ GUI library. This is useful for creating graphical applications or executing graphical applications that are dynamically linked to the Qt4 library. One of the major users of Qt4 is upcoming KDE-4.
| + | [[Category:X Libs]] |
− | | |
− | == Dependencies ==
| |
− | | |
− | === Required ===
| |
− | * [[X Window System]]
| |
− | * [[libjpeg]]
| |
− | * [[libmng]]
| |
− | * [[libpng]]
| |
− | | |
− | === Optional ===
| |
− | * [[Xinerama]]
| |
− | * [[Xfixes]]
| |
− | * [[Glib2]]
| |
− | * [[MySQL]]
| |
− | * [[NAS]]
| |
− | * [[CUPS]]
| |
− | * [[PostgreSQL]]
| |
− | * [[unixODBC]]
| |
− | * [[SQLite]]
| |
− | * [[Firebird]]
| |
− | | |
− | == Extra ==
| |
− | | |
− | If you would like to compile with [[MySQL]] support add the following to the configure command:
| |
− | | |
− | -plugin-sql-mysql -I/usr/include/mysql
| |
− | | |
− | If you would like to compile with [[PostgreSQL]] support add the following to the configure command:
| |
− | | |
− | -plugin-sql-mysql -I/usr/include/postgresql/server
| |
− | | |
− | | |
− | If you would like to compile with [[NAS]] support add the following to the configure command:
| |
− | | |
− | -system-nas-sound
| |
− | | |
− | If your window system is NOT XORG, then add to configure:
| |
− | | |
− | -no-xfixes
| |
− | | |
− | == Non-Multilib ==
| |
− | | |
− | Compile the package:
| |
− | | |
− | ./configure -prefix /opt/qt-4.2.2 \
| |
− | -sysconfdir /etc/qt4 \
| |
− | -qt-gif \
| |
− | -system-zlib \
| |
− | -system-libpng \
| |
− | -system-libjpeg \
| |
− | -system-libmng \
| |
− | -no-exceptions \
| |
− | -tablet &&
| |
− | make
| |
− | | |
− | Install the package
| |
− | | |
− | make install &&
| |
− | ln -v -sfn qt-4.2.2 /opt/qt &&
| |
− | cp -v -r doc/man /opt/qt/doc &&
| |
− | cp -v -r examples /opt/qt/doc
| |
− | | |
− | == Multilib ==
| |
− | | |
− | === 32Bit ===
| |
− | | |
− | TO BE DONE
| |
− | | |
− | === N32 ===
| |
− | | |
− | TO BE DONE
| |
− | | |
− | === 64Bit ===
| |
− | | |
− | If you're [[X Window System]] prefix is something other then '''/usr/X11R6''' then run the following command to change the hard coded paths in the sources:
| |
− | | |
− | for file in $(grep -lr "X11R6" *)
| |
− | do
| |
− | sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $file
| |
− | done
| |
− | | |
− | Compile the package
| |
− | | |
− | export QMAKESPEC=linux-g++-64 &&
| |
− | ./configure -prefix /opt/qt-4.2.2 \
| |
− | -libdir /opt/qt-4.2.2/lib64 \
| |
− | -plugindir /opt/qt-4.2.2/lib64/plugin \
| |
− | -L/usr/lib64 \
| |
− | -sysconfdir /etc/qt4 \
| |
− | -qt-gif \
| |
− | -system-zlib \
| |
− | -system-libpng \
| |
− | -system-libjpeg \
| |
− | -system-libmng \
| |
− | -no-exceptions \
| |
− | -tablet &&
| |
− | make
| |
− | | |
− | Install the package
| |
− | | |
− | make install &&
| |
− | mv -v /opt/qt-4.2.2/bin/qmake{,-64} &&
| |
− | mv -v /opt/qt-4.2.2/bin/uic{,-64} &&
| |
− | mv -v /opt/qt-4.2.2/bin/moc{,-64} &&
| |
− | mv -v /opt/qt-4.2.2/bin/qtconfig{,-64} &&
| |
− | ln -sfv /usr/bin/multiarch_wrapper /opt/qt-4.2.2/bin/qmake &&
| |
− | ln -sfv /usr/bin/multiarch_wrapper /opt/qt-4.2.2/bin/uic &&
| |
− | ln -sfv /usr/bin/multiarch_wrapper /opt/qt-4.2.2/bin/moc &&
| |
− | ln -sfv /usr/bin/multiarch_wrapper /opt/qt-4.2.2/bin/qtconfig &&
| |
− | cp -v -r doc/man /opt/qt-4.2.2/doc &&
| |
− | cp -v -r examples /opt/qt-4.2.2/doc &&
| |
− | ln -v -sfn qt-4.2.2 /opt/qt
| |
− |
| |
− | == Configuring ==
| |
− | | |
− | === ld.so.conf ===
| |
− | | |
− | ==== Non-Multilib ====
| |
− | | |
− | cat >> /etc/ld.so.conf << "EOF" &&
| |
− | # Begin qt addition to /etc/ld.so.conf
| |
− |
| |
− | /opt/qt/lib
| |
− |
| |
− | # End qt addition
| |
− | EOF
| |
− | ldconfig
| |
− | | |
− | ==== Multilib ====
| |
− | | |
− | cat >> /etc/ld.so.conf << "EOF" &&
| |
− | # Begin qt addition to /etc/ld.so.conf
| |
− |
| |
− | /opt/qt/lib
| |
− | /opt/qt/lib32
| |
− | /opt/qt/lib64
| |
− |
| |
− | # End qt addition
| |
− | EOF
| |
− | ldconfig
| |
− | | |
− | *[[Main Page]]
| |