-
Notifications
You must be signed in to change notification settings - Fork 196
Compilation on Windows x86 64
Błażej Szczygieł edited this page Jul 6, 2020
·
8 revisions
- Download Qt online installer, run and install:
- Qt 5.14.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
- be sure Ninja is available in system PATH, if it is not available globally:
- set
CMAKE_MAKE_PROGRAMto full path withninja.exein "CMake Configuration"
- set
- 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 set (and press "Apply Configuration Changes"):
-
CUSTOM_INCLUDE_DIRtoC:\QMPlay2-Win64-deps\include -
CUSTOM_LINK_DIRtoC:\QMPlay2-Win64-deps\lib
-
- Select unchecked
USE_features you want to build (USE_AUDIOCD,USE_CHIPTUNE_GME,USE_TAGLIB,USE_CHIPTUNE_SID), but don't select non-Windows features likeUSE_ALSA(and press "Apply Configuration Changes"). - Set (and press "Apply Configuration Changes"):
-
CUSTOM_AUDIOCD_LIBRARIEStowinmm;z;regex;ws2_32 -
CUSTOM_CHIPTUNE_LIBRARIEStoz -
CUSTOM_GUI_LIBRARIEStoz -
CUSTOM_LIBQMPLAY2_LIBRARIEStofreetype;fribidi;bz2 -
CUSTOM_PORTAUDIO_LIBRARIEStowinmm -
TAGLIB_STATIC_LINKtoON
-
- 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 build directory (Release or Debug).
- also append
- Run.