I made a simple "hello world" with Qt Designer and I compiled it with auto-py-to-exe. No error message during compilation but when I double click on the created executable then I have this in my terminal:
(venv) (base) saltz#saltz:~/Bureau/70 5 applications Qt/test/output$ ./main
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Abandon (core dumped)
I tried this after my research on the internet
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# export
QT_DEBUG_PLUGINS=1
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# ./main
QFactoryLoader::QFactoryLoader() checking directory path "/home/saltz/Bureau/70 5
applications Qt/test/output/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Abandon (core dumped)
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# ln -sf
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# ./main
QFactoryLoader::QFactoryLoader() checking directory path "/home/saltz/Bureau/70 5
applications Qt/test/output/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Abandon (core dumped)
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output#
and this
base) saltz#saltz:~/Bureau/70 5 applications Qt/test/output$ cd /usr/lib/x86_64-
linux-gnu/qt5/plugins/platforms
(base) saltz#saltz:/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms$ ldd libqxcb.so
linux-vdso.so.1 (0x00007ffda8389000)
libQt5XcbQpa.so.5 => /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 (0x00007ff6a38e6000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007ff6a32f6000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007ff6a2da6000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff6a2bbe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff6a29c6000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
(0x00007ff6a297e000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007ff6a28be000)
libQt5DBus.so.5 => /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007ff6a281e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff6a27f6000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007ff6a27ee000)
libxcb-xinput.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xinput.so.0
(0x00007ff6a27c6000)
libxcb-icccm.so.4 => /usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007ff6a27be000)
libxcb-image.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007ff6a25b6000)
libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007ff6a25ae000)
libxcb-keysyms.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1
(0x00007ff6a25a6000)
libxcb-randr.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007ff6a258e000)
libxcb-render-util.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render-util.so.0
(0x00007ff6a2586000)
libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0
(0x00007ff6a2576000)
libxcb-shape.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007ff6a256e000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007ff6a255e000)
libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0
(0x00007ff6a254e000)
libxcb-xinerama.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xinerama.so.0
(0x00007ff6a2546000)
libxcb-xkb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007ff6a2526000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007ff6a24f6000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007ff6a22e6000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007ff6a21a6000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff6a2056000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007ff6a2046000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007ff6a2026000)
libxkbcommon-x11.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0
(0x00007ff6a2016000)
libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007ff6a1fce000)
libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff6a1e9e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff6a1e7e000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007ff6a1df6000)
libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007ff6a1dbe000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff6a1d9e000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007ff6a1c96000)
libicui18n.so.66 => /usr/lib/x86_64-linux-gnu/libicui18n.so.66 (0x00007ff6a1996000)
libicuuc.so.66 => /usr/lib/x86_64-linux-gnu/libicuuc.so.66 (0x00007ff6a17ae000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff6a17a6000)
libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007ff6a171e000)
libdouble-conversion.so.3 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.3
(0x00007ff6a1706000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff6a3ac6000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff6a16d6000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007ff6a16c6000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007ff6a166e000)
libxcb-util.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007ff6a1466000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007ff6a145e000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007ff6a1456000)
libbsd.so.0 => /usr/lib/x86_64-linux-gnu/libbsd.so.0 (0x00007ff6a1436000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff6a13be000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
(0x00007ff6a1306000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007ff6a12ce000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007ff6a129e000)
libicudata.so.66 => /usr/lib/x86_64-linux-gnu/libicudata.so.66 (0x00007ff69f7d6000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007ff69f726000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff69f716000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007ff69f6e6000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007ff69f6be000)
libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007ff69f59e000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007ff69f576000)
(base) saltz#saltz:/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms$
But I don't understand the "ldd libxcb.so" command .
What can I do now ? My OS is lubuntu 20.04 .
i have the same problem with gambas3.
This application failed to start because it could not find or load the Qt platform plugin "xcb".
ldd the file /usr/lib/qt5/plugins/platforms/libqxcb.so
gaves missing libraries
libxcb-render-util.so.0 => not found
libxcb-image.so.0 => not found
libxcb-icccm.so.4 => not found
installing them fixes the problem.-
Related
I installed R on redhat using the following commands:
yum install R
when I run the R, I get an error like so:
/usr/lib64/R/bin/exec/R: error while loading shared libraries: libRblas.so: cannot open shared object file: No such file or directory
Finally I run the following commands:ldd /usr/lib64/R/lib/libR.so
I get the information:
libRblas.so => not found
libgfortran.so.3 => /lib64/libgfortran.so.3 (0x00007ffb64852000)
libm.so.6 => /lib64/libm.so.6 (0x00007ffb64550000)
libquadmath.so.0 => /lib64/libquadmath.so.0 (0x00007ffb64314000)
libreadline.so.6 => /lib64/libreadline.so.6 (0x00007ffb640ce000)
libtre.so.5 => /lib64/libtre.so.5 (0x00007ffb63ebe000)
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007ffb63c47000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007ffb639e5000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007ffb637bf000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007ffb635af000)
libz.so.1 => /lib64/libz.so.1 (0x00007ffb63399000)
librt.so.1 => /lib64/librt.so.1 (0x00007ffb63191000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007ffb62f8d000)
libicuuc.so.50 => /lib64/libicuuc.so.50 (0x00007ffb62c14000)
libicui18n.so.50 => /lib64/libicui18n.so.50 (0x00007ffb62815000)
libgomp.so.1 => /lib64/libgomp.so.1 (0x00007ffb625ef000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ffb623d9000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ffb621bd000)
libc.so.6 => /lib64/libc.so.6 (0x00007ffb61df0000)
/lib64/ld-linux-x86-64.so.2 (0x00007ffb651f2000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007ffb61bc6000)
libicudata.so.50 => /lib64/libicudata.so.50 (0x00007ffb605f3000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007ffb602ec000)
I'am not good at linux, so I don't know how to deal with it.
How can I start the R successfully? Thanks.
Finally, I run
mv /usr/lib64/R/lib/libRrefblas.so /usr/lib64/R/lib/libRblas.so and let R run successfully!
I installed Qt5.7 including the Qtcreator using the installation tool "qt-unified-linux-x64-3.0.5-online.run" into the folder /usr/local/Qt
When I run qtcreator in verbose mode (export QT_DEBUG_PLUGINS=1), I get the following output:
Cannot load library /usr/local/Qt/5.7/gcc_64/plugins/platforms/libqxcb.so: (/usr/local/Qt/5.7/gcc_64/lib/libQt5XcbQpa.so.5: symbol _ZTI18QPlatformClipboard, version Qt_5 not defined in file libQt5Gui.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/usr/local/Qt/5.7/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /usr/local/Qt/5.7/gcc_64/plugins/platforms/libqxcb.so: (/usr/local/Qt/5.7/gcc_64/lib/libQt5XcbQpa.so.5: symbol _ZTI18QPlatformClipboard, version Qt_5 not defined in file libQt5Gui.so.5 with link time reference)"
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, xcb, vnc.
Running ldd /usr/local/Qt/5.7/gcc_64/plugins/platforms/libqxcb.so returns
linux-vdso.so.1 => (0x00007ffdda390000)
libQt5XcbQpa.so.5 => /usr/local/Qt/5.7/gcc_64/lib/libQt5XcbQpa.so.5 (0x00007f9e44a33000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f9e44831000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f9e44621000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f9e44419000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f9e441ff000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f9e43fb3000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9e43d91000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9e43b8d000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f9e4398b000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9e43783000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9e43472000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f9e43268000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9e43056000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9e42d1c000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f9e42ad9000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f9e4282f000)
libEGL.so.1 => /usr/lib/nvidia-384/libEGL.so.1 (0x00007f9e4262a000)
libQt5Gui.so.5 => /usr/local/Qt/5.7/gcc_64/lib/libQt5Gui.so.5 (0x00007f9e41e9e000)
libQt5DBus.so.5 => /usr/local/Qt/5.7/gcc_64/lib/libQt5DBus.so.5 (0x00007f9e41c1e000)
libQt5Core.so.5 => /usr/local/Qt/5.7/gcc_64/lib/libQt5Core.so.5 (0x00007f9e41500000)
libGL.so.1 => /usr/lib/nvidia-384/libGL.so.1 (0x00007f9e411be000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9e40fa1000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9e40c1f000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9e40916000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9e40700000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9e40336000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f9e40131000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f9e450fc000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9e3ff2d000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9e3fd27000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9e44f84000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9e3fab7000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f9e3f88e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9e3f674000)
libpng12.so.0 => /usr/lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f9e3f44f000)
libGLdispatch.so.0 => /usr/lib/nvidia-384/libGLdispatch.so.0 (0x00007f9e3f181000)
libicui18n.so.56 => /usr/local/Qt/5.7/gcc_64/lib/libicui18n.so.56 (0x00007f9e3ece7000)
libicuuc.so.56 => /usr/local/Qt/5.7/gcc_64/lib/libicuuc.so.56 (0x00007f9e3e92f000)
libicudata.so.56 => /usr/local/Qt/5.7/gcc_64/lib/libicudata.so.56 (0x00007f9e3cf4c000)
libnvidia-tls.so.384.130 => /usr/lib/nvidia-384/tls/libnvidia-tls.so.384.130 (0x00007f9e3cd48000)
libnvidia-glcore.so.384.130 => /usr/lib/nvidia-384/libnvidia-glcore.so.384.130 (0x00007f9e3ae8c000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f9e3ac6a000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f9e3aa48000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f9e3a767000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f9e3a553000)
I can't pin the error. Relevant threads are for example https://forum.qt.io/topic/71369/failed-to-load-qt-platform-plugin-xcb/2, but libQt5XcbQpa.so.5.6.1 is not missing in my case. Any ideas?
The solution for me was to explictly point to the correct shared libraries using:
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ qtcreator
See https://stackoverflow.com/a/52422726/2135504
I ran into the problem on Ubuntu 16, error xcb. Using the verbose key, I realized that the package was missing: libxcb-xinerama0. After installation, everything worked.
I have an application that uses VTK and Qt 5. While running this I get following backtrace
#0 0x00007fffec00a66b in raise () at /lib64/libc.so.6
#1 0x00007fffec00c381 in abort () at /lib64/libc.so.6
#2 0x00007fffec054a57 in __libc_message () at /lib64/libc.so.6
#3 0x00007fffec05b9aa in () at /lib64/libc.so.6
#4 0x00007fffec06490a in realloc () at /lib64/libc.so.6
#5 0x00007fffed5c6661 in QListData::realloc_grow(int) () at /lib64/libQt5Core.so.5
#6 0x00007fffed5c66ff in QListData::append(int) () at /lib64/libQt5Core.so.5
#7 0x00007fffed6856c0 in QList<QResourceRoot*>::append(QResourceRoot* const&) () at /lib64/libQt5Core.so.5
#8 0x00007fffed6814cd in qRegisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*) () at /lib64/libQt5Core.so.5
#9 0x00007fffed558563 in _GLOBAL__sub_I_qrc_mimetypes.cpp () at /lib64/libQt5Core.so.5
#10 0x00007ffff7de5c13 in _dl_init () at /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff7dd5f0a in _dl_start_user () at /lib64/ld-linux-x86-64.so.2
#12 0x0000000000000001 in ()
#13 0x00007fffffffdf5f in ()
#14 0x0000000000000000 in ()
It looks like there is some mismatch between QT 4 and 5 causing error in library initialization. So I checked the lddtree output
simulator-ui => ./simulator-ui (interpreter => /lib64/ld-linux-x86-64.so.2)
libvtkGUISupportQt.so.1 => /usr/lib64/vtk/libvtkGUISupportQt.so.1
libvtkInteractionStyle.so.1 => /usr/lib64/vtk/libvtkInteractionStyle.so.1
libvtkRenderingOpenGL2.so.1 => /usr/lib64/vtk/libvtkRenderingOpenGL2.so.1
libOSMesa.so.8 => /lib64/libOSMesa.so.8
libglapi.so.0 => /lib64/libglapi.so.0
libselinux.so.1 => /lib64/libselinux.so.1
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0
ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
libLLVM-5.0.so => /lib64/libLLVM-5.0.so
libffi.so.6 => /lib64/../lib64/libffi.so.6
libedit.so.0 => /lib64/../lib64/libedit.so.0
libncurses.so.6 => /lib64/libncurses.so.6
libtinfo.so.6 => /lib64/../lib64/libtinfo.so.6
libGLU.so.1 => /lib64/libGLU.so.1
libGL.so.1 => /lib64/libGL.so.1
libGLX.so.0 => /lib64/libGLX.so.0
libGLdispatch.so.0 => /lib64/libGLdispatch.so.0
libz.so.1 => /lib64/libz.so.1
libjpeg.so.62 => /lib64/libjpeg.so.62
libpng16.so.16 => /lib64/libpng16.so.16
libtiff.so.5 => /lib64/libtiff.so.5
libjbig.so.2.1 => /lib64/libjbig.so.2.1
libvtkglew.so.1 => /usr/lib64/vtk/libvtkglew.so.1
libvtkIOImport.so.1 => /usr/lib64/vtk/libvtkIOImport.so.1
libQt5Svg.so.5 => /lib64/libQt5Svg.so.5
libQt5Charts.so.5 => /lib64/libQt5Charts.so.5
libmathematica++.so => /home/sensiaas/projects/senschedule/build/mathematica++/libmathematica++.so
libboost_filesystem.so.1.64.0 => /lib64/libboost_filesystem.so.1.64.0
libboost_system.so.1.64.0 => /lib64/libboost_system.so.1.64.0
libboost_serialization.so.1.64.0 => /lib64/libboost_serialization.so.1.64.0
libvtkFiltersExtraction.so.1 => /usr/lib64/vtk/libvtkFiltersExtraction.so.1
libvtkFiltersStatistics.so.1 => /usr/lib64/vtk/libvtkFiltersStatistics.so.1
libvtkImagingFourier.so.1 => /usr/lib64/vtk/libvtkImagingFourier.so.1
libvtkalglib.so.1 => /usr/lib64/vtk/libvtkalglib.so.1
libvtkImagingCore.so.1 => /usr/lib64/vtk/libvtkImagingCore.so.1
libSM.so.6 => /lib64/libSM.so.6
libICE.so.6 => /lib64/libICE.so.6
libX11.so.6 => /lib64/libX11.so.6
libxcb.so.1 => /lib64/libxcb.so.1
libXau.so.6 => /lib64/libXau.so.6
libXext.so.6 => /lib64/libXext.so.6
libXt.so.6 => /lib64/libXt.so.6
* libQtGui.so.4 => /lib64/libQtGui.so.4
libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0
libpcre.so.1 => /lib64/libpcre.so.1
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0
libfreetype.so.6 => /lib64/libfreetype.so.6
libbz2.so.1 => /lib64/libbz2.so.1
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0
libXi.so.6 => /lib64/libXi.so.6
libXrender.so.1 => /lib64/libXrender.so.1
libXrandr.so.2 => /lib64/libXrandr.so.2
libXfixes.so.3 => /lib64/libXfixes.so.3
libXcursor.so.1 => /lib64/libXcursor.so.1
libXinerama.so.1 => /lib64/libXinerama.so.1
libfontconfig.so.1 => /lib64/libfontconfig.so.1
libexpat.so.1 => /lib64/libexpat.so.1
* libQtNetwork.so.4 => /lib64/libQtNetwork.so.4
libssl.so.10 => /lib64/libssl.so.10
libcrypto.so.10 => /lib64/libcrypto.so.10
* libQtCore.so.4 => /lib64/libQtCore.so.4
libvtkRenderingCore.so.1 => /usr/lib64/vtk/libvtkRenderingCore.so.1
libvtkFiltersSources.so.1 => /usr/lib64/vtk/libvtkFiltersSources.so.1
libvtkFiltersGeneral.so.1 => /usr/lib64/vtk/libvtkFiltersGeneral.so.1
libvtkCommonComputationalGeometry.so.1 => /usr/lib64/vtk/libvtkCommonComputationalGeometry.so.1
libvtkCommonColor.so.1 => /usr/lib64/vtk/libvtkCommonColor.so.1
libvtkFiltersGeometry.so.1 => /usr/lib64/vtk/libvtkFiltersGeometry.so.1
libvtkFiltersCore.so.1 => /usr/lib64/vtk/libvtkFiltersCore.so.1
libvtkIOImage.so.1 => /usr/lib64/vtk/libvtkIOImage.so.1
libvtkCommonExecutionModel.so.1 => /usr/lib64/vtk/libvtkCommonExecutionModel.so.1
libvtkCommonDataModel.so.1 => /usr/lib64/vtk/libvtkCommonDataModel.so.1
libvtkCommonTransforms.so.1 => /usr/lib64/vtk/libvtkCommonTransforms.so.1
libvtkCommonMisc.so.1 => /usr/lib64/vtk/libvtkCommonMisc.so.1
libvtkCommonMath.so.1 => /usr/lib64/vtk/libvtkCommonMath.so.1
libvtkCommonSystem.so.1 => /usr/lib64/vtk/libvtkCommonSystem.so.1
libvtkCommonCore.so.1 => /usr/lib64/vtk/libvtkCommonCore.so.1
libvtksys.so.1 => /usr/lib64/vtk/libvtksys.so.1
libvtkDICOMParser.so.1 => /usr/lib64/vtk/libvtkDICOMParser.so.1
libvtkmetaio.so.1 => /usr/lib64/vtk/libvtkmetaio.so.1
libQt5Widgets.so.5 => /lib64/libQt5Widgets.so.5
libQt5Gui.so.5 => /lib64/libQt5Gui.so.5
libharfbuzz.so.0 => /lib64/libharfbuzz.so.0
libgraphite2.so.3 => /lib64/libgraphite2.so.3
libQt5Core.so.5 => /lib64/libQt5Core.so.5
libsystemd.so.0 => /lib64/libsystemd.so.0
libgcrypt.so.20 => /lib64/libgcrypt.so.20
libgpg-error.so.0 => /lib64/libgpg-error.so.0
liblzma.so.5 => /lib64/liblzma.so.5
liblz4.so.1 => /lib64/liblz4.so.1
libicui18n.so.57 => /lib64/libicui18n.so.57
libicuuc.so.57 => /lib64/libicuuc.so.57
libicudata.so.57 => /lib64/libicudata.so.57
libpcre2-16.so.0 => /lib64/libpcre2-16.so.0
libstdc++.so.6 => /lib64/libstdc++.so.6
libpthread.so.0 => /lib64/libpthread.so.0
librt.so.1 => /lib64/librt.so.1
libdl.so.2 => /lib64/libdl.so.2
libuuid.so.1 => /lib64/libuuid.so.1
libm.so.6 => /lib64/libm.so.6
libgcc_s.so.1 => /lib64/libgcc_s.so.1
libc.so.6 => /lib64/libc.so.6
It shows the Qt4 dependencies along with Qt5 dependencies. Then I checked the Qt dependencies of libvtkGUISupportQt.so. That shows it depends on Qt4 only.
$ ldd /usr/lib64/vtk/libvtkGUISupportQt.so.1 | grep -i qt
libQtGui.so.4 => /lib64/libQtGui.so.4 (0x00007f153b7bd000)
libQtNetwork.so.4 => /lib64/libQtNetwork.so.4 (0x00007f153b46f000)
libQtCore.so.4 => /lib64/libQtCore.so.4 (0x00007f153af6b000)
In vtk mailing list They say setting the variable VTK_QT_VERSION to "5" should work. But I doubt because the libvtkGUISupportQt.so depends on Qt4 as compiled. However I set that variable in my CMakeLists.txt. And as expected it didn't work.
set(VTK_QT_VERSION "5" CACHE STRING "Expected Qt version")
mark_as_advanced(VTK_QT_VERSION)
FIND_PACKAGE(VTK 7.0 REQUIRED COMPONENTS vtkGUISupportQt vtkIOImport)
message(STATUS ${VTK_MODULES_DIR})
INCLUDE(${VTK_USE_FILE})
# Find the QtWidgets library
FIND_PACKAGE(Qt5 COMPONENTS Core Widgets Svg Charts REQUIRED)
So now what is the solution ? I once heard VTK 7 links to Qt5. So was that wrong ? However in my Mac it worked fine even before 3 months. Now my Mac uses Vtk 8 with Qt5 (default). May be it was Vtk 7 with Qt5 few months back. I don't know because I have done some updates very recently.
I prefer installing with dnf So that I can easily ship. Both Vtk and Qt are installed with dnf (in Fedora) and brew (in Mac) But If I now compile and install Vtk8 from source would that conflict ?
Another tricky solution could be bypass QVTKWidget and create a QWidget that does the same job as QVTKWidget. If that is easy. I don't know how feasible that is.
Related Bug Report
While building Vtk with Qt5 there may be issues with other dependencies (I don't know, may be with python 3). But so far libvtkGUISupportQt can be compiled with Qt5. So I think there can be both libvtkGUISupportQt4 and libvtkGUISupportQt5 packaged in the binary distribution. The first one can be used for the dependent packages that have not been worked on yet.
I have installed Asterisk 11.9.0, but when i try to start the Asterisk instance, i get this error:
[root#localhost]# asterisk -rvvvv
asterisk: symbol lookup error: /usr/lib/libasteriskssl.so.1: undefined symbol: _ast_mem_backtrace_buffer
I tried to search online, but could not find any explanation to this error. I would really appreciate if someone guide me in this regard, i am using Centos 6.x :
2.6.32-358.el6.x86_64
[root#localhost]# ldd /usr/sbin/asterisk
linux-vdso.so.1 => (0x00007fffe89ff000)
libasteriskssl.so.1 => /usr/lib/libasteriskssl.so.1 (0x00007f302092e000)
libc.so.6 => /lib64/libc.so.6 (0x0000003652400000)
libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x000000365d800000)
libz.so.1 => /lib64/libz.so.1 (0x0000003653800000)
libm.so.6 => /lib64/libm.so.6 (0x0000003653400000)
libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x0000003669c00000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x0000003662800000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x000000365f000000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003652800000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003652c00000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f302070a000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003654400000)
libedit.so.0 => /usr/lib64/libedit.so.0 (0x00007f30204da000)
libncurses.so.5 => /lib64/libncurses.so.5 (0x000000365e800000)
/lib64/ld-linux-x86-64.so.2 (0x0000003652000000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x000000365f800000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x000000365e400000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x000000365e000000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x000000365f400000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f30202cd000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x000000365ec00000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003654000000)
Looking forward to your feedback. Thanks
You have remove all duplicates for libssl, if any
After that need install libssl-devel and recompile asterisk with your version of library.
Hi when I run the command: sudo isql -v "SELFLOOP" admin admin
I get the following error:
[01000][unixODBC][Driver Manager]Can't open lib '/usr/local/lib/bizc/libBBCpi.so' :file not found [ISQL]ERROR: Could not SQLConnect
Here are some settings:
/etc/odbc.ini
[SELFLOOP]
Description = ODBC Driver for Linux
Driver = Client
Server = 127.0.0.1
Database = unixodbc
Port = 10314
/etc/odbcinst.ini
[Client]
Description=ODBC Driver for Linux
Driver=/usr/local/lib/bizc/libBBCpi.so
Threading=1
UsageCount=1
Here are some others info:
ldd -v /usr/local/lib/bizc/libBBCpi.so
linux-vdso.so.1 => (0x00007fff43b95000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f99d5b30000)
libm.so.6 => /lib64/libm.so.6 (0x00007f99d58ab000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f99d5695000)
libc.so.6 => /lib64/libc.so.6 (0x00007f99d5303000)
/lib64/ld-linux-x86-64.so.2 (0x00000033d9000000)
Version information:
/usr/local/lib/bizc/libBBCpi.so:
libgcc_s.so.1 (GCC_3.0) => /lib64/libgcc_s.so.1
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6
libstdc++.so.6 (CXXABI_1.3) => /usr/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.9) => /usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6:
libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
libgcc_s.so.1 (GCC_4.2.0) => /lib64/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.3) => /lib64/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.0) => /lib64/libgcc_s.so.1
libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libm.so.6:
libc.so.6 (GLIBC_PRIVATE) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libgcc_s.so.1:
libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
echo $LD_LIBRARY_PATH
:/usr/java/jdk1.6.0_41/jre/lib/amd64/server:/usr/local/lib/bizc/
I have tried everything but I am not able to decipher this error.
Any help will be greatly appreciated.THANKS!
Perhaps you've got a 32 bit isql and unixODBC and you are attempting to use a 64 bit driver. What does the file command say for isql for instance (all components in the chain need to be the same). You could always try running under strace to see what system calls are failing.