This article discusses the basic installation from Ubuntu, that is, the installation package required to develop the Qt application after the default installation from the CD installation disk. In this article, the Environment ubuntu9.04-topics, wubi.exe installation below is the need to do a few steps 1) after installing the sudoapt-getinstalllibqt4-dev package, you can write Qt program. The libqt4-dev will automatically install some of the following qt4 packages, such as: libqt4-assista
This article discusses the basic installation from Ubuntu, that is, the installation package required to develop the Qt application after the default installation from the CD installation disk. In this tutorial, Ubuntu 9.04-desktop and wubi.exe are installed.
The following are the steps that need to be done:
1) sudo apt-get install libqt4-dev
After installing this package, you can write the Qt program. The libqt4-dev will automatically install some of the following qt4 packages, for example:
Libqt4-assistant libqt4-dbus libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-test libqt4-webkit libqtcore4 libqtgui4
2) sudo apt-get install g ++ automake
These two packages do not belong to the qt package, but the c ++ compiler for compiling Qt needs to be installed in the g ++ package. Qt has its own compilation system. automake is not necessary, but sometimes it needs to compile some third-party libraries. Therefore, it is generally recommended to install it.
3) sudo apt-get install qt4-dev-tools qt4-designer qt4-doc
The qt4-dev-tools contains some auxiliary tools for development, such as the help system Tool assitant, the translation aid Tool linguist, d-bus viewer, Pixel Tool and so on.
The qt4-designer installs the GUI Design Tool designer
Help file for qt4-doc qt4
-------------
The following are some optional installation packages.
4) sudo apt-get install libqt4-opengl-dev
Qt4 OpenGL-related development library files
5) sudo apt-get install libqt4-sql-mysql libqt4-sql-odbc libqt4-sql-psql libqt4-sql-sqlite libqt4-sql-sqlite2
Some plug-in drivers required by the development database, you can select the package you need to install
5.1) sudo install libiodbc2-dev libmysqlclient15-dev libsqlite3-dev
Corresponding to step 5) The development library files required by the database
-------------
Appendix
A1) sudo aptitude search qt4
This command allows you to find other content related to qt4, such as the symbol table file used for debugging, pyqt, perlqt, etc.