Qt configure脚本说明

简介: configure脚本功能非常强大,可以通过它对qt进行配置裁剪, 为了编译更快一点可以使用下面参数: -fast 快速配置 -nomake 可以不编译不需要的文件夹,根目录下面的目录都可以过滤 比如 -nomake examples -nomake demos  -nomake tools 等等 另外就是一些不需要的模块也可以通过配置脚本来启用或者禁用,除了一些必须的模块像gui,corelib等,都是根据配置环境监测的,如果检测到不能编译,那么就自动禁用,否则就启用。

configure脚本功能非常强大,可以通过它对qt进行配置裁剪,

为了编译更快一点可以使用下面参数:

-fast 快速配置

-nomake 可以不编译不需要的文件夹,根目录下面的目录都可以过滤

比如 -nomake examples -nomake demos  -nomake tools 等等

另外就是一些不需要的模块也可以通过配置脚本来启用或者禁用,除了一些必须的模块像gui,corelib等,都是根据配置环境监测的,如果检测到不能编译,那么就自动禁用,否则就启用。

比如要使用webkit模块,那么可以使用参数 -webkit,如果要禁用,那么则使用-no-webkit, 下面列出可以禁用或者使用的模块:

  -no-dsp ............ Do not generate VC++ .dsp files.

 *  -dsp ............... Generate VC++ .dsp files, only if spec "win32-msvc".

 

    -no-vcproj ......... Do not generate VC++ .vcproj files.

 *  -vcproj ............ Generate VC++ .vcproj files, only if platform

                         "win32-msvc.net".

 

    -no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to

                         custom build steps.

 +  -incredibuild-xge .. Add IncrediBuild XGE distribution commands to custom

                         build steps. This will distribute MOC and UIC steps,

                         and other custom buildsteps which are added to the

                         INCREDIBUILD_XGE variable.

                         (The IncrediBuild distribution commands are only added

                         to Visual Studio projects)

 

    -no-plugin-manifests Do not embed manifests in plugins.

 *  -plugin-manifests .. Embed manifests in plugins.

 

    -no-qmake .......... Do not compile qmake.

 *  -qmake ............. Compile qmake.

 

    -dont-process ...... Do not generate Makefiles/Project files. This will

                         override -no-fast if specified.

 *  -process ........... Generate Makefiles/Project files.

 

    -no-rtti ........... Do not compile runtime type information.

 *  -rtti .............. Compile runtime type information.

 

    -no-mmx ............ Do not compile with use of MMX instructions

 +  -mmx ............... Compile with use of MMX instructions

    -no-3dnow .......... Do not compile with use of 3DNOW instructions

 +  -3dnow ............. Compile with use of 3DNOW instructions

    -no-sse ............ Do not compile with use of SSE instructions

 +  -sse ............... Compile with use of SSE instructions

    -no-sse2 ........... Do not compile with use of SSE2 instructions

 +  -sse2 .............. Compile with use of SSE2 instructions

    -no-openssl ........ Do not compile in OpenSSL support

 +  -openssl ........... Compile in run-time OpenSSL support

    -openssl-linked .... Compile in linked OpenSSL support

    -no-dbus ........... Do not compile in D-Bus support

 +  -dbus .............. Compile in D-Bus support and load libdbus-1 dynamicall

                         y

    -dbus-linked ....... Compile in D-Bus support and link to libdbus-1

    -no-phonon ......... Do not compile in the Phonon module

 +  -phonon ............ Compile the Phonon module (Phonon is built if a decent

                         C++ compiler is used.)

    -no-phonon-backend . Do not compile the platform-specific Phonon backend-pl

                         ugin

 *  -phonon-backend .... Compile in the platform-specific Phonon backend-plugin

    -no-multimedia ..... Do not compile the multimedia module

 *  -multimedia ........ Compile in multimedia module

    -no-audio-backend .. Do not compile in the platform audio backend into QtMu

                         ltimedia

 *  -audio-backend ..... Compile in the platform audio backend into QtMultimedi

                         a

    -no-webkit ......... Do not compile in the WebKit module

 +  -webkit ............ Compile in the WebKit module (WebKit is built if a

                         decent C++ compiler is used.)

    -no-script ......... Do not build the QtScript module.

 +  -script ............ Build the QtScript module.

    -no-scripttools .... Do not build the QtScriptTools module.

 +  -scripttools ....... Build the QtScriptTools module.

    -no-declarative .... Do not build the declarative module

 +  -declarative ....... Build the declarative module

    -arch <arch> ....... Specify an architecture.

                         Available values for <arch>:

 *                         windows

                           windowsce

                           symbian

                           boundschecker

                           generic

 

    -no-style-<style> .. Disable <style> entirely.

    -qt-style-<style> .. Enable <style> in the Qt Library.

                         Available styles:

 *                         windows

 +                         windowsxp

 +                         windowsvista

 *                         plastique

 *                         cleanlooks

 *                         motif

 *                         cde

                           windowsce

                           windowsmobile

                           s60

 

    -no-native-gestures Do not use native gestures on Windows 7.

 *  -native-gestures ... Use native gestures on Windows 7.

    -loadconfig <config> Run configure with the parameters from file configure_

                         <config>.cache.

    -saveconfig <config> Run configure and save the parameters in file

                         configure_<config>.cache.

    -redo .............. Run configure with the same parameters as last time.

 

