问题
On execution of eiskaltdc++ on ubuntu 15.10 ,I get the following error:
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Concurrent.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.6' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
Qt version
~$ which qmake
/opt/Qt5.6.0/5.6/gcc_64/bin/qmake
~$ qmake -version
QMake version 3.0
Using Qt version 5.6.0 in /opt/Qt5.6.0/5.6/gcc_64/lib
~$ echo $PATH
/opt/Qt5.6.0/5.6/gcc_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
I am able to successfully compile applications with Qt creator.
Edit
running ldd gave me this.I am not sure how to interpret this
~$ ldd /usr/local/bin/eiskaltdcpp-qt
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Concurrent.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.6' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
/usr/local/bin/eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by /usr/local/bin/eiskaltdcpp-qt)
linux-vdso.so.1 => (0x00007ffd580bf000)
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fbeffcec000)
libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007fbeffcb0000)
libQt5Multimedia.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x00007fbeffbcf000)
libQt5Concurrent.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Concurrent.so.5 (0x00007fbeffbc8000)
libQt5DBus.so.5 => /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007fbeffb47000)
libQt5Sql.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5 (0x00007fbeffb04000)
libboost_system.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007fbeff900000)
libeiskaltdcpp.so.2.3 => /usr/local/lib/libeiskaltdcpp.so.2.3 (0x00007fbeff52d000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fbefeff2000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fbefeb36000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbefe918000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbefe54d000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbefe1cb000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbefdec3000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbefdcab000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fbefda58000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fbefd749000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fbefd40e000)
libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fbefd2bb000)
libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007fbefd06c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fbefce63000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fbefcc17000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fbefca06000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbefc7ec000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fbefc583000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fbefc13e000)
libpcrecpp.so.0 => /usr/lib/x86_64-linux-gnu/libpcrecpp.so.0 (0x00007fbefbf34000)
libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007fbefbd2f000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fbefbb08000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007fbefb8aa000)
libGL.so.1 => /usr/lib/nvidia-352/libGL.so.1 (0x00007fbefb57a000)
libicui18n.so.55 => /usr/lib/x86_64-linux-gnu/libicui18n.so.55 (0x00007fbefb116000)
libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007fbefad82000)
libpcre16.so.3 => /usr/lib/x86_64-linux-gnu/libpcre16.so.3 (0x00007fbefab1f000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbefa91a000)
/lib64/ld-linux-x86-64.so.2 (0x000055b48dc4b000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fbefa712000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fbefa4a4000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fbefa283000)
libjson-c.so.2 => /lib/x86_64-linux-gnu/libjson-c.so.2 (0x00007fbefa077000)
libpulsecommon-6.0.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-6.0.so (0x00007fbef9dfe000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fbef9d7d000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fbef9ad6000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007fbef98b1000)
libnvidia-tls.so.352.63 => /usr/lib/nvidia-352/tls/libnvidia-tls.so.352.63 (0x00007fbef96ad000)
libnvidia-glcore.so.352.63 => /usr/lib/nvidia-352/libnvidia-glcore.so.352.63 (0x00007fbef6c1a000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fbef6a08000)
libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007fbef4f50000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fbef4d4c000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fbef4b45000)
libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007fbef493b000)
libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007fbef46d2000)
libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007fbef44cc000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fbef42a9000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fbef3fc7000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007fbef3dac000)
libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007fbef3b37000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007fbef3884000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fbef3668000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fbef3455000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007fbef324c000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007fbef301f000)
Please suggest a solution.Thanks in advance.
回答1:
Issue happens because you have Qt installed in /usr/lib/x86_64-linux-gnu
from distro which ld will use by default. To avoid such issues you can compile with -rpath
or run with LD_LIBRARY_PATH=/path/to/your/Qt/libs/location
to help linker find needed Qt version.
回答2:
Install Qt5.x.0 (what version you need) , find install path and copy all file gcc_64/lib/*
into
/usr/lib/x86_64-linux-gnu/*
回答3:
The easiest way to fix this is installing the QT developer package:
sudo apt-get install qt5-default
This will install the packages you need.
回答4:
itfanr@itfanr-pc:~$ ldd /usr/bin/QOwnNotes
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5XmlPatterns.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.6' not found (required by /usr/bin/QOwnNotes)
/usr/bin/QOwnNotes: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by /usr/bin/QOwnNotes)
linux-vdso.so.1 => (0x00007ffc609cc000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f12ee8e8000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f12ee6e4000)
libQt5PrintSupport.so.5 => /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f12eec55000)
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f12ee057000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f12edb0f000)
libQt5Sql.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5 (0x00007f12eec12000)
libQt5XmlPatterns.so.5 => /usr/lib/x86_64-linux-gnu/libQt5XmlPatterns.so.5 (0x00007f12ed707000)
libQt5Qml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007f12ed2db000)
libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f12ed181000)
libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f12eebd4000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f12eccab000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f12eca8e000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f12ec70c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f12ec403000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f12ec1ed000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f12ebe23000)
/lib64/ld-linux-x86-64.so.2 (0x00007f12eeaf0000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f12ebbd0000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f12eb8bf000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f12eb585000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f12eb360000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f12eb102000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f12eaee8000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f12eac74000)
libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f12eaa63000)
libproxy.so.1 => /usr/lib/x86_64-linux-gnu/libproxy.so.1 (0x00007f12ea842000)
libicui18n.so.55 => /usr/lib/x86_64-linux-gnu/libicui18n.so.55 (0x00007f12ea3e0000)
libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007f12ea04c000)
libpcre16.so.3 => /usr/lib/x86_64-linux-gnu/libpcre16.so.3 (0x00007f12e9de6000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f12e9bde000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f12e996e000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f12e974c000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f12e94a2000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f12e927c000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f12e9053000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f12e8e50000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f12e8c4d000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f12e8a46000)
libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f12e8843000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f12e8612000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f12e8400000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f12e81fd000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f12e7ff7000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f12e7df5000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f12e7bdc000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f12e79d7000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f12e77d1000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f12e75bf000)
libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007f12e5b08000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f12e5904000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f12e56fe000)
来源:https://stackoverflow.com/questions/36128645/error-on-execution-version-qt-5-not-found-required-by