paraview安装好了但无法使用
-
你在什么环境下编译的,我看报错像是你的qt有问题,paraview用的qt的框架,如果没有qt肯定没办法呼出对应的gui的
-
谢谢两位老师的回答,我的是ubuntu20.04.6LTS,qt应该是有的,我又根据网上的教程查了查,发现还是无法打开,具体如下:qmake --version后显示
QMake version 3.1 Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu
export QT_DEBUG_PLUGINS=1后还是报错
Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/yl/OpenFOAM/v2206/ThirdParty-v2206/platforms/linux64Gcc/ParaView-5.10.1/bin/platforms" ... loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Aborted
然后又查了依赖
ldd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
显示
linux-vdso.so.1 (0x00007ffdc1e72000) libQt5XcbQpa.so.5 => /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 (0x00007f8ff53f7000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f8ff4e0c000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f8ff48c3000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8ff46e1000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8ff44ed000) libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f8ff44a6000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f8ff43e7000) libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f8ff434b000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8ff4328000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f8ff4323000) libxcb-xinput.so.0 => /lib/x86_64-linux-gnu/libxcb-xinput.so.0 (0x00007f8ff42fd000) libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f8ff42f6000) libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f8ff40f1000) libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f8ff40ec000) libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f8ff40e7000) libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f8ff40d4000) libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f8ff40cb000) libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f8ff40bc000) libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f8ff40b7000) libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f8ff40ad000) libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f8ff40a3000) libxcb-xinerama.so.0 => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f8ff409e000) libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f8ff407e000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f8ff4054000) libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f8ff3e4a000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f8ff3d0d000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8ff3bbe000) libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f8ff3bb3000) libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f8ff3b93000) libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f8ff3b88000) libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f8ff3b46000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f8ff3a1c000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8ff3a01000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f8ff3977000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f8ff393f000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8ff3923000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f8ff381f000) libicui18n.so.66 => /lib/x86_64-linux-gnu/libicui18n.so.66 (0x00007f8ff3520000) libicuuc.so.66 => /lib/x86_64-linux-gnu/libicuuc.so.66 (0x00007f8ff333a000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8ff3332000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f8ff32ae000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f8ff3298000) /lib64/ld-linux-x86-64.so.2 (0x00007f8ff55a9000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f8ff326a000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f8ff3261000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f8ff320e000) libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f8ff3008000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8ff3002000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f8ff2ffa000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f8ff2fe0000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f8ff2f6b000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f8ff2eb3000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f8ff2e7f000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f8ff2e52000) libicudata.so.66 => /lib/x86_64-linux-gnu/libicudata.so.66 (0x00007f8ff1391000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f8ff12e0000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8ff12d6000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f8ff12ad000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f8ff128c000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f8ff116e000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f8ff1149000)
ldd /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
linux-vdso.so.1 (0x00007ffe54dce000) libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f7452b40000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f7452a81000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f7452496000) libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f74523fa000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f7451eaf000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7451e8c000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f7451e87000) libxcb-xinput.so.0 => /lib/x86_64-linux-gnu/libxcb-xinput.so.0 (0x00007f7451e63000) libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f7451e5c000) libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f7451c57000) libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f7451c50000) libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f7451c4b000) libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f7451c38000) libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f7451c31000) libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f7451c22000) libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f7451c1d000) libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f7451c11000) libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f7451c07000) libxcb-xinerama.so.0 => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f7451c02000) libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f7451be4000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7451bba000) libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f74519b0000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f7451871000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7451722000) libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f7451717000) libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f74516f9000) libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f74516ee000) libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f74516ac000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f7451580000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f745139e000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7451383000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7451191000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f7451163000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f745115a000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f7451120000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7451104000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f745107c000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f7450f78000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f7450f27000) libicui18n.so.66 => /lib/x86_64-linux-gnu/libicui18n.so.66 (0x00007f7450c28000) libicuuc.so.66 => /lib/x86_64-linux-gnu/libicuuc.so.66 (0x00007f7450a40000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7450a3a000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f74509b6000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f74509a0000) /lib64/ld-linux-x86-64.so.2 (0x00007f7452d33000) libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f745079a000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f7450792000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f745078a000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f7450770000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f74506fd000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f7450645000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f745060f000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f74505e2000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f7450533000) libicudata.so.66 => /lib/x86_64-linux-gnu/libicudata.so.66 (0x00007f744ea72000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f744ea68000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f744ea3d000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f744ea1c000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f744e8fe000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f744e8db000)
依赖也没有缺少的,但是依然打不开。