Yuzu: Tutorial: running Yuzu on Fedora

Created on 22 Jan 2019  Â·  9Comments  Â·  Source: yuzu-emu/yuzu

There are a couple dependencies to install before running yuzu on Fedora 29 (and probably other versions as well):

Install qtwebengine:

  • sudo dnf install qt5-qtwebengine

    Install libsndio6.1:

  1. git clone http://caoua.org/git/sndio
  2. cd into that folder
  3. ./configure
  4. make (you might need to have alsa installed so run sudo dnf install alsa-lib-devel)
  5. sudo mkdir /var/run/sndiod
    sudo useradd -r -g audio -s /sbin/nologin -d /var/run/sndiod sndiod
    sudo make install
    sudo ldconfig
  6. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/local/lib
  7. Now you should be able to run Yuzu

    If it still doesn't work:

  • Try manually copying libsndio.so and libsndio.so.6.1 from the cloned repo under the libsndio directory (after building everying with make, of course) to /usr/lib
  • Then, run sudo ldconfig -n -v /usr/lib and export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/local/lib

Most helpful comment

Sndio isn't mentioned in the guide.
It isn't packaged in Gentoo, overlays fix it but they contain already never version [ 7 ] [ Which binary build of yuzu will complain about and fail to launch ]

All 9 comments

We already have a Linux build guide in the wiki pages on the repo (that also includes Fedora).

antauf, Thanks for the guide!
As Hexagon already posted, we do have a Linux build guide on the website.
If you feel there's additional information that needs to be added to that page, please let us know.
It's also a wiki so feel free to add the information there.

Sndio isn't mentioned in the guide.
It isn't packaged in Gentoo, overlays fix it but they contain already never version [ 7 ] [ Which binary build of yuzu will complain about and fail to launch ]

This is a must on Fedora 30 and should be added to the compile page

still needed as of fedora 31 and fedora 30

@barolo
I just compiled yuzu on Fedora 31, following the instructions here:
https://github.com/yuzu-emu/yuzu/wiki/Building-For-Linux

dnf install SDL2-devel qt5-qtbase qt5-qtbase-devel gcc

git clone --recursive https://github.com/yuzu-emu/yuzu

cd yuzu
mkdir build
cd build
cmake ../
make -j8    #(or however many cores you have)
sudo make install

you'll see there's no libsndio dependency. I think you'll only encounter the libsndio dependency

if you compile yuzu on a debian-based system.

**if you're on Fedora, compile yuzu yourself. Don't use the pre-compiled binaries.

[root@black bin]# ldd /usr/local/bin/yuzu
    linux-vdso.so.1 (0x00007ffc329d6000)
    libQt5OpenGL.so.5 => /lib64/libQt5OpenGL.so.5 (0x00007fe601eb0000)
    libQt5Widgets.so.5 => /lib64/libQt5Widgets.so.5 (0x00007fe60180f000)
    librt.so.1 => /lib64/librt.so.1 (0x00007fe601804000)
    libgnutls.so.30 => /lib64/libgnutls.so.30 (0x00007fe60162e000)
    libnettle.so.7 => /lib64/libnettle.so.7 (0x00007fe6015f1000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe6015cf000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007fe6015c6000)
    libSDL2-2.0.so.0 => /lib64/libSDL2-2.0.so.0 (0x00007fe601472000)
    libQt5Gui.so.5 => /lib64/libQt5Gui.so.5 (0x00007fe600f36000)
    libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007fe600a18000)
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fe60081e000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fe6006d8000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe6006bc000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fe6004f3000)
    libp11-kit.so.0 => /lib64/libp11-kit.so.0 (0x00007fe6003bd000)
    libidn2.so.0 => /lib64/libidn2.so.0 (0x00007fe60039b000)
    libunistring.so.2 => /lib64/libunistring.so.2 (0x00007fe600217000)
    libtasn1.so.6 => /lib64/libtasn1.so.6 (0x00007fe600201000)
    libhogweed.so.5 => /lib64/libhogweed.so.5 (0x00007fe6001cd000)
    libgmp.so.10 => /lib64/libgmp.so.10 (0x00007fe600150000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fe601f3e000)
    libGL.so.1 => /lib64/libGL.so.1 (0x00007fe6000bc000)
    libpng16.so.16 => /lib64/libpng16.so.16 (0x00007fe600086000)
    libz.so.1 => /lib64/libz.so.1 (0x00007fe60006c000)
    libharfbuzz.so.0 => /lib64/libharfbuzz.so.0 (0x00007fe5fff74000)
    libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007fe5ffebf000)
    libicui18n.so.63 => /lib64/libicui18n.so.63 (0x00007fe5ffbdc000)
    libicuuc.so.63 => /lib64/libicuuc.so.63 (0x00007fe5ffa09000)
    libpcre2-16.so.0 => /lib64/libpcre2-16.so.0 (0x00007fe5ff988000)
    libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fe5ff860000)
    libffi.so.6 => /lib64/libffi.so.6 (0x00007fe5ff853000)
    libGLX.so.0 => /lib64/libGLX.so.0 (0x00007fe5ff81f000)
    libX11.so.6 => /lib64/libX11.so.6 (0x00007fe5ff6d9000)
    libXext.so.6 => /lib64/libXext.so.6 (0x00007fe5ff6c4000)
    libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x00007fe5ff607000)
    libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007fe5ff544000)
    libgraphite2.so.3 => /lib64/libgraphite2.so.3 (0x00007fe5ff51f000)
    liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fe5ff4f6000)
    liblz4.so.1 => /lib64/liblz4.so.1 (0x00007fe5ff4d5000)
    libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007fe5ff3b7000)
    libicudata.so.63 => /lib64/libicudata.so.63 (0x00007fe5fd9c6000)
    libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fe5fd950000)
    libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fe5fd925000)
    libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fe5fd911000)
    libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007fe5fd8ee000)
    libXau.so.6 => /lib64/libXau.so.6 (0x00007fe5fd8e8000)

Prepare for the company Linux

Sent from my iPhone

On Dec 21, 2019, at 7:45 AM, leifliddy notifications@github.com wrote:


@barolo
I just compiled yuzu on Fedora 31, following the instructions here:
https://github.com/yuzu-emu/yuzu/wiki/Building-For-Linux

dnf install SDL2-devel qt5-qtbase qt5-qtbase-devel gcc

git clone --recursive https://github.com/yuzu-emu/yuzu

cd yuzu
mkdir build
cd build
cmake ../
make -j8 #(or however many cores you have)
sudo make install

you'll see there's no libsndio dependency. I think you'll only encounter the libsndio dependency

if you compile yuzu on a debian-based system.

if you're on Fedora, compile yuzu yourself. Don't use the pre-compiled binaries.

[root@black bin]# ldd /usr/local/bin/yuzu
linux-vdso.so.1 (0x00007ffc329d6000)
libQt5OpenGL.so.5 => /lib64/libQt5OpenGL.so.5 (0x00007fe601eb0000)
libQt5Widgets.so.5 => /lib64/libQt5Widgets.so.5 (0x00007fe60180f000)
librt.so.1 => /lib64/librt.so.1 (0x00007fe601804000)
libgnutls.so.30 => /lib64/libgnutls.so.30 (0x00007fe60162e000)
libnettle.so.7 => /lib64/libnettle.so.7 (0x00007fe6015f1000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe6015cf000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe6015c6000)
libSDL2-2.0.so.0 => /lib64/libSDL2-2.0.so.0 (0x00007fe601472000)
libQt5Gui.so.5 => /lib64/libQt5Gui.so.5 (0x00007fe600f36000)
libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007fe600a18000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fe60081e000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe6006d8000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe6006bc000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe6004f3000)
libp11-kit.so.0 => /lib64/libp11-kit.so.0 (0x00007fe6003bd000)
libidn2.so.0 => /lib64/libidn2.so.0 (0x00007fe60039b000)
libunistring.so.2 => /lib64/libunistring.so.2 (0x00007fe600217000)
libtasn1.so.6 => /lib64/libtasn1.so.6 (0x00007fe600201000)
libhogweed.so.5 => /lib64/libhogweed.so.5 (0x00007fe6001cd000)
libgmp.so.10 => /lib64/libgmp.so.10 (0x00007fe600150000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe601f3e000)
libGL.so.1 => /lib64/libGL.so.1 (0x00007fe6000bc000)
libpng16.so.16 => /lib64/libpng16.so.16 (0x00007fe600086000)
libz.so.1 => /lib64/libz.so.1 (0x00007fe60006c000)
libharfbuzz.so.0 => /lib64/libharfbuzz.so.0 (0x00007fe5fff74000)
libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007fe5ffebf000)
libicui18n.so.63 => /lib64/libicui18n.so.63 (0x00007fe5ffbdc000)
libicuuc.so.63 => /lib64/libicuuc.so.63 (0x00007fe5ffa09000)
libpcre2-16.so.0 => /lib64/libpcre2-16.so.0 (0x00007fe5ff988000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fe5ff860000)
libffi.so.6 => /lib64/libffi.so.6 (0x00007fe5ff853000)
libGLX.so.0 => /lib64/libGLX.so.0 (0x00007fe5ff81f000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007fe5ff6d9000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007fe5ff6c4000)
libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x00007fe5ff607000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007fe5ff544000)
libgraphite2.so.3 => /lib64/libgraphite2.so.3 (0x00007fe5ff51f000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fe5ff4f6000)
liblz4.so.1 => /lib64/liblz4.so.1 (0x00007fe5ff4d5000)
libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007fe5ff3b7000)
libicudata.so.63 => /lib64/libicudata.so.63 (0x00007fe5fd9c6000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fe5fd950000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fe5fd925000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fe5fd911000)
libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007fe5fd8ee000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007fe5fd8e8000)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

I'm such an idiot. Yuzu does not work right by following these build instructions. There's no sound amongst other issues.
We need a better build guide for Fedora. Going to work on it now....

/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_AUDIOUNIT.c:2:10: fatal error: AudioUnit/AudioUnit.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_PULSE.c:2:10: fatal error: pulse/pulseaudio.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_ALSA.c:2:10: fatal error: alsa/asoundlib.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_JACK.c:2:10: fatal error: jack/jack.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_WASAPI.c:2:10: fatal error: audioclient.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_WINMM.c:2:10: fatal error: windows.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_OPENSL.c:2:10: fatal error: SLES/OpenSLES.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_AUDIOTRACK.c:2:10: fatal error: android/log.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_SNDIO.c:2:10: fatal error: sndio.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/USE_KAI.c:2:10: fatal error: kai.h: No such file or directory
/root/yuzu/build/CMakeFiles/CheckIncludeFiles/COMMONCRYPTO_FOUND.c:2:10: fatal error: CommonCrypto/CommonCrypto.h: No such file or directory

managed to get the audio working by installing some of the missing audio development libraries:

dnf install SDL2-devel qt5-qtbase qt5-qtbase-devel gcc pulseaudio-libs-devel alsa-lib-devel jack-audio-connection-kit-devel doxygen
[root@black bin]$ ldd yuzu | egrep 'snd|pulse|jack|audio'
    libpulse.so.0 => /lib64/libpulse.so.0 (0x00007f636c35b000)
    libjack.so.0 => /lib64/libjack.so.0 (0x00007f636c20d000)
    libpulsecommon-13.0.so => /usr/lib64/pulseaudio/libpulsecommon-13.0.so (0x00007f636ace6000)
    libsndfile.so.1 => /lib64/libsndfile.so.1 (0x00007f636aa12000)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kewlan picture Kewlan  Â·  6Comments

ReinUsesLisp picture ReinUsesLisp  Â·  3Comments

spotanjo3 picture spotanjo3  Â·  3Comments

Ktuky picture Ktuky  Â·  4Comments

Alex-Aralis picture Alex-Aralis  Â·  5Comments