quick n dirty notes so I don't forget
- install qt (opensource version) https://www.qt.io/download and make sure to tick msvc2017 64-bit, Sources and Qt WebEngine. just pick whatever the latest version is, even beta seems to work fine
- install python2.7 and add it to PATH. it might be necessary to also copy its executable to python2.exe https://www.python.org/downloads/windows/
- install https://sourceforge.net/projects/winflexbison/ and rename the executables to flex and bison. remember to add this to PATH
choco install -y strawberryperl gperf visualcpp-build-tools windows-sdk-10.0
add ATL/MFC on visual studio build tools from the visual studio installer
open a x64 native tools command prompt for vs 2017 (replace qt version in the commands with yours)
cd C:\Qt\5.11.2\Src\qtwebengine
C:\Qt\5.11.2\msvc2017_64\bin\qmake.exe -- -webengine-proprietary-codecs
nmake
if anything goes wrong with qmake delete config.cache in C:\Qt\5.11.2\Src\qtwebengine
, fix what you gotta fix and retry.
if you don't delete this it will give the same errors over and over from the cache
now install python 3.7.1 https://www.python.org/ftp/python/3.7.1/python-3.7.1-amd64.exe
building sip https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.13/sip-4.19.13.zip
7z x sip-4.19.13.zip
cd sip-4.19.13
python configure.py
nmake
nmake install
C:\Python37\python configure.py --sip-module PyQt5.sip --no-tools
nmake
nmake install
building PyQt5 5.11.3 https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.11.3/PyQt5_gpl-5.11.3.zip
7z x PyQt5_gpl-5.11.3.zip
cd PyQt5_gpl-5.11.3
C:\Python37\python .\configure.py ^
--qmake C:\Qt\5.11.2\msvc2017_64\bin\qmake.exe ^
--sip-incdir ..\sip-4.19.13\siplib ^
--disable QtNfc
nmake
nmake install
install pip https://bootstrap.pypa.io/get-pip.py
C:\Python37\python get-pip.py
install nsis
choco install nsis
add C:\Program Files (x86)\NSIS
to PATH
now you can build the qutebrowser installer
git clone https://github.com/qutebrowser/qutebrowser
cd qutebrowser
copy C:\Python37\python.exe C:\Python37\python3.exe
C:\Python37\Scripts\pip install pyinstaller
C:\Qt\5.11.2\msvc2017_64\bin\qtenv2.bat
C:\Python37\Scripts\pyinstaller --clean --noconfirm .\misc\qutebrowser.spec
copy C:\Qt\5.11.2\msvc2017_64\bin\QtWebEngineProcess.exe dist\qutebrowser\PyQt5\Qt\bin
copy C:\Qt\5.11.2\msvc2017_64\bin\QtWebEngineProcess.exe dist\qutebrowser\
copy C:\Qt\5.11.2\msvc2017_64\bin\qt.conf dist\qutebrowser\PyQt5\Qt\bin
rename .\dist\qutebrowser qutebrowser-1.5.2-x64
makensis /DX64 /DVERSION=1.5.2 misc/qutebrowser.nsi
now you can delete the qt sources (especially qtwebengine which will use ~100GB after the build)
in dist/ you will find a folder with the standalone browser and the installer
help is appreciated to fix the workarounds (copying QtWebEngineProcess manually etc)
Thanks, silly me. But still no luck, I have nmake telling me that I haven’t the latest Windows SDK installed when I know it isn’t that way (I even have the path to its binaries inside the PATH environment variable).
I’ll try with Visual Studio 2019 build tools next time in case it has a most recent Windows SDK as an installable package, which (I hope) fits the requirements of the compiler.