PDA

View Full Version : Qt Creator Qt5.8 - incompatible library problem



TonyB
6th February 2017, 15:11
I am currently running Mint 17.2 with Qt 5.2.1, which for various reasons I don't want to uninstall. However, wanting to try the latest release, I used the Qt downloader to install 5.8 in $HOME/Qt, as suggested. At the end of the install, it asks whether to run qtcreator; I did and it looked fine. But after exiting, any attempt to rerun gives the message:



tonyb@new-laptop ~ $ ~/Qt/Tools/QtCreator/bin/qtcreator
Cannot mix incompatible Qt library (version 0x50201) with this library (version 0x50800)
Aborted


I get the same result if I run the shell script provided with the binary. I have ascertained that the shell script sets LD_LIBRARY_PATH to:
/home/tonyb/Qt/Tools/QtCreator/lib:/home/tonyb/Qt/Tools/QtCreator/lib/qtcreator:/home/tonyb/Qt/Tools/QtCreator/lib/Qt/lib

I get the follwoing output from ldd:


tonyb@new-laptop ~ $ ldd ~/Qt/Tools/QtCreator/bin/qtcreator
linux-vdso.so.1 => (0x00007ffd6ffb2000)
libExtensionSystem.so.4 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/qtcreator/libExtensionSystem.so.4 (0x00007f9cea939000)
libAggregation.so.4 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/qtcreator/libAggregation.so.4 (0x00007f9cea732000)
libUtils.so.4 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/qtcreator/libUtils.so.4 (0x00007f9cea365000)
libQt5Widgets.so.5 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5 (0x00007f9ce9b34000)
libQt5Gui.so.5 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Gui.so.5 (0x00007f9ce9398000)
libQt5Concurrent.so.5 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Concurrent.so.5 (0x00007f9ce9191000)
libQt5Network.so.5 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Network.so.5 (0x00007f9ce8e0b000)
libQt5Core.so.5 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5 (0x00007f9ce86ea000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f9ce845d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9ce823f000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9ce7f3a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9ce7c34000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9ce7a1e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9ce7658000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9ce7454000)
libQt5Qml.so.5 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt5Qml.so.5 (0x00007f9ce6e58000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9ce6c3f000)
libicui18n.so.56 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicui18n.so.56 (0x00007f9ce67a4000)
libicuuc.so.56 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicuuc.so.56 (0x00007f9ce63ec000)
libicudata.so.56 => /home/tonyb/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicudata.so.56 (0x00007f9ce4a09000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9ce4800000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f9ce45fe000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9ce42f6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9ceab7f000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f9ce40ce000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9ce3ebc000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f9ce3cb9000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f9ce3ab2000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f9ce38b0000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9ce357b000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f9ce3363000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f9ce315e000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f9ce2f5b000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f9ce2d57000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f9ce2b51000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9ce2932000)
libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f9ce272f000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f9ce2529000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f9ce231b000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9ce20dc000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9ce1ed7000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9ce1cd1000)


Trying the same thing under Ubuntu 16.04 with Qt5.5.1, I get similar output.



tonyb@tonyb-SharkBay:~$ /homex/tonyb/Qt/Tools/QtCreator/bin/qtcreator
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QApplication: invalid style override passed, ignoring it.
Cannot mix incompatible Qt library (version 0x50501) with this library (version 0x50800)
Aborted (core dumped)


Any ideas how I can debug further?

anda_skoa
7th February 2017, 07:25
Maybe it is trying to load a platform theme integration plugin.

You could try setting the QT_DEBUG_PLUGINS environment variable to any non zero value and see if you get any more detailed output during startup.

Cheers,
_

TonyB
7th February 2017, 09:46
Oops - my mistake. I had an old QT_PLUGIN_PATH in my environment. I thought I'd checked that before posting. I must be getting old.

mohamadrezach
25th April 2017, 18:32
i have same ERROR : QApplication: invalid style override passed, ignoring it.
in linux mint 18 , QT 5.8
how can i fix it?

i am new in QT