Skip to content

Instantly share code, notes, and snippets.

@judge2020
Last active February 16, 2018 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judge2020/ec49e22bb49a9edda2f4171d9c095aa7 to your computer and use it in GitHub Desktop.
Save judge2020/ec49e22bb49a9edda2f4171d9c095aa7 to your computer and use it in GitHub Desktop.
Qt build with openssl for VC 2017

Script to build qt

Script i made for personal use to build QT with linked openssl. Note that this is heavily tailored to my needs and It likely is not configured to your liking.

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -no_logo
which nmake
echo "%OPENSSL_LIBS%"
pause
set _ROOT=C:\QtBuild
cd %_ROOT%
( dir /b /a "%dir%" | findstr . ) > nul && (
echo %dir% non-empty
) || (
echo %dir% empty
git clone https://github.com/qt/qt5 .
perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
)
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
SET PATH=C:\SSLBuild\_build\bin;%PATH%
rm config.cache
configure.bat -prefix %_ROOT%\qtbase -opensource -debug-and-release -confirm-license -nomake examples -openssl-linked -opengl dynamic -make-tool jom -I C:\SSLBuild\_build\include -L C:\SSLBuild\_build\lib OPENSSL_LIBS="%OPENSSL_LIBS%" & cmd /k || cmd /k
cmd /k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment