Qt5 dependencies: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
If you want to compile Qt5 from source, please refer to [[Building Qt 5 from Git|this]] ''[qt.io]'' page.
If you want to compile Qt5 from source, please refer to "this":http://wiki.qt.io/Building_Qt_5_from_Git page.


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


==Linux==
== Linux ==


'''Ubuntu/Debian/Mint:'''<br /> 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:<br />
'''Ubuntu/Debian/Mint:'''<br />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:<br /><code><br />sudo apt-get install build-essential<br /></code>
<br />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:<br /><code><br />sudo apt-get install libx11-xcb-dev libglu1-mesa-dev<br /></code>
<br />h2. Windows
<br />'''MinGW'''<br />The MinGW package ships with a complete toolchain, including the MinGW compiler.
<br />'''VS 2010'''<br />To compile code in this version you have to &quot;download Visual C''+ Express 2010&amp;quot;:http://go.microsoft.com/?linkid=9709949. You won't actually use VC++ Express 2010 with Qt, it's just that we need the compiler that comes with it.


By default, Qt also expects <span class="caps">XCB</span> 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:<br />
== Mac OS X ==
 
==Windows==
 
'''MinGW'''<br /> The MinGW package ships with a complete toolchain, including the MinGW compiler.
 
'''VS 2010'''<br /> To compile code in this version you have to [http://go.microsoft.com/?linkid=9709949 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-&gt;Preferences-&gt;Downloads).

Revision as of 09:34, 24 February 2015

If you want to compile Qt5 from source, please refer to "this&quot;:http://wiki.qt.io/Building_Qt_5_from_Git page.

When you download precompiled packages from "Downloads&quot;:http://qt.io/download 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:

<br />sudo apt-get install build-essential<br />


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:

<br />sudo apt-get install libx11-xcb-dev libglu1-mesa-dev<br />


h2. 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&quot;:http://go.microsoft.com/?linkid=9709949. 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