probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.2k stars 409 forks source link

Unable to find correct version of libraries for Qt 5.13 #414

Open YonicDev opened 4 years ago

YonicDev commented 4 years ago

I'm using Ubuntu 16.04 LTS to make an AppImage of an application built in Qt 5.13.2 (pre-compiled).

I've set the LD_LIBRARY_PATH variable to where I keep the Qt 5 libraries as suggested here, but linuxdeployqt (release build 6) seems to look for libraries of the wrong version. Unsetting it and using linuxdeployqt continuous build produces the same output, possibly because linuxdeployqt's Qt libraries might be too old?

Here's the verbose command output for the continuous build:

linuxdeployqt 6 (commit 5195ec1), build 712 built on 2019-11-22 21:06:09 UTC
Desktop file as first argument: "mpdr-appdir/usr/share/applications/mpdr.desktop"
desktopExecEntry: "mpdr-qt"
desktopIconEntry: "mpdr-qt"
Found binary from desktop file: "/home/yonic/Documentos/mpdr-appdir/usr/bin/mpdr-qt"
FHS-like mode with PREFIX, fhsPrefix: "/home/yonic/Documentos/mpdr-appdir/usr"
app-binary: "/home/yonic/Documentos/mpdr-appdir/usr/bin/mpdr-qt"
appDirPath: "/home/yonic/Documentos/mpdr-appdir"
relativeBinPath: "usr/bin/mpdr-qt"
Keeping existing AppRun
Found icons from desktop file: ("/home/yonic/Documentos/mpdr-appdir/mpdr-qt.svg", "/home/yonic/Documentos/mpdr-appdir/usr/icons/hicolor/scalable/apps/mpdr-qt.svg")
preExistingToplevelIcon: "/home/yonic/Documentos/mpdr-appdir/mpdr-qt.svg"
Log: Using qmake:  "/usr/bin/qmake"
ERROR: ldd outputLine: "/home/yonic/Documentos/mpdr-appdir/usr/bin/mpdr-qt: /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5: version `Qt_5' not found (required by /home/yonic/Qt/5.13.2/gcc_64/lib/libQt5Help.so.5)"
ERROR: for binary: "/home/yonic/Documentos/mpdr-appdir/usr/bin/mpdr-qt"
ERROR: Please ensure that all libraries can be found by ldd. Aborting.

I'm unable to use earlier versions of Qt because it uses the Qt WebEngine module which isn't available prior to 5.13.2.

probonopd commented 4 years ago

Hi @YonicDev, thanks for your interest in linuxdeployqt.

I'm unable to use earlier versions of Qt because it uses the Qt WebEngine module which isn't available prior to 5.13.2.

I see. Then your app is relying on bleeding-edge stuff. Maybe you can ask https://launchpad.net/~beineri to create a build of 5.13.2 for Xenial.