静态编译Qt及问题

http://blog.csdn.net/x356982611/article/details/62042318

https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-qt5/qt-5.3.0-static-qmake-conf.patch

http://www.cnblogs.com/Romi/archive/2012/09/01/2666861.html

REM ********** Initialize env for msvc 2015 cl compiler **********
SET PATH=C:\Windows;C:\Windows\system32
REM Set up \Microsoft Visual Studio 2015, where <arch> is amd64, x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
set CL=/utf-8

REM ********** Update include & lib to support xp win sdk 7.1A **********
REM SET PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
REM SET INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;%INCLUDE%
REM SET LIB=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib;%LIB%
REM SET CL=/D_USING_V140_SDK71_;%CL%

REM ********** 3rd party build tools binaries: ruby, perl, python ********** 
SET PATH=C:\Perl64\bin;C:\Python27;%PATH%
SET INCLUDE=H:\RedisDesktopManager\3rdparty\qredisclient\3rdparty\windows\rmt_openssl.1.0.2.5\build\native\include\v140\x64\Release\static;%INCLUDE%
SET INCLUDE=H:\RedisDesktopManager\3rdparty\qredisclient\3rdparty\windows\rmt_openssl.1.0.2.5\build\native\include;%INCLUDE%
SET LIB=H:\RedisDesktopManager\3rdparty\qredisclient\3rdparty\windows\rmt_openssl.1.0.2.5\build\native\lib\v140\x64\Release\static;%LIB%

REM ********** Set up qt source env **********
SET _ROOT=C:\qtsrc
SET PATH=C:\Qt\Qt5.8.0\Tools\QtCreator\bin;%PATH%
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
REM Uncomment the below line when using a git checkout of the source repository
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
SET QMAKESPEC=win32-msvc
REM Generate makefile
configure -prefix %CD%\qtbase -platform win32-msvc2015 -static -release -opensource -confirm-license -no-dbus -opengl desktop -nomake examples -nomake tests -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtxmlpatterns -sql-sqlite -ssl

 

转载于:https://my.oschina.net/assange/blog/860255

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值