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

Can't run wine binaries #72

Open
andOrlando opened this issue Sep 30, 2023 · 5 comments
Open

Can't run wine binaries #72

andOrlando opened this issue Sep 30, 2023 · 5 comments

Comments

@andOrlando
Copy link

This is probably because they weren't compiled on nixos, but I can't run any of the wine/proton binaries. It says "required file not found" even though it successfully downloaded and the file is right there. Did you have the same issue? If so, how did you get around it

@ezKEa
Copy link
Owner

ezKEa commented Oct 2, 2023

I have not seen this issue before. Is there any other logs/terminal output that shows the issue?

@andOrlando
Copy link
Author

andOrlando commented Oct 2, 2023

logs when I click start, it hides the launcher then reopens it after a couple seconds

2023-10-02T19:43:39.097980Z  INFO anime_launcher_sdk::games::genshin::game: Running the game with command:  GST_PLUGIN_PATH="/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib64/gstreamer-1.0:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib/gstreamer-1.0" LD_LIBRARY_PATH="/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib64:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib64/wine/x86_64-unix:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib/wine/i386-unix" WINEARCH="win64" WINEFSYNC="1" WINEPREFIX="/home/bennett/.local/share/anime-game-launcher/prefix" WINE_FULLSCREEN_FSR="1" WINE_FULLSCREEN_FSR_MODE="balanced" WINE_FULLSCREEN_FSR_STRENGTH="2" bash -c "'/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/bin/wine64'  GenshinImpact.exe  -window-mode exclusive "
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.11.2/src/games/genshin/game.rs:292
    in anime_launcher_sdk::games::genshin::game::run
  2023-10-02T19:43:42.539644Z  INFO anime_launcher_sdk::games::genshin::game: return: Ok(())
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.11.2/src/games/genshin/game.rs:52
    in anime_launcher_sdk::games::genshin::game::run

  2023-10-02T19:43:42.539822Z DEBUG anime_game_launcher::ui::main: Called main window event: ShowWindow
    at src/ui/main/mod.rs:925
    in relm4::component::sync::builder::update_with_view with input: ShowWindow, component: "anime_game_launcher::ui::main::App", id: "0x7ffd717d8360"

when I try to run the command manually:

$ GST_PLUGIN_PATH="/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib64/gstreamer-1.0:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib/gstreamer-1.0" LD_LIBRARY_PATH="/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib64:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib64/wine/x86_64-unix:/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/lib/wine/i386-unix" WINEARCH="win64" WINEFSYNC="1" WINEPREFIX="/home/bennett/.local/share/anime-game-launcher/prefix" WINE_FULLSCREEN_FSR="1" WINE_FULLSCREEN_FSR_MODE="balanced" WINE_FULLSCREEN_FSR_STRENGTH="2" bash -c "'/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/bin/wine64'  GenshinImpact.exe  -window-mode exclusive "
bash: line 1: /home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/bin/wine64: cannot execute: required file not found

when I cd into the directory and ls:

$ pwd
/home/bennett/.local/share/anime-game-launcher/runners/lutris-GE-Proton8-16-x86_64/bin
$ ls
 msidb     notepad   regsvr32   wine-preloader   wine64-preloader   winecfg       winedbg    winemine   wineserver
 msiexec   regedit   wine       wine64           wineboot           wineconsole   winefile   winepath  
$ ./wine64
bash: ./wine64: cannot execute: required file not found

This isn't an uncommon issue, if I download and run a binary that was compiled on another operating system this is what typically happens. I believe this is because when you compile a binary on nixos, many of the common libraries are linked to somewhere in /nix/store instead of wherever the binary expects them to be.

Edit: nevermind, libraries are correctly found. I'm gonna keep debugging

$ ldd ./wine64
	linux-vdso.so.1 (0x00007ffe699f8000)
	libc.so.6 => /nix/store/46m4xx889wlhsdj72j38fnlyyvvvvbyb-glibc-2.37-8/lib/libc.so.6 (0x00007f4ab7ce2000)
	/lib64/ld-linux-x86-64.so.2 => /nix/store/46m4xx889wlhsdj72j38fnlyyvvvvbyb-glibc-2.37-8/lib64/ld-linux-x86-64.so.2 (0x00007f4ab7eca000)

@ezKEa
Copy link
Owner

ezKEa commented Oct 2, 2023

What version of the launcher are you using? What version of Nixpkgs are you using?

The entire launcher runs inside of a FHS bubblewrap sandbox (like steam does), so the library linking itself isn't the problem (though it is why wine64 isn't running from the command line). If you want to run wine64 from within FHS sandbox, run cat "$(which anime-game-launcher)" and prepend the /nix/store/.../bin/steam-run shown to your wine command.

@andOrlando
Copy link
Author

this does indeed work and yeah you're so right that it runs everything inside steam-run so I really have no idea why it's not launching. wine does correctly run when I run it with steam-run. Actually no clue what's happening

@Nick1296
Copy link

I might have the same problem... I will try to debug as soon as I have some more time on my hands

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

3 participants