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.

  • anamethatisnt@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 day ago

    Some alternatives:

    1. Download the offline installer from gog.com and install EU4 as a native package outside flatpak, then it should find your system lbiraries.
    2. Force Heroic to install the Windows version of EU4
    3. Install Flatseal and break the isolation of your Flatpak Heroic install so that you can point to the system library (not recommended)
    • libretech@reddthat.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      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!

    • libretech@reddthat.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      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.comOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        Checked the logs and it didn’t have any insight into the error that I could make out, so the hunt continues!