This repo provides build files to compile the libs used by the EasyRPG project for Windows (Visual Studio compiler) easily.
The latest version of Visual Studio 2022.
The ARM architecture is not supported.
- For EasyRPG Player: Run
build.cmd - For EasyRPG Editor: Run
download_qt6.cmdandbuild_editor.cmd
This bootstraps vcpkg and builds all required libraries.
The first time you run the build it will take about 30 minutes to complete.
If you do not want to build the libraries yourself, you can download a
prebuilt version. Run download_prebuilt.cmd to obtain them.
This precompiled version will only work on the latest version of Visual Studio 2022. If you are using a different version, please compile it yourself.
Run setup_env.cmd once to configure the necessary environment variables.
Then log out of Windows to ensure that the changes take effect.
Open the "Developer Command Prompt for Visual Studio 2022" from the Start menu and navigate to your EasyRPG Player directory.
To configure for a standalone Player run:
cmake --preset windows-[ARCH]-vs2022-[BUILD_TYPE]
To configure for a libretro core run:
cmake --preset windows-[ARCH]-vs2022-libretro-[BUILD_TYPE]
Options for [ARCH]:
x86: Build for 32-bit architecturex64: Build for 64-bit architecture
Options for [BUILD_TYPE]:
debug: Debug buildrelwithdebinfo: Release build with debug symbolsrelease: Release build without debug symbols
liblcf is not provided by the buildscript. Either compile it yourself or add
-DPLAYER_BUILD_LIBLCF=ON to the CMake line to build it as part of the
Player.
Open the EasyRPG_Player.sln file created in build\[PRESET] in Visual
Studio ([PRESET] is equal to the value after --preset above).
Compiling the editor fails because the path length of the Kirigami dependency exceeds the legacy Windows limit of 260 characters.
To resolve this issue, either enable long path support in the Windows 11 Developer Settings, or run the following command in PowerShell as an administrator:
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Open the "Developer Command Prompt for Visual Studio 2022" from the Start menu and navigate to your EasyRPG Editor directory.
To configure the editor run:
cmake --preset windows-x64-vs2022-[BUILD_TYPE]
liblcf is not provided by the buildscript. Either compile it yourself or use
the triplet windows-x64-vs2022-liblcf-[BUILD_TYPE] to build it as part of
the Editor.
Options for [BUILD_TYPE]:
debug: Debug buildrelwithdebinfo: Release build with debug symbolsrelease: Release build without debug symbols
Open the EasyRPG_Editor.sln file created in build\[PRESET] in Visual
Studio ([PRESET] is equal to the value after --preset above).