Advertisement
entrpntr

Building GSR with MSVC / qt5-static from source

Apr 1st, 2020
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. [Prerequisites]
  2. - Visual Studio 2019 (with Visual C++)
  3. - Git / Perl / Python / Scons / maybe more?
  4. > NOTE: holy shit, Windows is much nicer when using scoop to install shit and manage your PATH (https://scoop.sh/)
  5.  
  6. [Environment Variables]
  7. set CL=/MP
  8. set QTDIR=C:\Qt\Qt-5.12.7
  9. set PATH=%QTDIR%\bin;%PATH%
  10.  
  11. [Developer Command Prompt for VS 2019] ; NOTE: defaults to x86 Native Tools Command Prompt for VS 2019 (i.e. 32-bit)
  12. > git clone git://code.qt.io/qt/qt5.git
  13. > cd qt5
  14. > git checkout v5.12.7
  15. > perl init-repository --module-subset=qtbase --branch
  16. > cd ..
  17. > mkdir qt5-static-v5.12.7
  18. > cd qt5-static-v5.12.7
  19. > ..\qt5\configure.bat -static -release -opensource -platform win32-msvc -confirm-license -nomake examples -nomake tests -nomake tools -opengl desktop -static-runtime
  20. > nmake
  21. ; NOTE: this step, which builds qt5 from source will take a long time; a bit over 20 minutes on my Windows laptop
  22. > nmake install
  23. ; installs static qt5 build to C:\Qt\Qt-5.12.7 (can be changed by adding '--prefix' to the configure.bat command)
  24. > cd %GSR_ROOT%
  25. ; wherever the root directory for gambatte-speedrun is
  26. > scripts\build_qt.bat
  27. ; for equivalent of build_qt.sh
  28. ; scripts\clean.bat for the equivalent of clean.sh
  29.  
  30. [TODO]
  31. clean up SConstruct (shared/static library issue for msvc)
  32. switch to cmake? (can seemingly meet all these needs, and maybe replace qmake, but annoying to change build system)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement