Build Qt For Linux

From Qt Wiki
Revision as of 14:05, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

English Português Русский 日本語 Spanish Български

Build Qt for Linux

Qt is a very large framework, and it has many modules, configuration switches, and optional features. Faced with building it from source, it can be a challenge to figure out how to install the dependencies you need, and how to get some of the more obscure features to build!

The features that you can consider as a “standard minimum configuration” on Linux are: ZLib, JPEG, TIFF, MNG, PNG, OpenGL, GStreamer, ALSA, FreeType, FontConfig, CUPS, D-Bus, X*, OpenSSL, and SQLite.

Following is a comprehensive list of package names for the dependencies for all versions of Qt between 4.5 and trunk as of December 2010. Presently only Ubuntu package names have been included, but more distros should follow as the package names are figured out.

The “Module” column indicates the lowest-level module which uses the feature (i.e., if QtCore uses the feature, QtGui will not be listed). Multiple modules are only listed if they are not interdependent.

1 Though supported, I have not been able to figure out how to buid this option in Qt 4.5.

2 Need to pass ‑DMESA_EGL_NO_X11_HEADERS to “configure” when building Qt/Embedded. Possibly this could be done via .qmake.cache?

3 Need to pass “$(pkg‑config gstreamer‑interfaces‑0.10 gstreamer‑video‑0.10 gstreamer‑base‑0.10 ‑‑cflags‑only‑I)” to “configure”.

4 This also requires a provider of libGLES_CM.so.

5 Using libiodbc2 instead of unixodbc is supported starting in Qt 4.6.

6 Need to run “ln ‑s libfbclient.so /usr/lib/libgds.so” after installing the package.

Categories: