Yuzu: Yuzu compilation fails on Linux

Created on 16 Oct 2019  Â·  11Comments  Â·  Source: yuzu-emu/yuzu

Compiling against https://github.com/yuzu-emu/yuzu/commit/ef9b31783d2c6af6ec21e5a8a4a9de4e340295c7, the following exception is thrown:

                 from /home/shoegzer/Desktop/yuzu/yuzu/externals/libzip/lib/zip_crypto_gnutls.c:38:
/usr/include/gnutls/crypto.h:35:10: error: unknown type name ‘gnutls_cipher_algorithm_t’; did you mean ‘gnutls_cipher_hd_t’?
   35 |          gnutls_cipher_algorithm_t cipher,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
      |          gnutls_cipher_hd_t
...
[ 72%] Linking C static library libcrypto.a
[ 72%] Built target crypto
[ 72%] Linking CXX static library libdynarmic.a
[ 72%] Built target dynarmic
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Note that this does not occur when compiling against yuzu-canary, though it'll probably be getting more attention considering the canary build is deprecated.

Test system is Linux Mint 19.2 with kernel 5.0 and gcc 9.1.0

All 11 comments

We only officially support Ubuntu 18.04 LTS as a build platform. Please attempt to rebuild on Ubuntu 18.04 LTS and if this still fails, reopen.

linux mint is ubuntu 18.04 LTS so is pop os LTS and many others and they all share the same packages

@Shoegzer just did this on mint and had no errors at all best bet is to try

sudo apt install libsdl2-dev

sudo apt install build-essential

sudo apt install cmake git

sudo apt install libqt5webenginewidgets5 libsndio-dev qtbase5-dev libqt5opengl5-dev

Termimal: sudo ln -T /usr/lib/x86_64-linux-gnu/libsndio.so.7.0 /usr/lib/x86_64-linux-gnu/libsndio.so.6.1

Once all of the above is installed, Run the command below to pull and build latest Yuzu

git clone --recursive https://github.com/yuzu-emu/yuzu && cd yuzu && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && make -j8 && sudo make install

image

@ReaperOfSouls1909 thanks very much for the help. Those libraries are all installed though. Again, canary build compiles just fine. Any other suggestions would be appreciated. How does your version of Mint, kernel, gcc compare with mine? Also, notice this issue appears to be related to gnutls/libcrypto...

Btw here is a more detailed log of what happened when this errored out. Also I'm getting an interesting CMAKE warning, do you see this yourself?

    CMake Warning (dev) at externals/libzip/lib/CMakeLists.txt:218 (ADD_LIBRARY):
    Policy CMP0063 is not set: Honor visibility properties for all target
    types. Run "cmake --help-policy CMP0063" for policy details. Use the
    cmake_policy command to set the policy and suppress this warning.

    Target "zip" of type "STATIC_LIBRARY" has the following visibility
    properties set for C:

    C_VISIBILITY_PRESET

    For compatibility CMake is not honoring them for this target.
    This warning is for project developers. Use -Wno-dev to suppress it.

Hi, this is a warning intended for the developers of upstream libzip. You may want to open an issue on their tracker instead for that.

@chris062689 why does it have to be ubuntu 18

@lioncash got it. In any event it's just a warning and probably has little to do with what we're running into as part of this issue.

@chris062689 Can you please reopen this issue? As @ReaperOfSouls1909 mentioned, this is an Ubuntu 18.04 based release with the same package base and compilation is failing. Thanks.

Thank you @fearlesstobi

Closing this issue as yuzu compiles successfully now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ANIMEFANATIC91 picture ANIMEFANATIC91  Â·  4Comments

P
bukyapavankumar picture bukyapavankumar  Â·  4Comments

youwereeatenbyalid picture youwereeatenbyalid  Â·  4Comments

Dane0 picture Dane0  Â·  5Comments

ReinUsesLisp picture ReinUsesLisp  Â·  3Comments