Advertisement
Guest User

Опции конфигуратора Qt

a guest
Feb 16th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.81 KB | None | 0 0
  1. Installation options:
  2.  
  3. These are optional, but you may specify install directories.
  4.  
  5. -prefix <dir> ...... This will install everything relative to <dir>
  6. (default /usr/local/Qt-${QT_VERSION}, \$PWD if -developer-build is active)
  7.  
  8. -extprefix <dir> ... When -sysroot is used, install everything to <dir>,
  9. rather than into SYSROOT/PREFIX.
  10.  
  11. -hostprefix [dir] .. Tools and libraries needed when developing
  12. applications are installed in [dir]. If [dir] is
  13. not given, the current build directory will be used.
  14. (default EXTPREFIX)
  15.  
  16. You may use these to separate different parts of the install:
  17.  
  18. -bindir <dir> ......... User executables will be installed to <dir>
  19. (default PREFIX/bin)
  20. -headerdir <dir> ...... Headers will be installed to <dir>
  21. (default PREFIX/include)
  22. -libdir <dir> ......... Libraries will be installed to <dir>
  23. (default PREFIX/lib)
  24. -archdatadir <dir> .... Arch-dependent data used by Qt will be installed to <dir>
  25. (default PREFIX)
  26. -plugindir <dir> ...... Plugins will be installed to <dir>
  27. (default ARCHDATADIR/plugins)
  28. -libexecdir <dir> ..... Program executables will be installed to <dir>
  29. (default ARCHDATADIR/libexec, ARCHDATADIR/bin for MinGW)
  30. -importdir <dir> ...... Imports for QML1 will be installed to <dir>
  31. (default ARCHDATADIR/imports)
  32. -qmldir <dir> ......... Imports for QML2 will be installed to <dir>
  33. (default ARCHDATADIR/qml)
  34. -datadir <dir> ........ Arch-independent data used by Qt will be installed to <dir>
  35. (default PREFIX)
  36. -docdir <dir> ......... Documentation will be installed to <dir>
  37. (default DATADIR/doc)
  38. -translationdir <dir> . Translations of Qt programs will be installed to <dir>
  39. (default DATADIR/translations)
  40. -sysconfdir <dir> ..... Settings used by Qt programs will be looked for in <dir>
  41. (default PREFIX/etc/xdg)
  42. -examplesdir <dir> .... Examples will be installed to <dir>
  43. (default PREFIX/examples)
  44. -testsdir <dir> ....... Tests will be installed to <dir>
  45. (default PREFIX/tests)
  46.  
  47. -hostbindir <dir> .. Host executables will be installed to <dir>
  48. (default HOSTPREFIX/bin)
  49. -hostlibdir <dir> .. Host libraries will be installed to <dir>
  50. (default HOSTPREFIX/lib)
  51. -hostdatadir <dir> . Data used by qmake will be installed to <dir>
  52. (default HOSTPREFIX)
  53.  
  54. Configure options:
  55.  
  56. The defaults (*) are usually acceptable. A plus (+) denotes a default value
  57. that needs to be evaluated. If the evaluation succeeds, the feature is
  58. included. Here is a short explanation of each option:
  59.  
  60. * -release ........... Compile and link Qt with debugging turned off.
  61. -debug ............. Compile and link Qt with debugging turned on.
  62. -debug-and-release . Compile and link two versions of Qt, with and without
  63. debugging turned on (Mac only).
  64.  
  65. -force-debug-info .. Create symbol files for release builds.
  66.  
  67. -developer-build ... Compile and link Qt with Qt developer options (including auto-tests exporting)
  68.  
  69. -opensource ........ Compile and link the Open-Source Edition of Qt.
  70. -commercial ........ Compile and link the Commercial Edition of Qt.
  71.  
  72. -confirm-license ... Automatically acknowledge the license (use with
  73. either -opensource or -commercial)
  74.  
  75. -no-c++11 .......... Do not compile Qt with C++11 support enabled.
  76. + -c++11 ............. 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. -no-largefile ...... Disables large file support.
  82. + -largefile ......... Enables Qt to access files larger than 4 GB.
  83.  
  84. -no-accessibility .. Do not compile Accessibility support.
  85. Disabling accessibility is not recommended, as it will break QStyle
  86. and may break other internal parts of Qt.
  87. With this switch you create a source incompatible version of Qt,
  88. which is unsupported.
  89. + -accessibility ..... Compile Accessibility support.
  90.  
  91. -no-sql-<driver> ... Disable SQL <driver> entirely.
  92. -qt-sql-<driver> ... Enable a SQL <driver> in the Qt SQL module, by default
  93. none are turned on.
  94. -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to
  95. at run time.
  96.  
  97. Possible values for <driver>:
  98. [$CFG_SQL_AVAILABLE ]
  99.  
  100. -system-sqlite ..... Use sqlite from the operating system.
  101.  
  102. -no-qml-debug ...... Do not build the in-process QML debugging support.
  103. + -qml-debug ......... Build the QML debugging support.
  104.  
  105. -platform target ... The operating system and compiler you are building
  106. on (default detected from host system).
  107.  
  108. See the README file for a list of supported
  109. operating systems and compilers.
  110.  
  111. -no-sse2 ........... Do not compile with use of SSE2 instructions.
  112. -no-sse3 ........... Do not compile with use of SSE3 instructions.
  113. -no-ssse3 .......... Do not compile with use of SSSE3 instructions.
  114. -no-sse4.1 ......... Do not compile with use of SSE4.1 instructions.
  115. -no-sse4.2 ......... Do not compile with use of SSE4.2 instructions.
  116. -no-avx ............ Do not compile with use of AVX instructions.
  117. -no-avx2 ........... Do not compile with use of AVX2 instructions.
  118. -no-mips_dsp ....... Do not compile with use of MIPS DSP instructions.
  119. -no-mips_dspr2 ..... Do not compile with use of MIPS DSP rev2 instructions.
  120.  
  121. -qtnamespace <name> Wraps all Qt library code in 'namespace <name> {...}'.
  122. -qtlibinfix <infix> Renames all libQt*.so to libQt*<infix>.so.
  123.  
  124. -testcocoon ........ Instrument Qt with the TestCocoon code coverage tool.
  125. -gcov .............. Instrument Qt with the GCov code coverage tool.
  126.  
  127. -D <string> ........ Add an explicit define to the preprocessor.
  128. -I <string> ........ Add an explicit include path.
  129. -L <string> ........ Add an explicit library path.
  130.  
  131. + -pkg-config ........ Use pkg-config to detect include and library paths. By default,
  132. configure determines whether to use pkg-config or not with
  133. some heuristics such as checking the environment variables.
  134. -no-pkg-config ..... Disable use of pkg-config.
  135. -force-pkg-config .. Force usage of pkg-config (skips pkg-config usability
  136. detection heuristic).
  137.  
  138. -help, -h .......... Display this information.
  139.  
  140. Third Party Libraries:
  141.  
  142. -qt-zlib ........... Use the zlib bundled with Qt.
  143. + -system-zlib ....... Use zlib from the operating system.
  144. See http://www.gzip.org/zlib
  145.  
  146. -no-mtdev ......... Do not compile mtdev support.
  147. + -mtdev ............. Enable mtdev support.
  148.  
  149. + -no-journald ....... Do not send logging output to journald.
  150. -journald .......... Send logging output to journald.
  151.  
  152. -no-gif ............ Do not compile GIF reading support.
  153.  
  154. -no-libpng ......... Do not compile PNG support.
  155. -qt-libpng ......... Use the libpng bundled with Qt.
  156. + -system-libpng ..... Use libpng from the operating system.
  157. See http://www.libpng.org/pub/png
  158.  
  159. -no-libjpeg ........ Do not compile JPEG support.
  160. -qt-libjpeg ........ Use the libjpeg bundled with Qt.
  161. + -system-libjpeg .... Use libjpeg from the operating system.
  162. See http://www.ijg.org
  163.  
  164. -no-freetype ....... Do not compile in Freetype2 support.
  165. -qt-freetype ....... Use the libfreetype bundled with Qt.
  166. + -system-freetype.... Use the libfreetype provided by the system (enabled if -fontconfig is active).
  167. See http://www.freetype.org
  168.  
  169. -no-harfbuzz ....... Do not compile HarfBuzz-NG support.
  170. * -qt-harfbuzz ....... Use HarfBuzz-NG bundled with Qt to do text shaping.
  171. It can still be disabled by setting
  172. the QT_HARFBUZZ environment variable to "old".
  173. -system-harfbuzz ... Use HarfBuzz-NG from the operating system
  174. to do text shaping. It can still be disabled
  175. by setting the QT_HARFBUZZ environment variable to "old".
  176. See http://www.harfbuzz.org
  177.  
  178. -no-openssl ........ Do not compile support for OpenSSL.
  179. + -openssl ........... Enable run-time OpenSSL support.
  180. -openssl-linked .... Enabled linked OpenSSL support.
  181.  
  182. -qt-pcre ........... Use the PCRE library bundled with Qt.
  183. + -system-pcre ....... Use the PCRE library from the operating system.
  184.  
  185. -qt-xcb ............ Use xcb- libraries bundled with Qt.
  186. (libxcb.so will still be used from operating system).
  187. + -system-xcb ........ Use xcb- libraries from the operating system.
  188.  
  189. -xkb-config-root ... Set default XKB config root. This option is used only together with -qt-xkbcommon.
  190. -qt-xkbcommon ...... Use the xkbcommon library bundled with Qt.
  191. + -system-xkbcommon .. Use the xkbcommon library from the operating system.
  192.  
  193. -no-xinput2 ........ Do not compile XInput2 support.
  194. * -xinput2 ........... Compile XInput2 support.
  195.  
  196. -no-xcb-xlib........ Do not compile Xcb-Xlib support.
  197. * -xcb-xlib........... Compile Xcb-Xlib support.
  198.  
  199. -no-glib ........... Do not compile Glib support.
  200. + -glib .............. Compile Glib support.
  201.  
  202. -no-pulseaudio ..... Do not compile PulseAudio support.
  203. + -pulseaudio ........ Compile PulseAudio support.
  204.  
  205. -no-alsa ........... Do not compile ALSA support.
  206. + -alsa .............. Compile ALSA support.
  207.  
  208. -no-gtkstyle ....... Do not compile GTK theme support.
  209. + -gtkstyle .......... Compile GTK theme support.
  210.  
  211. Additional options:
  212.  
  213. -make <part> ....... Add part to the list of parts to be built at make time.
  214. (defaults to: $QT_DEFAULT_BUILD_PARTS)
  215. -nomake <part> ..... Exclude part from the list of parts to be built.
  216.  
  217. -skip <module> ..... Exclude an entire module from the build.
  218.  
  219. -no-compile-examples ... Install only the sources of examples.
  220.  
  221. -no-gui ............ Don't build the Qt GUI module and dependencies.
  222. + -gui ............... Build the Qt GUI module and dependencies.
  223.  
  224. -no-widgets ........ Don't build the Qt Widgets module and dependencies.
  225. + -widgets ........... Build the Qt Widgets module and dependencies.
  226.  
  227. -R <string> ........ Add an explicit runtime library path to the Qt
  228. libraries.
  229. -l <string> ........ Add an explicit library.
  230.  
  231. -no-rpath .......... Do not use the library install path as a runtime
  232. library path.
  233. + -rpath ............. Link Qt libraries and executables using the library
  234. install path as a runtime library path. Equivalent
  235. to -R install_libpath
  236.  
  237. -continue .......... Continue as far as possible if an error occurs.
  238.  
  239. -verbose, -v ....... Print verbose information about each step of the
  240. configure process.
  241.  
  242. -silent ............ Reduce the build output so that warnings and errors
  243. can be seen more easily.
  244.  
  245. * -no-optimized-qmake ... Do not build qmake optimized.
  246. -optimized-qmake ...... Build qmake optimized.
  247.  
  248. -no-nis ............ Do not compile NIS support.
  249. * -nis ............... Compile NIS support.
  250.  
  251. -no-cups ........... Do not compile CUPS support.
  252. * -cups .............. Compile CUPS support.
  253. Requires cups/cups.h and libcups.so.2.
  254.  
  255. -no-iconv .......... Do not compile support for iconv(3).
  256. * -iconv ............. Compile support for iconv(3).
  257.  
  258. -no-evdev .......... Do not compile support for evdev.
  259. * -evdev ............. Compile support for evdev.
  260.  
  261. -no-icu ............ Do not compile support for ICU libraries.
  262. + -icu ............... Compile support for ICU libraries.
  263.  
  264. -no-fontconfig ..... Do not compile FontConfig support.
  265. + -fontconfig ........ Compile FontConfig support.
  266.  
  267. -no-strip .......... Do not strip binaries and libraries of unneeded symbols.
  268. * -strip ............. Strip binaries and libraries of unneeded symbols when installing.
  269.  
  270. * -no-pch ............ Do not use precompiled header support.
  271. -pch ............... Use precompiled header support.
  272.  
  273. -no-dbus ........... Do not compile the Qt D-Bus module.
  274. + -dbus .............. Compile the Qt D-Bus module and dynamically load libdbus-1.
  275. -dbus-linked ....... Compile the Qt D-Bus module and link to libdbus-1.
  276.  
  277. -reduce-relocations ..... Reduce relocations in the libraries through extra
  278. linker optimizations (Qt/X11 and Qt for Embedded Linux only;
  279. experimental; needs GNU ld >= 2.18).
  280.  
  281. -no-use-gold-linker ..... Do not link using the GNU gold linker.
  282. + -use-gold-linker ........ Link using the GNU gold linker if available.
  283.  
  284. -force-asserts ........ Force Q_ASSERT to be enabled even in release builds.
  285.  
  286. -device <name> ............... Cross-compile for device <name> (experimental)
  287. -device-option <key=value> ... Add device specific options for the device mkspec
  288. (experimental)
  289.  
  290. -no-separate-debug-info . Do not store debug information in a separate file.
  291. * -separate-debug-info .... Strip debug information into a separate file.
  292.  
  293. -no-xcb ............ Do not compile Xcb (X protocol C-language Binding) support.
  294. * -xcb ............... Compile Xcb support.
  295.  
  296. -no-eglfs .......... Do not compile EGLFS (EGL Full Screen/Single Surface) support.
  297. * -eglfs ............. Compile EGLFS support.
  298.  
  299. -no-directfb ....... Do not compile DirectFB support.
  300. * -directfb .......... Compile DirectFB support.
  301.  
  302. -no-linuxfb ........ Do not compile Linux Framebuffer support.
  303. * -linuxfb ........... Compile Linux Framebuffer support.
  304.  
  305. -no-kms ............ Do not compile KMS support.
  306. * -kms ............... Compile KMS support (Requires EGL).
  307.  
  308. -qpa <name> ......... Sets the default QPA platform (e.g xcb, cocoa, windows).
  309.  
  310. -xplatform target ... The target platform when cross-compiling.
  311.  
  312. -sysroot <dir> ...... Sets <dir> as the target compiler's and qmake's sysroot and also sets pkg-config paths.
  313. -no-gcc-sysroot ..... When using -sysroot, it disables the passing of --sysroot to the compiler
  314.  
  315. -no-feature-<feature> Do not compile in <feature>.
  316. -feature-<feature> .. Compile in <feature>. The available features
  317. are described in src/corelib/global/qfeatures.txt
  318.  
  319. -qconfig local ...... Use src/corelib/global/qconfig-local.h rather than the
  320. default ($CFG_QCONFIG).
  321.  
  322. -qreal [double|float] typedef qreal to the specified type. The default is double.
  323. Note that changing this flag affects binary compatibility.
  324.  
  325. -no-opengl .......... Do not support OpenGL.
  326. -opengl <api> ....... Enable OpenGL support
  327. With no parameter, this will attempt to auto-detect
  328. OpenGL ES 2.0 and higher, or regular desktop OpenGL.
  329. Use es2 for <api> to override auto-detection.
  330.  
  331. * -no-system-proxies .. Do not use system network proxies by default.
  332. -system-proxies ..... Use system network proxies by default.
  333.  
  334. -no-warnings-are-errors Make warnings be treated normally
  335. -warnings-are-errors Make warnings be treated as errors
  336. (enabled if -developer-build is active)
  337.  
  338. QNX/Blackberry options:
  339.  
  340. -no-slog2 .......... Do not compile with slog2 support.
  341. -slog2 ............. Compile with slog2 support.
  342.  
  343. -no-pps ............ Do not compile with pps support.
  344. -pps ............... Compile with pps support.
  345.  
  346. -no-imf ............ Do not compile with imf support.
  347. -imf ............... Compile with imf support.
  348.  
  349. -no-lgmon .......... Do not compile with lgmon support.
  350. -lgmon ............. Compile with lgmon support.
  351.  
  352. MacOS/iOS options:
  353.  
  354. -Fstring ........... Add an explicit framework path.
  355. -fw string ......... Add an explicit framework.
  356.  
  357. * -framework ......... Build Qt as a series of frameworks and
  358. link tools against those frameworks.
  359. -no-framework ...... Do not build Qt as a series of frameworks.
  360.  
  361. -sdk <sdk> ......... Build Qt using Apple provided SDK <sdk>. The argument should be
  362. one of the available SDKs as listed by 'xcodebuild -showsdks'.
  363. Note that the argument applies only to Qt libraries and applications built
  364. using the target mkspec - not host tools such as qmake, moc, rcc, etc.
  365.  
  366. Android options:
  367.  
  368. -android-sdk path .............. The Android SDK root path.
  369. (default \$ANDROID_SDK_ROOT)
  370.  
  371. -android-ndk path .............. The Android NDK root path.
  372. (default \$ANDROID_NDK_ROOT)
  373.  
  374. -android-ndk-platform .......... Sets the android platform
  375. (default $CFG_DEFAULT_ANDROID_PLATFORM)
  376.  
  377. -android-ndk-host .............. Sets the android NDK host (linux-x86, linux-x86_64, etc.)
  378. (default \$ANDROID_NDK_HOST)
  379.  
  380. -android-arch .................. Sets the android architecture (armeabi, armeabi-v7a, x86, mips)
  381. (default $CFG_DEFAULT_ANDROID_TARGET_ARCH)
  382.  
  383. -android-toolchain-version ..... Sets the android toolchain version
  384. (default $CFG_DEFAULT_ANDROID_NDK_TOOLCHAIN_VERSION)
  385.  
  386. -no-android-style-assets ....... Do not compile in the code which automatically extracts
  387. style assets from the run-time device. Setting this will
  388. make the Android style behave incorrectly, but will enable
  389. compatibility with the LGPL2.1 license.
  390. * -android-style-assets .......... Compile the code which automatically extracts style assets
  391. from the run-time device. This option will make the
  392. Android platform plugin incompatible with the LGPL2.1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement