由于 libqtquickcontrols2plugin.so 中未定义的符号,缩放未启动

由于 libqtquickcontrols2plugin.so 中未定义的符号,缩放未启动

我使用 进行了最小 Debian 稳定系统安装debootstrap,但zoom无法在这样的环境中启动:


$ QT_DEBUG_PLUGINS=1 /opt/zoom/ZoomLauncher


$ tail ~/.zoom/logs/zoom_stdout_stderr.log
    ],
    "version": 330752
}


zoom started.
loaded library "/opt/zoom/QtQuick/Controls.2/libqtquickcontrols2plugin.so"
/opt/zoom/zoom : symbol lookup error: /opt/zoom/QtQuick/Controls.2/libqtquickcontrols2plugin.so: undefined symbol: _ZN13QQmlDirParserC1Ev, version Qt_5_PRIVATE_API
Something went wrong while running zoom, exit code is 127.
ZoomLauncher exit.

似乎QmlDirParser某些Qt_5库中的某些功能在我的最小安装环境中不存在,或者版本不匹配。

任何想法?

我的zoom是从标准位置安装的https://zoom.us/client/latest/zoom_amd64.deb, 和

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

$ ldd /opt/zoom/QtQuick/Controls.2/libqtquickcontrols2plugin.so 
        linux-vdso.so.1 (0x00007ffd875ee000)
        libQt5Quick.so.5 => /lib/x86_64-linux-gnu/libQt5Quick.so.5 (0x00007f5479215000)
        libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f5478b53000)
        libQt5Qml.so.5 => /lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007f54786f8000)
        libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f5478570000)
        libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f5478025000)
        libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f5477f9e000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5477f7a000)
        libQt5QuickTemplates2.so.5 => /lib/x86_64-linux-gnu/libQt5QuickTemplates2.so.5 (0x00007f5477def000)
        libQt5QuickControls2.so.5 => /lib/x86_64-linux-gnu/libQt5QuickControls2.so.5 (0x00007f5477dbb000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5477bee000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5477aaa000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5477a90000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f54778b9000)
        libQt5QmlModels.so.5 => /lib/x86_64-linux-gnu/libQt5QmlModels.so.5 (0x00007f5477834000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f54777fa000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f54777dd000)
        libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f54776f5000)
        libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007f54776e3000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f54776db000)
        libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f5477688000)
        libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f5477671000)
        libicui18n.so.67 => /lib/x86_64-linux-gnu/libicui18n.so.67 (0x00007f547736b000)
        libicuuc.so.67 => /lib/x86_64-linux-gnu/libicuuc.so.67 (0x00007f5477182000)
        libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f54770f7000)
        libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f547701a000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f5476eeb000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f54799df000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f5476e33000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f5476dff000)
        libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f5476d3c000)
        libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f5476d0e000)
        libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f5476c34000)
        libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f5476c04000)
        libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f5476bfe000)
        libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f5476bef000)
        libicudata.so.67 => /lib/x86_64-linux-gnu/libicudata.so.67 (0x00007f54750d4000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f5475061000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f5474f1e000)
        libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f5474f10000)
        libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f5474f09000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f5474eed000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f5474ec2000)
        libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f5474e9f000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f5474e9a000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f5474c94000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f5474c7b000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f5474c6e000)

# All qt libs under my Debian bullseye, and their versions
 libqt5core5a:amd64_5.15.2+dfsg-9
 libqt5dbus5:amd64_5.15.2+dfsg-9
 libqt5gui5:amd64_5.15.2+dfsg-9
 libqt5network5:amd64_5.15.2+dfsg-9
 libqt5printsupport5:amd64_5.15.2+dfsg-9
 libqt5qml5:amd64_5.15.2+dfsg-6
 libqt5qmlmodels5:amd64_5.15.2+dfsg-6
 libqt5quick5:amd64_5.15.2+dfsg-6
 libqt5quickcontrols2-5:amd64_5.15.2+dfsg-2
 libqt5quicktemplates2-5:amd64_5.15.2+dfsg-2
 libqt5svg5:amd64_5.15.2-3
 libqt5waylandclient5:amd64_5.15.2-3
 libqt5widgets5:amd64_5.15.2+dfsg-9
 libqt5x11extras5:amd64_5.15.2-2

答案1

我也有同样的问题。我做了什么爱德华多·特拉帕尼建议,但没有用。

我解决了卸载最后一个软件包(版本:5.14.7.2928)、删除 /opt/zoom 中的所有文件并重新安装的问题。之前安装的是5.13.11.1288。

答案2

符号查找错误:/opt/zoom/QtQuick/Controls.2/libqtquickcontrols2plugin.so:未定义符号:_ZN13QQmlDirParserC1Ev,版本Qt_5_PRIVATE_API

这与哪个操作系统(debian stable)系统或其安装方法是什么无关。

这是 Zoom 本身的问题——Zoom 库是独立的,不需要底层操作系统的任何库。出现此问题的zoom版本是v5.14.2.2046:

$ apt-cache policy zoom
zoom:
  Installed: 5.14.2.2046
  Candidate: 5.14.2.2046
  Version table:
 *** 5.14.2.2046 100
        100 /var/lib/dpkg/status

今天,我从zoom官网安装了一个全新的版本,v5.14.5.2430:

Unpacking zoom (5.14.5.2430) over (5.14.2.2046) ...
run post uninstall script, action is upgrade ...
Setting up zoom (5.14.5.2430) ...

但问题仍然存在,正如上面报告的那样。

幸运的是,我有一个以前可以工作的旧版本,当我尝试它时,它工作得很好:

$ apt-cache policy zoom
zoom:
  Installed: 5.13.7.683
  Candidate: 5.13.7.683
  Version table:
 *** 5.13.7.683 100
        100 /var/lib/dpkg/status

我相信问题来自/opt/zoom/QtQuickZoom v5.14+ 新引入的组件,而在我的工作 Zoom v5.13 中,根本没有这样的目录,只有/opt/zoom/Qt/.

答案3

您可以添加/opt/zoom到库路径。其中bash将是:

export LD_LIBRARY_PATH=/opt/zoom:$LD_LIBRARY_PATH

然后运行:

/opt/zoom/zoom

您也可以将其放入包装脚本中。

相关内容