- Rust toolchain (for libimagequant)
- CMake (version 3.15 or higher)
- vcpkg (for dependencies)
- You also need to set the
VCPKG_ROOTenvironment variable to the path of your vcpkg installation.
- You also need to set the
git clone --recurse-submodules https://github.com/Fexty12573/nitroefx.gitOr if you already have the repository, run:
git submodule update --init --recursiveRegardless of the platform you are on, you will need to install vcpkg and set the VCPKG_ROOT environment variable to the path of your vcpkg installation.
- Install Visual Studio 2022 with the C++ development workload.
- Install vcpkg and run
vcpkg integrate installto integrate vcpkg with Visual Studio. - Open the
nitroefxdirectory in Visual Studio. - Select one of the Windows configurations (x64-Debug/Release/Dist) and build the project.
Or via the command line: (Open a VS Developer Command Prompt)
cmake --preset windows-x64-<debug/release/dist>
cmake --build buildOn Ubuntu, the following packages are required (and probably some others):
sudo apt install libxmu-dev libxi-dev libgl-dev zip autoconf autoconf-archive automake libtool pkg-config libglu1-mesa-dev libltdl-dev libxtst-devThen, run the following commands:
cmake --preset linux-x64-<debug/release/dist>
cmake --build buildAlternatively, without presets:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -G "Unix Makefiles"
make