%general-entities; ]> $LastChangedBy$ $Date$ Qt-&qt4-version; Qt Introduction to Qt Qt is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI) (in which cases Qt is classified as a widget toolkit), and also used for developing non-GUI programs such as command-line tools and consoles for servers. One of the major users of Qt is KDE. &lfs73_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &qt4-md5sum; Download size: &qt4-size; Estimated disk space required: &qt4-buildsize; Estimated build time: &qt4-time; Qt Dependencies Required Recommended , , , (unicode support), , , , , and Optional , (GTK+ 2 theme support), (For QtWebKit HTML5 Video), , , and User Notes: Installation of Qt If Qt is being reinstalled, run the following commands from a console or non-Qt based window manager. It overwrites Qt libraries that should not be in use during the install process. The build time and space required for the full Qt is quite long. The instructions below do not build the tutorials and examples. Removing the -nomake lines will create a complete build. Install Qt by running the following commands: ./configure -confirm-license \ -opensource \ -release \ -prefix /usr \ -bindir /usr/lib/qt4/bin \ -headerdir /usr/include/qt4 \ -datadir /usr/share/qt4 \ -plugindir /usr/lib/qt4/plugins \ -importdir /usr/lib/qt4/imports \ -translationdir /usr/share/qt4/translations \ -sysconfdir /etc/xdg \ -docdir /usr/share/doc/qt4 \ -demosdir /usr/share/doc/qt4/demos \ -examplesdir /usr/share/doc/qt4/examples \ -dbus-linked \ -openssl-linked \ -system-sqlite \ -plugin-sql-sqlite \ -no-phonon \ -no-phonon-backend \ -no-nis \ -no-openvg \ -nomake demos \ -nomake examples \ -optimized-qmake && make This package does not come with a test suite. Now, as the root user: make install && rm -rf /usr/tests && install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \ /usr/share/pixmaps/qt4logo.png && install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \ /usr/share/pixmaps/assistant-qt4.png && install -v -Dm644 tools/designer/src/designer/images/designer.png \ /usr/share/pixmaps/designer-qt4.png && install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \ /usr/share/pixmaps/linguist-qt4.png && install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \ /usr/share/pixmaps/qdbusviewer-qt4.png Remove references to the build directory from installed files by running the following commands as the root user: find /usr/lib/libQt*.prl -exec sed -i -e \ '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \; find /usr/lib/pkgconfig/Qt*.pc -exec perl -pi -e \ "s, -L$(basename $PWD)/?\S+,,g" {} \; Fix pkg-config files to point to the correct bindir by running the following command as the root user: find /usr/lib/pkgconfig/Qt*.pc -exec sed -i -e \ "s@/usr/bin/@/usr/lib/qt4/bin/@g" {} \; Symlink the Qt executables into /usr/bin by running the following commands as the root user: for file in /usr/lib/qt4/bin/* do ln -sfv ../lib/qt4/bin/$(basename $file) /usr/bin/$(basename $file) ln -sfv ../lib/qt4/bin/$(basename $file) /usr/bin/$(basename $file)-qt4 done Command Explanations -confirm-license: Accept license without prompting user during configuration. -opensource: Install the opensource version of Qt. -release: This switch disables building with debugging symbols. -nomake examples -nomake demos: These switches disable building programs that are only of interest to a Qt developer. -system-sqlite: This switch enables use the system version of SQLite. -no-nis: This switch disables support for Network Information Service (NIS) which has been deprecated in recent versions of Glibc. -no-phonon -no-phonon-backend: These switches disable building of the bundled Phonon library. Better version is provided by package. -dbus-linkend -openssl-linkend: These switches enable explicit linking of the D-Bus and OpenSSL libraries into Qt libraries instead of dlopen()-ing them. -no-openvg: This switch disables OpenVG support in Qt. -plugin-sql-<driver>: These switches enable SQL support in the Qt libraries. Available drivers are: ibase, mysql, psql, sqlite and odbc. Configuring Qt Configuration Information Create an environment variable needed by certain packages. As the root user: cat > /etc/profile.d/qt.sh << EOF # Begin /etc/profile.d/qt.sh QTDIR=/usr export QTDIR # End /etc/profile.d/qt.sh EOF Create the menu entries for installed applications. As the root user: install -dm755 /usr/share/applications cat > /usr/share/applications/qtconfig-qt4.desktop << "EOF" [Desktop Entry] Name=Qt4 Config Comment=Configure Qt4 behavior, styles, fonts Exec=qtconfig-qt4 Icon=qt4logo Terminal=false Encoding=UTF-8 Type=Application Categories=Qt;Settings; EOF cat > /usr/share/applications/assistant-qt4.desktop << "EOF" [Desktop Entry] Name=Qt4 Assistant Comment=Shows Qt4 documentation and examples Exec=assistant-qt4 Icon=assistant-qt4 Terminal=false Encoding=UTF-8 Type=Application Categories=Qt;Development;Documentation; EOF cat > /usr/share/applications/designer-qt4.desktop << "EOF" [Desktop Entry] Name=Qt4 Designer Comment=Design GUIs for Qt4 applications Exec=designer-qt4 Icon=designer-qt4 MimeType=application/x-designer; Terminal=false Encoding=UTF-8 Type=Application Categories=Qt;Development; EOF cat > /usr/share/applications/linguist-qt4.desktop << "EOF" [Desktop Entry] Name=Qt4 Linguist Comment=Add translations to Qt4 applications Exec=linguist-qt4 Icon=linguist-qt4 MimeType=text/vnd.trolltech.linguist;application/x-linguist; Terminal=false Encoding=UTF-8 Type=Application Categories=Qt;Development; EOF cat > /usr/share/applications/qdbusviewer-qt4.desktop << "EOF" [Desktop Entry] Name=Qt4 QDbusViewer GenericName=D-Bus Debugger Comment=Debug D-Bus applications Exec=qdbusviewer-qt4 Icon=qdbusviewer-qt4 Terminal=false Encoding=UTF-8 Type=Application Categories=Qt;Development;Debugger; EOF Contents Installed Programs Installed Libraries Installed Directories assistant, designer, lconvert, linguist, lrelease, lupdate, moc, pixeltool, qcollectiongenerator, qdbus, qdbuscpp2xml, qdbusviewer, qdbusxml2cpp, qdoc3, qhelpconverter, qhelpgenerator, qmake, qmlplugindump, qmlviewer, qt3to4, qtconfig, qttracereplay, rcc, uic, uic3, xmlpatterns and xmlpatternsvalidator libQt3Support.so, libQtCLucene.so, libQtCore.so, libQtDBus.so, libQtDeclarative.so, libQtDesignerComponents.so, libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so, libQtNetwork.so, libQtOpenGL.so, libQtScript.so, libQtScriptTools.so, libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so, libQtXmlPatterns.so and libQtXml.so /usr/include/qt4, /usr/lib/qt4, /usr/share/qt4 and /usr/share/doc/qt4 Short Descriptions assistant is a tool for presenting on-line documentation. assistant designer is a full-fledged GUI builder. It includes powerful features such as preview mode, automatic widget layout, support for custom widgets, and an advanced property editor. designer linguist provides support for translating applications into local languages. linguist lrelease is a simple command line tool. It reads a Qt project file and produces message files used by the application. lrelease lupdate reads a Qt project file, finds the translatable strings in the specified source, header and Qt Designer interface files, and produces or updates the translation files listed in the project file. lupdate moc generates Qt meta object support code. moc pixeltool is a desktop magnifier and as you move your mouse around the screen it will show the magnified contents in its window. pixeltool qmake uses information stored in project files to determine what should go in the makefiles it generates. qmake qt3to4 qt3to4 is a tool to help update Qt3 code to Qt4. qt3to4 qtconfig is used to customize the appearance of Qt applications. qtconfig rcc is a resource compiler used in conjunction with designer. rcc uic is a Qt user interface compiler. uic uic3 is a tool to generate Qt4 code out of user interface files generated by the Qt3 version of designer. uic3