mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-25 10:36:55 +01:00
1.6 KiB
1.6 KiB
Build instructions
Windows
Prerequisites:
- A recent version of Visual Studio 2022 with CMake tools component
- git
- Vulkan SDK (https://vulkan.lunarg.com/). Don't forget to restart after installing.
Instructions:
- Run
git clone --recursive https://github.com/cemu-project/Cemu
- Launch
Cemu/build_vs_solution.bat
. If you installed VS to a custom location you may need to manually adjust the path inside the bat file - Wait until done, then open build/Cemu.sln in Visual Studio
- Right click 'CemuBin' project -> Set as startup project
- Then build the solution and once finished you can run and debug it
You can also skip steps 3-5 and open the root folder of the cloned repo directly in Visual Studio (as a folder) and use the inbuilt cmake support, but be warned that cmake support in VS can be a bit finicky.
Linux
To compile Cemu, a recent enough compiler and STL with C++20 support is required! We use clang 12, other compilers may work as well.
For ubuntu and most derivatives:
- Make sure vulkansdk is installed and the VULKAN_SDK environment variable is set correctly.
sudo apt install -y libgtk-3-dev libsecret-1-dev libgcrypt20-dev libsystemd-dev freeglut3-dev clang-12 nasm
- Run
git clone --recursive https://github.com/cemu-project/Cemu
cd Cemu
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=release -DCMAKE_C_COMPILER=/usr/bin/clang-12 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-12 -G Ninja -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja
Build instructions for other distributions will be added in the future!