-
Notifications
You must be signed in to change notification settings - Fork 196
Compilation on Windows x86 64
Błażej Szczygieł edited this page Feb 5, 2023
·
8 revisions
- Download Qt online installer, run and install:
- Qt 5.15.2 for MinGW 64-bit
- Ninja
- CMake 64-bit
- Run QtCreator.
-
(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.exeis not available globally in your system:- on "CMake Configuration" press "Change"
- append
CMAKE_MAKE_PROGRAM=C:/Qt/Tools/Ninja/ninja.exeand press "OK"
- Configure Ninja and CMake in QtCreator:
- Download
QMPlay2-Win64-deps.7zfrom QMPlay2 Release page and unpack it e.g. toC:\. - Open
CMakeLists.txtfrom QMPlay2 sources in QtCreator. - 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
- Run "Build/Clear CMake Configuration".
- Run "Build/Run CMake".
- Build the project.
-
(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\qmplay2path from the output build directory (Release or Debug).
- go to "Projects/Run" and append to environment
- Run.