如何在 Ubuntu 上安装 libQt5Quick.so.5 和其他 QtQuick 依赖项?

如何在 Ubuntu 上安装 libQt5Quick.so.5 和其他 QtQuick 依赖项?

我正在尝试运行一个可执行文件,但它缺少一些 QtQuick 库的依赖项:

ldd ./UltraNoteInfinity
./UltraNoteInfinity: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.14' not found (required by ./UltraNoteInfinity)
    linux-vdso.so.1 (0x00007ffea13aa000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff37b8c1000)
    libQt5QuickControls2.so.5 => not found
    libQt5Multimedia.so.5 => not found
    libQt5WebEngine.so.5 => not found
    libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ff37b8a5000)
    libQt5Quick.so.5 => not found
    libQt5Qml.so.5 => not found

我做到了

sudo apt-get install libqt5

但它没有安装那些缺少的库

我在 Ubuntu 20.04

./UltraNoteInfinity 
./UltraNoteInfinity: error while loading shared libraries: libQt5QuickControls2.so.5: cannot open shared object file: No such file or directory
lz@vm:~/Downloads/UltraNoteInfin

我在谷歌上也找不到关于此的任何信息

答案1

https://packages.ubuntu.com为您的问题提供答案 - 安装对应包

sudo apt-get install libqt5quickcontrols2-5 libqt5multimedia5 libqt5webengine5 libqt5quick5 libqt5qml5

然后重试启动您的应用程序。

相关内容