tl;dr
libGLU.so.1 can't be accessed from within Flatpak for Heroic Launcher, but game executable can reach it when launched directly. Can't figure out how to give it access, and have never felt more like a hairless monkey in over its head.
Hi all,
Very sorry if this isn't the right place for this question, but I have been pulling my hair out yesterday and today trying to give a flatpak for Heroic Launcher access to libGLU.so.1. I am new to flatpak and Linux Mint (slowly trying to de-Microsoft), and it's mostly been smooth except for this one issue. I installed Heroic through the Mint Software Manager, linked to my GOG account and downloaded EU4 (native Linux version). There was a known issue with the Paradox Launcher and a missing symlink, which I managed, but trying to start EU4 through the launcher fails with error (./eu4: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory). When I run ldd on the executable from within the flatpak in terminal, I get libGLU.so.1 => not found. When I do it from my host, it resolves correctly (libGLU.so.1 => /lib/x86_64-linux-gnu/libGLU.so.1 (0x0000747db439c000).
I tried to add an override directly to the library, but first got an error that Path "/usr" is reserved by Flatpak. Then I tried to create a separate directory and copy the libs there and share it, which I think worked but the executable still didn't pick up the lib path. (Also, not sure it it's relevant but I think for versioning in the /usr file path, the libGLU.so.1 file is a symlink to the actual versioned file, libGLU.so.1.3.1, which is also in the same directory). Now I am trying to figure out how extensions work with Flatpak and it's not going well...
So I very clearly have no idea what I am doing, and feel like this must be a simple fix if I just knew the correct way to approach this. Any advice (including telling me that I'm insane for missing something stupidly easy), would be greatly appreciated.
6 Comments
anamethatisnt@sopuli.xyz · 3 pts · 272d
Some alternatives:
libretech@reddthat.com · 2 pts · 272d
Thank you! I actually don't even need to install with the offline installers to launch the game; if I just navigate to where it was installed by Heroic and manually click the executable it will launch properly. I just wanted to get it working through the launcher to hopefully be able to run multiplayer (and maybe have a slightly easier time with mods?) And honestly, it's just been driving me nuts not to be able to get around this sandboxing in some way. But appreciate your help!
just_another_person@lemmy.world · 2 pts · 272d
Try setting the game to use the Steam Linux Runtime under the compatibility settings in Heroic. See if that works.
libretech@reddthat.com · 1 pts · 272d
Thank you! I gave it a shot and it still crashed (though it showed a different crash screen, so I think that's progress? Also if I left the Paradox crash reporter open for long enough it started to play the soundtrack, which was nice).
libretech@reddthat.com · 1 pts · 272d
Checked the logs and it didn't have any insight into the error that I could make out, so the hunt continues!
libretech@reddthat.com · 1 pts · 214d
Just in case anyone else is running into this issue, after many months (and updates to Heroic, the Paradox Launcher, and Linux Mint) I was still having issues with this (though no specific libGLU errors) when I stumbled on another post that mentioned multisampling. My laptop has both an integrated and dedicated GPU and I guess this sometimes causes issues? The solution seems to have been going into settings.txt in the .var/com.heroicgameslauncher.hgl/.local/share/Paradox Interactive/Europa Universalis IV GOG/ and swapping multi_sampling from 4 to 0. Definitely don't understand why this works (though will try to dive more into it), but figured I'd follow up with what ended up working for me!