mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
synced 2025-12-23 06:12:40 +00:00
975f07540b69cb58908d218c3c9f45d201c14749
Yuzu
Building
Linux
I'm not able to build Yuzu from the backed up source code because there's a link error with mbedtls.
If someone has an up to date mbedtls clone from the now deleted yuzu-emu/mbedtls or knows how to fix the following error please reach to me on Discord @Stay1444.
[12/106] Linking CXX executable bin/yuzu-cmd
FAILED: bin/yuzu-cmd
< bunch of stuff >
mold: error: undefined symbol: mbedtls_cipher_cmac
>>> referenced by key_manager.cpp
>>> src/core/libcore.a(src/core/CMakeFiles/core.dir/crypto/key_manager.cpp.o):(Core::Crypto::KeyManager::DeriveBase())
collect2: error: ld returned 1 exit status
[13/106] Building CXX object src/yuzu/CMakeFiles/yuzu.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
Step 1: Clone the project
Clone the project recursively
$ git clone --recursive https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu
Step 2: Configure SPIRV Shaders
We need to make some changes because SPIRV Shaders throws an error otherwise. If someone knows how to fix it please reach out to me.
$ rm -rf externals/sirit/externals
Then edit externals/sirit/CMakeLists.txt and enable "Use system SPIR-V Headers".
Like this:
option(SIRIT_USE_SYSTEM_SPIRV_HEADERS "Use system SPIR-V headers" ON)
Step 3: Build
Create a directory named build and cd into it.
$ mkdir build
$ cd build
Then configure the project
$ cmake .. -GNinja -DYUZU_USE_BUNDLED_VCPKG=ON -DYUZU_TESTS=OFF
Once that is done you can build it with
$ ninja
Description
Release
Latest
Languages
C++
65.1%
cpp
30.6%
Kotlin
2.7%
CMake
0.7%
GLSL
0.3%
Other
0.5%