The below wiki article is based on user submitted content. Please verify all hyperlinks and terminal commands below!
See a mistake? Want to contribute? Edit this article on Github
On Windows, all library dependencies are automatically included within the externals
folder, or can be downloaded on-demand. To build yuzu, you need to install:
Master:
git clone --recursive https://github.com/yuzu-emu/yuzu.git
cd yuzu
Mainline (no assert):
git clone --recursive https://github.com/yuzu-emu/yuzu-mainline.git
cd yuzu-mainline
C:\Users\\yuzu
(Master) or C:\Users\\yuzu-mainline
(Mainline)Open the CMake GUI application and point it to the yuzu
(Master) or yuzu-mainline
(Mainline) directory.
For the build directory, use a /build
subdirectory inside the source directory or some other directory of your choice. (Tell CMake to create it.)
Click the “Configure” button and choose Visual Studio 16 2019
, with x64
for the optional platform.
git submodule update --init --recursive
to get the remaining dependencies)If you get an error about missing packages, enable YUZU_USE_BUNDLED_VCPKG
, and then click Configure again.
YUZU_TESTS
in this case since Catch2 is not yet supported with this.)Click “Generate” to create the project files.
Open the solution file yuzu.sln
in Visual Studio 2019, which is located in the build folder.
Depending if you want a graphical user interface or not (yuzu
has the graphical user interface, while yuzu-cmd
doesn’t), select yuzu
or yuzu-cmd
in the Solution Explorer, right-click and Set as StartUp Project
.
Select the appropriate build type, Debug for debug purposes or Release for performance (in case of doubt choose Release).
Right-click the project you want to build and press Build in the submenu or press F5.
Feel free to ask us in the IRC channel #yuzu-emu @ libera or on Discord if you have issues.
pacman -Syu
as many times as needed.MSYS2 MinGW 64-bit
(mingw64.exe) shellpacman -Syu git make mingw-w64-x86_64-SDL2 mingw-w64-x86_64-cmake mingw-w64-x86_64-python-pip mingw-w64-x86_64-qt5 mingw-w64-x86_64-toolchain autoconf libtool automake-wrapper
echo 'PATH=/mingw64/bin:$PATH' >> ~/.bashrc
echo 'PATH=$(readlink -e /c/VulkanSDK/*/Bin/):$PATH' >> ~/.bashrc
git clone --recursive https://github.com/yuzu-emu/yuzu.git
cd yuzu
mkdir build && cd build
cmake -G "MSYS Makefiles" -DYUZU_USE_BUNDLED_VCPKG=ON -DYUZU_TESTS=OFF ..
make -j$(nproc)
# test yuzu out with
./bin/yuzu.exe
e.g.
cp externals/ffmpeg-*/bin/*.dll bin/
Bonus Note: Running programs from inside MSYS2 MinGW x64
shell has a different %PATH% than directly from explorer. This different %PATH% has the locations of the other DLLs required.
Doesn’t require the rather large Qt dependency, but you will lack a GUI frontend:
-DENABLE_QT=no
flag to cmakeTo build yuzu, you need to install the following:
Build type: Release
Name: Release
Toolchain Visual Studio
Generator: Let CMake decide
Build directory: build
git clone --recursive https://github.com/yuzu-emu/yuzu
cd yuzu
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A x64
cmake --build . --config Release
Advertisement
Advertisement