Qt for Windows CE only:

 

    -no-iwmmxt ......... Do not compile with use of IWMMXT instructions

 +  -iwmmxt ............ Do compile with use of IWMMXT instructions (Qt for

                         Windows CE on Arm only)

 *  -no-crt ............ Do not add the C runtime to default deployment rules

    -qt-crt ............ Qt identifies C runtime during project generation

    -crt <path> ........ Specify path to C runtime used for project generation.

    -no-cetest ......... Do not compile Windows CE remote test application

 +  -cetest ............ Compile Windows CE remote test application

    -signature <file> .. Use file for signing the target project

    -opengl-es-cm ...... Enable support for OpenGL ES Common

    -opengl-es-cl ...... Enable support for OpenGL ES Common Lite

    -opengl-es-2 ....... Enable support for OpenGL ES 2.0

 *  -phonon-wince-ds9 .. Enable Phonon Direct Show 9 backend for Windows CE

Qt for Symbian OS only:

 

 *  -no-freetype ....... Do not compile in Freetype2 support.

    -qt-freetype ....... Use the libfreetype bundled with Qt.

    -fpu <flags> ....... VFP type on ARM, supported options: softvfp(default) |

                         vfpv2 | softvfp+vfpv2

    -no-s60 ............ Do not compile in S60 support.

 *  -s60 ............... Compile with support for the S60 UI Framework

    -no-usedeffiles .... Disable the usage of DEF files.

 *  -usedeffiles ....... Enable the usage of DEF files.

如果要配置为嵌入式系统,那么可以使用参数:

-embedded arm -xplatform qws/linux-arm-g++

还有许多其他配置参数可以参考帮助说明,另外一个重要的裁剪参数就是-qconfig,后续会深入介绍。

 

目录
相关文章
|
1月前
|
存储 机器学习/深度学习 人工智能
Qt魔法书:打造自定义鼠标键盘脚本(二)
Qt魔法书:打造自定义鼠标键盘脚本
34 0
|
1月前
|
开发框架 Linux API
Qt魔法书:打造自定义鼠标键盘脚本(一)
Qt魔法书:打造自定义鼠标键盘脚本
23 0
|
Linux Python
linux qt 项目中QProcess调用命令行命令执行python脚本
linux qt 项目中QProcess调用命令行命令执行python脚本
linux qt 项目中QProcess调用命令行命令执行python脚本
关于 Qt在海思平台使用脚本和文件控制GPIO口写入高低无效 的解决方法
关于 Qt在海思平台使用脚本和文件控制GPIO口写入高低无效 的解决方法
关于 Qt在海思平台使用脚本和文件控制GPIO口写入高低无效 的解决方法
|
编解码 Windows
案例分享:Qt出版社书籍配套U盘资源播放器软件定制(脚本关联播放器与资源文件,播放器,兼容win7,win10和mac)
案例分享:Qt出版社书籍配套U盘资源播放器软件定制(脚本关联播放器与资源文件,播放器,兼容win7,win10和mac)
案例分享:Qt出版社书籍配套U盘资源播放器软件定制(脚本关联播放器与资源文件,播放器,兼容win7,win10和mac)
|
计算机视觉
Qt实用技巧:win将ffmpeg、opengl、osg等各种库封装成qt模块,运行需要dll,增加自动拷贝运行库到exe目录执行脚本
Qt实用技巧:win将ffmpeg、opengl、osg等各种库封装成qt模块,运行需要dll,增加自动拷贝运行库到exe目录执行脚本
|
1月前
|
网络协议 C++
C++ Qt开发:QTcpSocket网络通信组件
`QTcpSocket`和`QTcpServer`是Qt中用于实现基于TCP(Transmission Control Protocol)通信的两个关键类。TCP是一种面向连接的协议,它提供可靠的、双向的、面向字节流的通信。这两个类允许Qt应用程序在网络上建立客户端和服务器之间的连接。Qt 是一个跨平台C++图形界面开发库,利用Qt可以快速开发跨平台窗体应用程序,在Qt中我们可以通过拖拽的方式将不同组件放到指定的位置,实现图形化开发极大的方便了开发效率,本章将重点介绍如何运用`QTcpSocket`组件实现基于TCP的网络通信功能。
37 8
C++ Qt开发:QTcpSocket网络通信组件
|
13天前
|
图形学 Python 容器
【PyQt5桌面应用开发】3.Qt Designer快速入门(控件详解)
【PyQt5桌面应用开发】3.Qt Designer快速入门(控件详解)
28 0
|
21天前
qt开发使用camera类获取摄像头信息并拍照保存
qt开发使用camera类获取摄像头信息并拍照保存
|
1月前
|
监控 C++
C++ Qt开发:QProcess进程管理模块
Qt是一个跨平台的C++图形库,简化了窗体应用开发,支持通过拖放组件提升效率。本章节关注`QProcess`组件,它用于控制和管理进程,例如执行命令、运行可执行文件及与外部进程通信。`QProcess`提供多种方法如`start`、`waitForStarted`和`waitForFinished`等,实现启动、监控和交互。示例展示了如何使用`QProcess`获取系统进程和信息,通过`tasklist`和`systeminfo`命令,并将结果展示在`QTreeWidget`中。
28 0
C++ Qt开发:QProcess进程管理模块

推荐镜像

更多