Hi, I am helping to maintain the org.openchemistry.Avogadro2 Flatpak of Avogadro. I’m having an issue and was hoping someone might be able to provide some help or advice as to what’s going on.
Our beta branch is currently building against version 6.7 of the KDE runtime, but we’d like to bump it to 6.8, see my PR here. Running the beta with 6.8 using flatpak run --runtime-version=6.8 org.openchemistry.Avogadro2//beta works fine (haven’t checked everything in detail but it starts correctly), but running the test build created by Buildbot[1] results in the error:
$ flatpak run org.openchemistry.Avogadro2//test
avogadro2: error while loading shared libraries: libAvogadroQtOpenGL.so.1: cannot open shared object file: No such file or directory
Over on the KDE discourse the announcement from @bbhtt included the note that
So this clearly had an effect on the way that Avogadro is being bundled; the beta branch has everything in /app/lib whereas this test branch has stuff split between /app/lib and /app/lib64, and the library that can’t be loaded is now in the latter.
The thing is, I don’t know why this should break the Flatpak; a normal local non-Flatpak build (against Qt 6.8) also splits things between lib and lib64, but the resulting binary launches absolutely fine.
The manifest doesn’t have anything weird in it I don’t think. It uses builddir: true and no-make-install: true because the umbrella project doesn’t have install command defined, which means there’s a post-install step where the entire prefix directory is copied into /app. But I don’t see why those things should pose an issue.
Is it maybe incorrect to use /app/lib64 with a Flatpak?
Downloadable using
flatpak install --user https://dl.flathub.org/build-repo/145201/org.openchemistry.Avogadro2.flatpakref↩︎