Advertisement
Guest User

Qt Windows configure options

a guest
Sep 17th, 2014
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.53 KB | None | 0 0
  1. Usage: configure [options]
  2.  
  3. Installation options:
  4.  
  5. These are optional, but you may specify install directories.
  6.  
  7. -prefix <dir> ...... This will install everything relative to <dir>
  8. (default $QT_INSTALL_PREFIX)
  9.  
  10. -extprefix <dir> ... When -sysroot is used, install everything to <dir>,
  11. rather than into SYSROOT/PREFIX.
  12.  
  13. -hostprefix [dir] .. Tools and libraries needed when developing
  14. applications are installed in [dir]. If [dir] is not
  15. given, the current build directory will be used.
  16. (default EXTPREFIX)
  17.  
  18. You may use these to separate different parts of the install:
  19.  
  20. -bindir <dir> ...... User executables will be installed to <dir>
  21. (default PREFIX/bin)
  22. -libdir <dir> ...... Libraries will be installed to <dir>
  23. (default PREFIX/lib)
  24. -headerdir <dir> ... Headers will be installed to <dir>
  25. (default PREFIX/include)
  26. -archdatadir <dir> . Architecture-dependent data used by Qt will be
  27. installed to <dir>
  28. (default PREFIX)
  29. -libexecdir <dir> .. Program executables will be installed to <dir>
  30. (default ARCHDATADIR/bin)
  31. -plugindir <dir> ... Plugins will be installed to <dir>
  32. (default ARCHDATADIR/plugins)
  33. -importdir <dir> ... Imports for QML1 will be installed to <dir>
  34. (default ARCHDATADIR/imports)
  35. -qmldir <dir> ...... Imports for QML2 will be installed to <dir>
  36. (default ARCHDATADIR/qml)
  37. -datadir <dir> ..... Data used by Qt programs will be installed to <dir>
  38. (default PREFIX)
  39. -docdir <dir> ...... Documentation will be installed to <dir>
  40. (default DATADIR/doc)
  41. -translationdir <dir> Translations of Qt programs will be installed to
  42. <dir>
  43. (default DATADIR/translations)
  44. -examplesdir <dir> . Examples will be installed to <dir>
  45. (default PREFIX/examples)
  46. -testsdir <dir> .... Tests will be installed to <dir>
  47. (default PREFIX/tests)
  48.  
  49. -hostbindir <dir> .. Host executables will be installed to <dir>
  50. (default HOSTPREFIX/bin)
  51. -hostlibdir <dir> .. Host libraries will be installed to <dir>
  52. (default HOSTPREFIX/lib)
  53. -hostdatadir <dir> . Data used by qmake will be installed to <dir>
  54. (default HOSTPREFIX)
  55.  
  56. Configure options:
  57.  
  58. The defaults (*) are usually acceptable. A plus (+) denotes a default value
  59. that needs to be evaluated. If the evaluation succeeds, the feature is
  60. included. Here is a short explanation of each option:
  61.  
  62. -release ........... Compile and link Qt with debugging turned off.
  63. * -debug ............. Compile and link Qt with debugging turned on.
  64. + -debug-and-release . Compile and link two Qt libraries, with and without
  65. debugging turned on.
  66.  
  67. -force-debug-info .. Create symbol files for release builds.
  68.  
  69. -developer-build ... Compile and link Qt with Qt developer options
  70. (including auto-tests exporting)
  71.  
  72. -opensource ........ Compile and link the Open-Source Edition of Qt.
  73. -commercial ........ Compile and link the Commercial Edition of Qt.
  74.  
  75. -c++11 ............. Compile Qt with C++11 support enabled.
  76. -no-c++11 .......... Do not compile Qt with C++11 support enabled.
  77.  
  78. * -shared ............ Create and use shared Qt libraries.
  79. -static ............ Create and use static Qt libraries.
  80.  
  81. -ltcg .............. Use Link Time Code Generation. (Release builds only)
  82. * -no-ltcg ........... Do not use Link Time Code Generation.
  83.  
  84. -make <part> ....... Add part to the list of parts to be built at make time
  85. libs
  86. tools
  87. examples
  88. -nomake <part> ..... Exclude part from the list of parts to be built.
  89.  
  90. -skip <module> ..... Exclude an entire module from the build.
  91.  
  92. -no-compile-examples Install only the sources of examples.
  93.  
  94. -no-widgets ........ Disable Qt Widgets module.
  95.  
  96. -no-gui ............ Disable Qt GUI module.
  97.  
  98. -no-accessibility .. Disable accessibility support.
  99.  
  100. ................... Disabling accessibility is not recommended, as it will
  101. break QStyle
  102. and may break other internal parts of Qt.
  103. With this switch you create a source incompatible
  104. version of Qt,
  105. which is unsupported.
  106.  
  107. * -accessibility ..... Enable accessibility support.
  108.  
  109. -no-sql-<driver> ... Disable SQL <driver> entirely, by default none are
  110. turned on.
  111. -qt-sql-<driver> ... Enable a SQL <driver> in the Qt Library.
  112. -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to at run
  113. time.
  114. Available values for <driver>:
  115. mysql
  116. psql
  117. oci
  118. odbc
  119. tds
  120. db2
  121. + sqlite
  122. sqlite2
  123. ibase
  124. (drivers marked with a '+' have been detected as
  125. available on this system)
  126.  
  127. -system-sqlite ..... Use sqlite from the operating system.
  128.  
  129. -no-opengl ......... Do not support OpenGL.
  130. -opengl <api> ...... Enable OpenGL support with specified API version.
  131. Available values for <api>:
  132. desktop - Enable support for Desktop OpenGL
  133. dynamic - Enable support for dynamically loaded
  134. OpenGL (either desktop or ES)
  135. * es2 - Enable support for OpenGL ES 2.0
  136.  
  137. * -no-openvg ......... Disables OpenVG functionality.
  138. -openvg ............ Enables OpenVG functionality.
  139.  
  140. -force-asserts ..... Activate asserts in release mode.
  141.  
  142. -platform <spec> ... The operating system and compiler you are building on.
  143. (default %QMAKESPEC%)
  144.  
  145. -xplatform <spec> .. The operating system and compiler you are cross
  146. compiling to.
  147.  
  148. See the README file for a list of supported operating
  149. systems and compilers.
  150.  
  151. -target ............ Set target OS version. Currently the only valid value
  152. is 'xp' for targeting Windows XP.
  153. MSVC >= 2012 targets Windows Vista by default.
  154.  
  155. -sysroot <dir> ..... Sets <dir> as the target compiler's and qmake's
  156. sysroot and also sets pkg-config paths.
  157. -no-gcc-sysroot .... When using -sysroot, it disables the passing of
  158. --sysroot to the compiler.
  159.  
  160. -qconfig <local> ... Use src/corelib/global/qconfig-<local>.h rather than
  161. the
  162. default 'full'.
  163.  
  164. * -no-nis ............ Do not compile NIS support.
  165. -nis ............... Compile NIS support.
  166.  
  167. + -neon .............. Enable the use of NEON instructions.
  168. -no-neon ........... Do not enable the use of NEON instructions.
  169.  
  170. -no-iconv .......... Do not enable support for iconv(3).
  171. + -iconv ............. Enable support for iconv(3).
  172. + -sun-iconv ......... Enable support for iconv(3) using sun-iconv.
  173. + -gnu-iconv ......... Enable support for iconv(3) using gnu-libiconv.
  174.  
  175. -no-evdev .......... Do not enable support for evdev.
  176. + -evdev ............. Enable support for evdev.
  177. -no-mtdev .......... Do not enable support for mtdev.
  178. + -mtdev ............. Enable support for mtdev.
  179. + -inotify ........... Explicitly enable Qt inotify(7) support.
  180. -no-inotify ........ Explicitly disable Qt inotify(7) support.
  181.  
  182. + -eventfd ........... Enable eventfd(7) support in the UNIX event loop.
  183. -no-eventfd ........ Disable eventfd(7) support in the UNIX event loop.
  184.  
  185. * -largefile ......... Enables Qt to access files larger than 4 GB.
  186.  
  187. -fontconfig ........ Build with FontConfig support.
  188. * -no-fontconfig ..... Do not build with FontConfig support.
  189.  
  190. -posix-ipc ......... Enable POSIX IPC.
  191.  
  192. -glib .............. Compile Glib support.
  193.  
  194. -sysconfdir <dir> .. Settings used by Qt programs will be looked for in
  195. <dir>.
  196.  
  197. -system-proxies .... Use system network proxies by default.
  198. * -no-system-proxies . Do not use system network proxies by default.
  199.  
  200. + -warnings-are-errors Make warnings be treated as errors.
  201. -no-warnings-are-errors Make warnings be treated normally.
  202. -qtnamespace <name> Wraps all Qt library code in 'namespace name {...}'.
  203. -qtlibinfix <infix> Renames all Qt* libs to Qt*<infix>.
  204.  
  205. -D <define> ........ Add an explicit define to the preprocessor.
  206. -I <includepath> ... Add an explicit include path.
  207. -L <librarypath> ... Add an explicit library path.
  208. -l <libraryname> ... Add an explicit library name, residing in a
  209. librarypath.
  210.  
  211. -help, -h, -? ...... Display this information.
  212.  
  213. Third Party Libraries:
  214.  
  215. -qt-zlib ........... Use the zlib bundled with Qt.
  216. + -system-zlib ....... Use zlib from the operating system.
  217. See http://www.gzip.org/zlib
  218.  
  219. -qt-pcre ........... Use the PCRE library bundled with Qt.
  220. + -system-pcre ....... Use the PCRE library from the operating system.
  221. See http://pcre.org/
  222.  
  223. + -icu ............... Use the ICU library.
  224. -no-icu ............ Do not use the ICU library.
  225. See http://site.icu-project.org/
  226.  
  227. -no-gif ............ Do not compile GIF reading support.
  228.  
  229. -no-libpng ......... Do not compile PNG support.
  230. -qt-libpng ......... Use the libpng bundled with Qt.
  231. + -system-libpng ..... Use libpng from the operating system.
  232. See http://www.libpng.org/pub/png
  233.  
  234. -no-libjpeg ........ Do not compile JPEG support.
  235. -qt-libjpeg ........ Use the libjpeg bundled with Qt.
  236. + -system-libjpeg .... Use libjpeg from the operating system.
  237. See http://www.ijg.org
  238.  
  239. -no-freetype ....... Do not compile in Freetype2 support.
  240. * -qt-freetype ....... Use the libfreetype bundled with Qt.
  241. -system-freetype ... Use the libfreetype provided by the system.
  242. * -no-harfbuzz ....... Do not compile in HarfBuzz-NG support.
  243. -qt-harfbuzz ....... (experimental) Use HarfBuzz-NG bundled with Qt
  244. to do text shaping. It can still be disabled
  245. by setting QT_HARFBUZZ environment variable to "old".
  246. -system-harfbuzz ... (experimental) Use HarfBuzz-NG from the operating
  247. system
  248. to do text shaping. It can still be disabled
  249. by setting QT_HARFBUZZ environment variable to "old".
  250.  
  251. + -angle ............. Use the ANGLE implementation of OpenGL ES 2.0.
  252. -angle-d3d11 ....... Use the Direct3D 11-based ANGLE implementation of
  253. OpenGL ES 2.0.
  254. -no-angle .......... Do not use ANGLE.
  255. See http://code.google.com/p/angleproject/
  256.  
  257.  
  258. Qt for Windows only:
  259.  
  260. -no-vcproj ......... Do not generate VC++ .vcproj files.
  261. * -vcproj ............ Generate VC++ .vcproj files, only if platform
  262. "win32-msvc.net".
  263.  
  264. -no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to
  265. custom build steps.
  266. + -incredibuild-xge .. Add IncrediBuild XGE distribution commands to custom
  267. build steps. This will distribute MOC and UIC steps,
  268. and other custom buildsteps which are added to the
  269. INCREDIBUILD_XGE variable.
  270. (The IncrediBuild distribution commands are only added
  271. to Visual Studio projects)
  272.  
  273. * -no-plugin-manifests Do not embed manifests in plugins.
  274. -plugin-manifests .. Embed manifests in plugins.
  275.  
  276. -no-qmake .......... Do not compile qmake.
  277. * -qmake ............. Compile qmake.
  278.  
  279. * -process ........... Generate only top-level Makefile.
  280. -fully-process ..... Generate Makefiles/Project files for the entire Qt
  281. tree.
  282. -dont-process ...... Do not generate Makefiles/Project files.
  283.  
  284. -qreal [double|float] typedef qreal to the specified type. The default is
  285. double.
  286. Note that changing this flag affects binary
  287. compatibility.
  288.  
  289. -no-rtti ........... Do not compile runtime type information.
  290. * -rtti .............. Compile runtime type information.
  291. -no-strip .......... Do not strip libraries and executables of debug info
  292. when installing.
  293. * -strip ............. Strip libraries and executables of debug info when
  294. installing.
  295.  
  296. -no-sse2 ........... Do not compile with use of SSE2 instructions.
  297. + -sse2 .............. Compile with use of SSE2 instructions.
  298. -no-sse3 ........... Do not compile with use of SSE3 instructions.
  299. + -sse3 .............. Compile with use of SSE3 instructions.
  300. -no-ssse3 .......... Do not compile with use of SSSE3 instructions.
  301. + -ssse3 ............. Compile with use of SSSE3 instructions.
  302. -no-sse4.1 ......... Do not compile with use of SSE4.1 instructions.
  303. + -sse4.1 ............ Compile with use of SSE4.1 instructions.
  304. -no-sse4.2 ......... Do not compile with use of SSE4.2 instructions.
  305. + -sse4.2 ............ Compile with use of SSE4.2 instructions.
  306. -no-avx ............ Do not compile with use of AVX instructions.
  307. + -avx ............... Compile with use of AVX instructions.
  308. -no-avx2 ........... Do not compile with use of AVX2 instructions.
  309. + -avx2 .............. Compile with use of AVX2 instructions.
  310.  
  311. -no-openssl ........ Do not compile support for OpenSSL.
  312. + -openssl ........... Enable run-time OpenSSL support.
  313. -openssl-linked .... Enable linked OpenSSL support.
  314.  
  315. -no-dbus ........... Do not compile in D-Bus support.
  316. + -dbus .............. Compile in D-Bus support and load libdbus-1
  317. dynamically.
  318. -dbus-linked ....... Compile in D-Bus support and link to libdbus-1.
  319.  
  320. -no-audio-backend .. Do not compile in the platform audio backend into
  321. Qt Multimedia.
  322. + -audio-backend ..... Compile in the platform audio backend into Qt
  323. Multimedia.
  324.  
  325. -no-wmf-backend .... Do not compile in the windows media foundation backend
  326. into Qt Multimedia.
  327. + -wmf-backend ....... Compile in the windows media foundation backend into
  328. Qt Multimedia.
  329.  
  330. -no-qml-debug ...... Do not build the in-process QML debugging support.
  331. * -qml-debug ......... Build the in-process QML debugging support.
  332.  
  333. * -no-directwrite .... Do not build support for DirectWrite font rendering.
  334. -directwrite ....... Build support for DirectWrite font rendering
  335. (experimental, requires DirectWrite availability on
  336. target systems, e.g. Windows Vista with Platform
  337. Update, Windows 7, etc.)
  338.  
  339. * -no-direct2d ....... Do not build the Direct2D platform plugin.
  340. -direct2d .......... Build the Direct2D platform plugin (experimental,
  341. requires Direct2D availability on target systems,
  342. e.g. Windows 7 with Platform Update, Windows 8, etc.)
  343.  
  344. -no-style-<style> .. Disable <style> entirely.
  345. -qt-style-<style> .. Enable <style> in the Qt Library.
  346. Available styles:
  347. * windows
  348. + windowsxp
  349. + windowsvista
  350. * fusion
  351. windowsce
  352. windowsmobile
  353.  
  354. -no-native-gestures Do not use native gestures on Windows 7.
  355. * -native-gestures ... Use native gestures on Windows 7.
  356.  
  357. * -no-mp ............. Do not use multiple processors for compiling with MSVC
  358. -mp ................ Use multiple processors for compiling with MSVC (-MP).
  359.  
  360. -loadconfig <config> Run configure with the parameters from file configure_
  361. <config>.cache.
  362. -saveconfig <config> Run configure and save the parameters in file
  363. configure_<config>.cache.
  364. -redo .............. Run configure with the same parameters as last time.
  365.  
  366. Qt for Windows CE only:
  367.  
  368. -no-iwmmxt ......... Do not compile with use of IWMMXT instructions.
  369. + -iwmmxt ............ Do compile with use of IWMMXT instructions. (Qt for
  370. Windows CE on Arm only)
  371.  
  372. * -no-crt ............ Do not add the C runtime to default deployment rules.
  373. -qt-crt ............ Qt identifies C runtime during project generation.
  374. -crt <path> ........ Specify path to C runtime used for project generation.
  375.  
  376. -no-cetest ......... Do not compile Windows CE remote test application.
  377. + -cetest ............ Compile Windows CE remote test application.
  378.  
  379. -signature <file> .. Use <file> for signing the target project.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement