-
Notifications
You must be signed in to change notification settings - Fork 5
Build on Windows
https://github.com/git-for-windows/git/releases/download/v2.51.0.windows.1/Git-2.51.0-64-bit.exe
This guide uses C:\nara\dev\reone as an example. You can use any directory, but make sure to adjust instructions accordingly.
Open the directory, right-click for a context menu, and click on Open Git Bash here
Enter the following command and press Enter. You can copy commands from this guide, and insert them to Git Bash using Shift-Insert keyboard shortcut.
Copy the following command and press Enter:
git clone https://github.com/modawan/reone
Enter another command and press Enter:
git clone https://github.com/microsoft/vcpkg
Enter 3 more commands:
curl -OL https://github.com/Kitware/CMake/releases/download/v4.1.0/cmake-4.1.0-windows-x86_64.zip
unzip cmake-4.1.0-windows-x86_64.zip
After unzip is done, you can delete the zip file.
mv cmake-4.1.0-windows-x86_64 cmake
Enter the following commands:
export VCPKG_ROOT="$PWD/vcpkg"
export PATH="$VCPKG_ROOT:$PATH"
bootstrap-vcpkg.sh
Use the following command. It is one long line. Insert it and press Enter:
vcpkg/vcpkg install --triplet x64-windows boost-algorithm boost-endian boost-format boost-functional boost-program-options glm sdl2 glew openal-soft libmad ffmpeg wxwidgets gtest
cmake/bin/cmake -B reone/build -S reone -DCMAKE_TOOLCHAIN_FILE="$PWD/vcpkg/scripts/buildsystems/vcpkg.cmake"
Example: C:\nara\dev\reone\reone\build
Wait for the build process to complete.
Then go to the project directory, then build\debug\bin, and run launcher.exe.
For example, C:\nara\dev\reone\reone\build\debug\bin:
Here we use a Steam version of the game
Launcher should generate a reone.cfg configuration file.
Change Working Directory from $(ProjectDir) to $(TargetDir) and press OK.