-
Notifications
You must be signed in to change notification settings - Fork 6
win_build
Manlio Morini edited this page May 17, 2024
·
41 revisions
There're many possibilities:
This is the way we build and test the framework.
-
Download the full distribution (including
git
) of MinGW . Install MinGW in a non-system folder (e.g.C:\MinGW\
). - Download and install CMake (when asked select the checkbox to add CMake to the system path).
- Clone Vita:
git clone https://github.com/morinim/vita.git
- Run CMake:
The default generator for Windows is set to
cd c:\vita mkdir build cd build cmake -G "MinGW Makefiles" ..\src
NMake
. The"MinGW Makefiles"
generator produces makefiles that usecmd.exe
as shell and don't require a Unix shell. - Make what you need (e.g.
make forex
) or make all (justmake
).
- The MinGW distribution available at nuwens.net is the suggested one because it's easy to install and always up to date. It's not mandatory: any recent distribution should be enough.
- If you're experiencing long delays after the
make
command, trymake -r
(avoids implicit rules).
Requires Windows 10. Thanks to Paolo Ucchino for advising and experimenting this environment
- Install the Windows Subsystem for Linux. Choose the Ubuntu distribution and install only the command-line.
- Update your WSL environment to make sure it's pointing to the latest catalog of software:
sudo apt update sudo apt upgrade
- Install the developer tools:
sudo apt install build-essential g++ sudo apt install cmake
- Clone Vita:
git clone https://github.com/morinim/vita.git
- Run CMake:
cd c:\vita mkdir build cd build cmake -G "MinGW Makefiles" ..\src
- Make all (
cmake --build build/
) or just a valid target (cmake --build build/ --target help
).
Visual Studio doesn't require special tricks. See the general instructions for setting up the build.