Qt5 dependencies

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

If you want to compile Qt5 from source, please refer to this [qt.io] page.

When you download precompiled packages from Downloads [qt.io] page, installers will not install any dependencies for you. You need to install them yourself.

Linux

Ubuntu/Debian/Mint:
To get Qt 5 working here you’ll first need build-essentials, which will give you the compilers you’ll need(g++). Following that Qt 5 will need some graphics library stuff. Type the following code in the terminal to get the required dependencies respectively:

By default, Qt also expects XCB and OpenGL drivers to be installed. Usually, many modern distros already do have those packages included by default. If you don’t have other OpenGL drivers (supplied by graphics vendor, for example), you can use the mesa package:

Windows

MinGW
The MinGW package ships with a complete toolchain, including the MinGW compiler.

VS 2010
To compile code in this version you have to download Visual C++ Express 2010 [go.microsoft.com]. You won’t actually use VC++ Express 2010 with Qt, it’s just that we need the compiler that comes with it.

Mac OS X

Install Xcode and Command Line Tools (Xcode->Preferences->Downloads).