原创应用开发

Qt静态编译脚本

本文阅读 1 分钟
首页 应用开发 正文
REM 开启命令回显
ECHO ON

REM 设置VS2017编译环境
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"

REM 保存当前目录
SET _CD=%CD%

REM 保存环境变量
SET _PATH=%PATH%

REM 设置环境变量

SET PATH=%PATH%;C:\Perl64\bin;C:\Perl64\site\bin
SET PATH=%PATH%;C:\Python27;C:\Python27\Tools\Scripts
SET PATH=%PATH%;C:\Ruby25-x64\bin

SET ICU_PCM_DIR=C:\icu\x64
SET OPENSSL_DIR=C:\OpenSSL\x64\release
SET QT_SOURCE=C:\Qt\Qt5.12.3\5.12.3\Src
SET QT_PREFIX=C:\Qt\Qt5.12.3\5.12.3\msvc2017_64_static

REM 设置ICU
SET PATH=%PATH%;%ICU_PCM_DIR%\bin

SET INCLUDE=%INCLUDE%;%ICU_PCM_DIR%\include;%OPENSSL_DIR%\include
SET LIB=%LIB%;%ICU_PCM_DIR%\lib;%ICU_PCM_DIR%\bin;%OPENSSL_DIR%\lib

REM 构建QT
CALL %QT_SOURCE%\configure -confirm-license -opensource -platform win32-msvc ^
    -debug-and-release -static -force-debug-info ^
    -prefix %QT_PREFIX% ^
    -qt-sqlite -qt-pcre -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype ^
    -nomake tests -nomake examples ^
    -icu -I %ICU_PCM_DIR%\include -L %ICU_PCM_DIR%\lib ^
        ICU_LIBS_DEBUG="-lsicudtd -lsicuind -lsicuucd -lAdvapi32" ^
        ICU_LIBS_RELEASE="-lsicudt -lsicuin -lsicuuc -lAdvapi32" ^
    -ssl -openssl-linked

nmake && nmake install

pause
原创文章,作者:@,如若转载,请注明出处:https://haw.cc/index.php/archives/89/
QWebEngine中显示下载进度
« 上一篇 04-15
Webview2
下一篇 » 04-18