Skip to content

Compilation on Windows x86 64

Błażej Szczygieł edited this page Feb 5, 2023 · 8 revisions
  1. Download Qt online installer, run and install:
    • Qt 5.15.2 for MinGW 64-bit
    • Ninja
    • CMake 64-bit
  2. Run QtCreator.
  3. (Optional step, only if not configured automatically):
    • Configure Ninja and CMake in QtCreator:
      • set CMake in "Tools/Options/Kits/CMake"
      • set Ninja in "Tools/Options/Kits/Kits":
        • CMake generator to Ninja
        • If ninja.exe is not available globally in your system:
          • on "CMake Configuration" press "Change"
          • append CMAKE_MAKE_PROGRAM=C:/Qt/Tools/Ninja/ninja.exe and press "OK"
  4. Download QMPlay2-Win64-deps.7z from QMPlay2 Release page and unpack it e.g. to C:\.
  5. Open CMakeLists.txt from QMPlay2 sources in QtCreator.
  6. Go to "Projects/Build" and append to "Initial CMake parameters":
-DCUSTOM_INCLUDE_DIR=C:\QMPlay2-Win64-deps\include
-DCUSTOM_LINK_DIR=C:\QMPlay2-Win64-deps\lib
-DUSE_AUDIOCD=ON
-DUSE_CHIPTUNE_SID=ON
-DUSE_RUBBERBAND=ON
  1. Run "Build/Clear CMake Configuration".
  2. Run "Build/Run CMake".
  3. Build the project.
  4. (Optional step if not configured automatically):
    • go to "Projects/Run" and append to environment PATH: C:\QMPlay2-Win64-deps\bin;%QTDIR%\bin;,
    • also append src\qmplay2 path from the output build directory (Release or Debug).
  5. Run.
Clone this wiki locally