/usr/share/qt5/doc/qtdoc/windows-requirements.html is in qt5-doc-html 5.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- windows.qdoc -->
<title>Qt for Windows - Requirements | Qt 5.5 </title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li><a href="index.html">Qt 5.5</a></li>
<li>Qt for Windows - Requirements</li>
<li id="buildversion">Qt 5.5.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#libraries">Libraries</a></li>
<li class="level2"><a href="#icu">ICU</a></li>
<li class="level1"><a href="#graphics-drivers">Graphics Drivers</a></li>
<li class="level2"><a href="#dynamically-loading-graphics-drivers">Dynamically Loading Graphics Drivers</a></li>
<li class="level1"><a href="#building-from-source">Building from Source</a></li>
<li class="level1"><a href="#sdks-and-compilers">SDKs and Compilers</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt for Windows - Requirements</h1>
<span class="subtitle"></span>
<!-- $$$windows-requirements.html-description -->
<div class="descr"> <a name="details"></a>
<p>This page describes the required libraries and environment for <a href="windows-support.html">Qt for Windows</a>.</p>
<a name="libraries"></a>
<h2 id="libraries">Libraries</h2>
<p>The following libraries may be used when running Qt 5 applications in Windows. These are not mandatory, but some components (for example, Qt WebKit) may depend on them.</p>
<ul>
<li><a href="http://site.icu-project.org/">ICU</a>: Qt 5 can make use of the ICU library for enhanced UNICODE and Globalization support (see <a href="../qtcore/qtextcodec.html">QTextCodec</a>, <a href="../qtcore/qcollator.html#setNumericMode">QCollator::setNumericMode</a>()).<p>At compile time, the <i>include</i> and <i>lib</i> folders of the ICU installation must be appended to the <code>INCLUDE</code> and <code>LIB</code> environment variables. At run-time, the ICU DLLs need to be found by copying the DLLs to the application folder or by adding the <i>bin</i> folder of the ICU installation to the <code>PATH</code> environment variable.</p>
</li>
<li><a href="http://code.google.com/p/angleproject/">ANGLE</a>: This library converts OpenGL ES 2.0 API calls to DirectX 11 or DirectX 9 calls (depending on availability), removing the need to install graphics drivers on the target machines. Building the library requires the installation of the <a href="http://msdn.microsoft.com/en-us/directx/default.aspx">Direct X SDK</a>. More information is available at <a href="http://code.google.com/p/angleproject/wiki/DevSetup">http://code.google.com/p/angleproject/wiki/DevSetup</a><p><b>Note: </b>When building for 64-bit environments, de-activate the <code>WarnAsError</code> option in every project file, otherwise, integer conversion warnings will break the build.</p></li>
</ul>
<p>Support for Secure Sockets Layer (SSL) communication is provided by the <a href="http://www.openssl.org/">OpenSSL Toolkit</a>, which must be obtained separately. See <a href="../qtnetwork/ssl.html">Secure Sockets Layer (SSL) Classes</a> for instructions on building Qt with SSL support.</p>
<a name="icu"></a>
<h3 >ICU</h3>
<p>Qt WebKit, and applications using it, always need the ICU libraries. Qt Core can be configured to either rely on ICU functionality, or fall back to Windows API and internal algorithms with somewhat reduced functionality.</p>
<p>From Qt 5.3 and onwards, configure does not link Qt Core against ICU libraries anymore by default. This reduces the size of a self-contained application package considerably, as long as Qt WebKit is not used.</p>
<p>Letting Qt Core utilize the ICU libraries however has following advantages:</p>
<ul>
<li>Behavior matches other platforms more closely.</li>
<li>Extended set of text codecs (see <a href="../qtcore/qtextcodec.html">QTextCodec</a>).</li>
<li><a href="../qtcore/qlocale.html#toUpper">QLocale::toUpper</a>(), <a href="../qtcore/qlocale.html#toLower">QLocale::toLower</a>() always use case conversion rules specific to the locale.</li>
<li><a href="../qtcore/qcollator.html#setNumericMode">QCollator::setNumericMode</a>() does work consistently on all Windows versions.</li>
</ul>
<p>To explicitly enable the use of ICU in Qt Core, pass <code>-icu</code> to <code>configure</code>:</p>
<pre class="cpp">configure <span class="operator">-</span>icu</pre>
<a name="graphics-drivers"></a>
<h2 id="graphics-drivers">Graphics Drivers</h2>
<p>For <a href="../qtquick/qtquick-index.html">Qt Quick</a> 2 to work, a graphics driver that provides OpenGL 2.1 or higher is required. The default driver from Windows is OpenGL 1.1. Qt includes a version of the <a href="http://code.google.com/p/angleproject/">ANGLE</a> project which is included from the Windows Qt installers. ANGLE implements the OpenGL ES 2.0 API on top of DirectX 11 or DirectX 9. ANGLE requires that the DirectX SDK is installed when building Qt.</p>
<p>ANGLE chooses the render backend depending on availability. DirectX 11 is usually preferable. However, some graphics cards may not fully support it. For these cases, the environment variable <code>QT_ANGLE_PLATFORM</code> (introduced in Qt 5.4) can be used to control the render backend. Possible values are <code>d3d11</code>, <code>d3d9</code> and <code>warp</code>.</p>
<p>To use a custom version of ANGLE, set the <code>ANGLE_DIR</code> environment variable to point to the ANGLE source tree before building Qt.</p>
<p>If you installed additional OpenGL drivers from your hardware vendor, then you may want to consider using this version of OpenGL instead of ANGLE. To use OpenGL, pass the command line options <code>-opengl desktop</code> to the configure script.</p>
<pre class="cpp">configure <span class="operator">-</span>opengl desktop</pre>
<p>To use an OpenGL ES 2.0 emulator instead of ANGLE, use the configure options: <code>-opengl es2 -no-angle</code>.</p>
<pre class="cpp">configure <span class="operator">-</span>opengl es2 <span class="operator">-</span>no<span class="operator">-</span>angle</pre>
<a name="dynamically-loading-graphics-drivers"></a>
<h3 >Dynamically Loading Graphics Drivers</h3>
<p>In addition to the build time configuration, Qt supports choosing and loading the OpenGL implementation at runtime. To use this mode, pass <code>-opengl dynamic</code> to the configure script.</p>
<pre class="cpp">configure <span class="operator">-</span>opengl dynamic</pre>
<p><b>Note: </b>As of Qt 5.5 this is the configuration used by the official, pre-built binary packages of Qt. It is strongly recommended to use it also in custom builds, especially for Qt binaries that are deployed alongside applications.</p><p><b>Note: </b>Combining <code>-opengl dynamic</code> with <code>-static</code> is also possible, but be aware that ANGLE will not be statically linked into the applications in this case, it will still be built as a shared library.</p><p>This configuration is the most flexible because no dependencies or assumptions are hardcoded about the OpenGL implementation during build time. It allows robust application deployment. When a given environment fails to provide a proper OpenGL 2.0 implementation, it will fall back automatically to ANGLE. This fallback will be completely transparent to the application, and will allow Qt Quick or other OpenGL code to function by translating to Direct3D. Such a fallback could, for example, take place on a Windows 7 PC with no additional graphics drivers installed. On other machines, where there is sufficient OpenGL support, the normal desktop OpenGL drivers will be used. Additionally, pure software-based OpenGL implementations may be available as additional fallbacks in the future, allowing running Qt Quick applications without a GPU.</p>
<p>When configured with <code>-opengl dynamic</code>, neither Qt nor the applications built using <code>qmake</code> will link to the opengl32 (standard desktop OpenGL) or libGLESv2 (ANGLE) libraries. Instead, the appropriate library is chosen at runtime. By default, Qt will determine whether the system's opengl32.dll provides OpenGL 2 functions. If these are present, opengl32.dll is used, otherwise the ANGLE libraries will be used. In case the ANGLE libraries are missing or initialization fails for some reason, an additional fallback is attempted by trying to load <code>opengl32sw.dll</code>. See below for details.</p>
<p>The loading mechanism can be configured through the <code>QT_OPENGL</code> environment variable and the following application attributes:</p>
<ul>
<li><code>Qt::AA_UseDesktopOpenGL</code> Equivalent to setting <code>QT_OPENGL</code> to <code>desktop</code>.</li>
<li><code>Qt::AA_UseOpenGLES</code> Equivalent to setting <code>QT_OPENGL</code> to <code>angle</code>.</li>
<li><code>Qt::AA_UseSoftwareOpenGL</code> Equivalent to setting <code>QT_OPENGL</code> to <code>software</code>.</li>
</ul>
<p>When a certain configuration is requested explicitly, no checks are done at application startup, that is, the system-provided opengl32.dll will not be examined.</p>
<p>The dynamic loading has a significant impact on applications that contain native OpenGL calls: they may fail to link since <code>qmake</code> no longer automatically adds opengl32.lib or libglesv2.lib. Instead, applications are expected to use the OpenGL functions via the <a href="../qtgui/qopenglfunctions.html">QOpenGLFunctions</a> class. Thus the direct dependency on the OpenGL library is removed and all calls will be routed during runtime to the implementation chosen by Qt.</p>
<p>Applications that require a certain OpenGL implementation (for example, desktop OpenGL due to relying on features provided by OpenGL 3.0 or higher) should set the application attributes <code>Qt::AA_UseOpenGLES</code> or <code>Qt::AA_UseDesktopOpenGL</code> before instantiating <a href="../qtgui/qguiapplication.html">QGuiApplication</a> or <a href="../qtwidgets/qapplication.html">QApplication</a>. When these attributes are set, no other OpenGL implementations are considered. Additionally, if they wish to, such applications are free to make direct OpenGL function calls by adding opengl32.lib to their .pro project files: <i>LIBS += opengl32.lib</i> (Visual Studio) or <i>LIBS += -lopengl32</i> (<a href="http://www.mingw.org/">MinGW</a>). The result is, from the application's perspective, equivalent to the <code>-opengl desktop</code> build configuration of Qt.</p>
<p><code>Qt::AA_UseSoftwareOpenGL</code> is special in the sense that it will try to load an OpenGL implementation with a non-standard name. The default name is <code>opengl32sw.dll</code>. This allows shipping a software-only OpenGL implementation, for example a build of <a href="http://www.mesa3d.org/llvmpipe.html">Mesa with llvmpipe</a>, under this name. If necessary, the filename can be overridden by setting the <code>QT_OPENGL_DLL</code> environment variable.</p>
<p>It is possible to provide a JSON-format configuration file specifying which OpenGL implementation to use depending on the graphics card and driver version. The location is given by the environment variable <code>QT_OPENGL_BUGLIST</code>. Relative paths are resolved using <code>QLibraryInfo::SettingsPath</code> or <code>QStandardPaths::ConfigLocation</code>. The file utilizes the format of the driver bug list used in <a href="http://www.chromium.org/Home">The Chromium Projects</a>. It consists of a list of entries each of which specifies a set of conditions and a list of feature keywords. Typically, device id and vendor id are used to match a specific graphics card. They can be found in the output of the <code>qtdiag</code> or <code>dxdiag</code> tool.</p>
<p>The following feature keywords are relevant for choosing the OpenGL implementation:</p>
<ul>
<li><code>disable_desktopgl</code> - Disables Desktop OpenGL</li>
<li><code>disable_angle</code> - Disables ANGLE</li>
<li><code>disable_d3d11</code> - Disables the D3D11 rasterizer in ANGLE</li>
<li><code>disable_d3d9</code> - Disables the D3D9 rasterizer in ANGLE</li>
</ul>
<p>A sample file looks like:</p>
<pre class="cpp">{
"entries": [
{
"id": 1,
"description": "Disable D3D11 on older nVidia drivers",
"os": {
"type": "win"
},
"vendor_id": "0x10de",
"device_id": ["0x0DE9"],
"driver_version": {
"op": "<=",
"value": "8.17.12.6973"
},
"features": [
"disable_d3d11"
]
},
...</pre>
<p>When <code>QT_OPENGL_BUGLIST</code> is not specified, a built-in list will be used. This typically includes some older, less-capable graphics cards with <code>disable_desktopgl</code> set, in order to prevent Qt from using their unstable desktop OpenGL implementations and instead fall back to ANGLE right away.</p>
<a name="building-from-source"></a>
<h2 id="building-from-source">Building from Source</h2>
<p>These tools are not needed to run Qt 5 applications, but they are required for building Qt 5 from source.</p>
<ul>
<li><a href="http://www.activestate.com/Products/activeperl/index.mhtml">ActivePerl</a> - Install a recent version of <a href="http://www.activestate.com/Products/activeperl/index.mhtml">ActivePerl</a> (<a href="http://www.activestate.com/activeperl">download page</a>) and add the installation location to your <code>PATH</code>.</li>
<li>Python - Install Python from the <a href="http://www.python.org/download/">here</a> and add the installation location to your PATH in order to be able to build Qt WebKit.</li>
<li>Install <a href="http://www.ruby-lang.org">Ruby</a> from <a href="http://rubyinstaller.org/">here</a> and add the installation location to your PATH in order to be able to build Qt WebKit.</li>
</ul>
<p><b>Note: </b>Please make sure that the <code>perl</code> executable from <a href="http://www.activestate.com/Products/activeperl/index.mhtml">ActivePerl</a> is found in the path before the perl executable provided by msysgit, since the latter is outdated.</p><p>Qt WebKit and ANGLE depend on these extra tools from the <a href="http://gnuwin32.sourceforge.net/packages.html">GnuWin32</a> and <a href="http://sourceforge.net/projects/winflexbison/">Win flex-bison</a> projects, which are provided for your convenience in the <i>gnuwin32/bin</i> folder:</p>
<ul>
<li><a href="http://gnuwin32.sourceforge.net/downlinks/gperf.php">GPerf</a></li>
<li><a href="http://sourceforge.net/projects/winflexbison/files/win_flex_bison-2.5.5.zip/download">Bison, Flex</a></li>
</ul>
<p>The <i>gnuwin32/bin</i> folder should be added to the <code>PATH</code> variable.</p>
<p><b>Note: </b>If you are building qtbase outside of qt5.git, you will need to download <i>win_bison</i> and <i>win_flex</i> from the link above and rename them to <i>bison</i> and <i>flex</i>.</p><p>For instructions for building the Qt 5 source, read the <a href="windows-building.html">Qt for Windows - Building from Source</a> page.</p>
<a name="sdks-and-compilers"></a>
<h2 id="sdks-and-compilers">SDKs and Compilers</h2>
<p>A Windows SDK is required to develop Qt applications on Windows.</p>
<ul>
<li>Windows SDK 8 (with Visual Studio 2012 Express). As of Windows 8, the SDK no longer ships with a complete command-line build environment. You must install a compiler and build environment separately. If you require a complete development environment that includes compilers and a build environment, you can download Visual Studio 2012 Express, which includes the appropriate components of the Windows SDK. (<a href="http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx">Download page</a>)</li>
<li>Windows SDK 7.1. Note that, as of 16.3.2012, if you use this SDK with Visual Studio 2010, installing the SDK requires installing the following packages in this order (see <i>readme.html</i> provided with the service pack):<ol class="1">
<li>Install Visual Studio 2010</li>
<li>Install Windows SDK 7.1</li>
<li>Install Visual Studio 2010 SP1</li>
<li>Install Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1</li>
</ol>
</li>
<li>Windows SDK 7.</li>
<li>A <a href="http://www.mingw.org/">MinGW</a> toolchain with g++ version 4.7 or higher. Qt 5 is tested regularly with a <a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-posix/dwarf/i686-4.9.1-release-posix-dwarf-rt_v3-rev2.7z/download">32 bit gcc 4.9.1 toolchain</a> from the <a href="http://mingw-w64.sourceforge.net/">MinGW-w64</a> project.</li>
</ul>
<p>For the most up to date information about the <a href="../qtwebkit/qtwebkit-index.html">Qt WebKit</a> dependencies, please refer to the <a href="http://trac.webkit.org/wiki/BuildingQtOnWindows">Qt WebKit Wiki for Windows</a>.</p>
</div>
<!-- @@@windows-requirements.html -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2015 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|