Error launching a Wii game in Dolphin via Lutris flatpak

I recently started working on a Lutris setup (installed through Flathub) and ran into an error trying to launch one of my Wii games with the Dolphin emulator.

Here’s the game logs:

Started initial process 50 from gamemoderun /home/username/.var/app/net.lutris.Lutris/data/lutris/runners/dolphin/dolphin-emu --batch -e /home/username/Shelf/Library/Gaming/Nintendo/Wii/Wii Sports Resort.rvz
Start monitoring process.
/home/username/.var/app/net.lutris.Lutris/data/lutris/runners/dolphin/dolphin-emu: error while loading shared libraries: libQt6Widgets.so.6: cannot open shared object file: No such file or directory
Monitored process exited.
Initial process has exited (return code: 32512)
All processes have quit
Exit with return code 32512

And this is the debug log from lutris -d:

INFO 2025-01-10 17:41:20,878 [application.do_command_line:480]:Starting Lutris 0.5.18
INFO 2025-01-10 17:41:20,928 [startup.run_all_checks:120]:“card1” is AMD Radeon Graphics (1002:1638 17aa:3801 amdgpu) Driver 24.3.1
DEBUG 2025-01-10 17:41:21,145 [xrandr.get_resolutions:91]:Retrieving resolution list
DEBUG 2025-01-10 17:41:21,149 [xrandr._get_vidmodes:18]:Retrieving 32 video modes from XrandR
DEBUG 2025-01-10 17:41:21,226 [path_cache._update_missing_games:114]:Checking for missing games
DEBUG 2025-01-10 17:41:21,281 [api.check_stale_runtime_versions:52]:Modified at Fri 10 Jan 2025 03:02:43 PM , will update after Fri 10 Jan 2025 09:02:43 PM
DEBUG 2025-01-10 17:41:21,282 [lutriswindow.create_runtime_updater_cb:1358]:Runtime up to date
DEBUG 2025-01-10 17:41:23,511 [grid.on_item_activated:97]:Item activated: 7
DEBUG 2025-01-10 17:41:23,528 [xrandr.get_outputs:26]:Retrieving display outputs
DEBUG 2025-01-10 17:41:23,532 [xrandr._get_vidmodes:18]:Retrieving 32 video modes from XrandR
Started initial process 50 from gamemoderun /home/username/.var/app/net.lutris.Lutris/data/lutris/runners/dolphin/dolphin-emu --batch -e /home/username/Shelf/Library/Gaming/Nintendo/Wii/Wii Sports Resort.rvz
Start monitoring process.
/home/username/.var/app/net.lutris.Lutris/data/lutris/runners/dolphin/dolphin-emu: error while loading shared libraries: libQt6Widgets.so.6: cannot open shared object file: No such file or directory
Monitored process exited.
Initial process has exited (return code: 32512)
All processes have quit
Exit with return code 32512
DEBUG 2025-01-10 17:41:23,749 [monitored_command.on_stop:228]:Process 48 has terminated with code 32512
DEBUG 2025-01-10 17:41:25,548 [game.beat:927]:Game thread stopped
WARNING 2025-01-10 17:41:25,548 [game.on_game_quit:965]:Game still running (state: running)
INFO 2025-01-10 17:41:25,549 [game.stop:938]:Stopping Wii Sports Resort (dolphin)
DEBUG 2025-01-10 17:41:25,550 [game.stop_game:894]:Wii Sports Resort (dolphin) has run for 2 seconds
WARNING 2025-01-10 17:41:25,550 [game.stop_game:896]:The game has run for a very short time, did it crash?
DEBUG 2025-01-10 17:41:25,551 [game.stop_game:906]:Playtime: Less than a minute
DEBUG 2025-01-10 17:41:25,552 [game.on_game_quit:983]:Wii Sports Resort stopped at Fri, 10 Jan 2025 17:41:25
DEBUG 2025-01-10 17:41:25,575 [application.on_game_stopped:793]:Removing 7 from running IDs
DEBUG 2025-01-10 17:41:25,622 [path_cache.add_to_path_cache:47]:Adding Wii Sports Resort (dolphin) to path cache

Steam and Desmume are working just fine for me, in case it’s relevant. Let me know if you need any additional information.

This line is your emulator-killer:

home/username/.var/app/net.lutris.Lutris/data/lutris/runners/dolphin/dolphin-emu: error while loading shared libraries: libQt6Widgets.so.6: cannot open shared object file: No such file or directory

Start by installing that dependency (you might need others) and see how it goes

sudo apt install libqt6widgets

Edit: Horrible assumption on what distro you are running, sorry. Your software install command will vary - use the software update/install tool if you are unfamiliar with CLI

or second solution, use Dolphin Flatpak instead of Lutris Dolpin runner:

  1. uninstall Dolphin Lutris runner
  2. install Dolphin Flatpak:
    flatpak install flathub org.DolphinEmu.dolphin-emu
  3. make sure you use latest Lutris version 0.5.18
  4. in Lutris, in Lutris Dolphin runner options, “Custom executable for the runner” field:
    org.DolphinEmu.dolphin-emu

I’m running Arch Linux, which apparently doesn’t include that package.

Aye sorry :slight_smile: pacman -S dolphin-emu then, and custom exe :slight_smile:

My side hustle PC is EndeavourOS