Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Cemu does not work with fmt 10 #920

Closed
alba4k opened this issue Jul 29, 2023 · 15 comments
Closed

[Linux] Cemu does not work with fmt 10 #920

alba4k opened this issue Jul 29, 2023 · 15 comments

Comments

@alba4k
Copy link

alba4k commented Jul 29, 2023

fmtlib recently saw a major release (10.0.0) that Cemu seems to be incompatible with.

updating it causes Cemu to fail to open.

trying to open Cemu just errors cemu: error while loading shared libraries: libfmt.so.9: cannot open shared object file: No such file or directory

@Exzap
Copy link
Member

Exzap commented Jul 29, 2023

Which distro and which binary format of Cemu are you running? (flatpak, appimage, etc.)

@hirak99
Copy link

hirak99 commented Jul 29, 2023

It does not also compile with libfmt 10.

Previously compiled versions may not find libfmt.so.9 if the distro has it already upgraded, e.g. Arch has moved to libfmt 10.

@alba4k
Copy link
Author

alba4k commented Jul 29, 2023

I am indeed on arch using Arch. I have Cemu from the AUR (chaotic-aur, but doesn't really matter) and fmt from the extra repo

@hirak99
Copy link

hirak99 commented Jul 29, 2023

@alba4k as a workaround if you still have the cemu binary compiled, you can try this -

  1. Get hold of the libfmt.so.9 binary. If you have 9.1.0, a symlink ln -s libfmt.so.9.1.0 binary libfmt.so.9 works too.
  2. Make a temporary directory until Cemu is updated, and put the libfmt.so.9 there.
  3. Start cemu as LD_LIBRARY_PATH ~/my_holdback_limfmt_dir cemu

This will give cemu access to the library without downgrading it for the whole system.

This does not resolve the issue however, compilation of cemu is broken with libfmt 10.0.

@alba4k
Copy link
Author

alba4k commented Jul 29, 2023

Just in case anybody is reading this, you did a typo, LD_LIBRARY_PATH=/path/to/link.so.9 cemu

Also the ln would be ln -s /usr/lib/libfmt.so.10 ~/.cache/libfmt.so.9 I think

Anyway that doesn't seem to work unfortunately :(

immagine
cemu: symbol lookup error: cemu: undefined symbol: _ZTIN3fmt2v912format_errorE

@hirak99
Copy link

hirak99 commented Jul 29, 2023

Yeah - you need an actual libfmt.so.9.1.0 or libfmt.so.9 for this.

Linking the libfmt.so.10 does not work.

@alba4k
Copy link
Author

alba4k commented Jul 29, 2023

I see

I will take it out of an old package then ig

Edit: yea thanks again. In case anybody finds this by searching, here it is (zipped because github won't allow it otherwise)
libfmt.so.9.zip

@jn64
Copy link
Contributor

jn64 commented Jul 31, 2023

Just to note, the next Fedora version (current Rawhide, will be 39, expected 2023-10-24) also has fmt 10. I turned off Rawhide builds for my Cemu package at the moment because no time to deal with it.

@kescherCode
Copy link
Contributor

This is being worked on at #924.

@alba4k
Copy link
Author

alba4k commented Sep 4, 2023

fmt 10 works now

libboost doesnt anymore lol (#958)

@alba4k alba4k closed this as completed Sep 4, 2023
@jn64
Copy link
Contributor

jn64 commented Sep 4, 2023

fmt 10 works now

Are you sure?

AUR Cemu was changed to use fmt9 https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=cemu&id=7dc9b52e7817e7ded0161318cd18970d07ba044c

@alba4k
Copy link
Author

alba4k commented Sep 4, 2023

Ok that's my bad, sorry

@Tachi107
Copy link
Contributor

Tachi107 commented Sep 16, 2023

stdlibc++ 13, LLVM's libc++ 15 and MSVC now seem to support std::format, would it be feasible to use it now?

@Exzap Exzap closed this as completed Oct 6, 2023
@jn64
Copy link
Contributor

jn64 commented Oct 7, 2023 via email

@jn64
Copy link
Contributor

jn64 commented Oct 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants