Cannot mix incompatible Qt library (version 0x50600) with this library (version 0x50601)
-
I successfully cross compiled Qt5.6.1 and I can run non-QML based apps on my Pi2 without problems. But when I run for instance the 'clocks' example I get the following error:
Cannot mix incompatible Qt library (version 0x50600) with this library (version 0x50601)
And the same happens when I invoke 'qml' on the Pi. -
Hi,
Are you sure that the version of Qt that you are using to build your application is 5.6.1 ? If so, check that it was also installed on your Pi.
-
@SGaist Yes, QT Creator confirms what I saw when building: version 5.6.1. The problem also occurs when I try to launch qml directly:
pi@lcdpi:/usr/local/qt5pi/bin $ ./qml Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters). Cannot mix incompatible Qt library (version 0x50600) with this library (version 0x50601) Aborted
-
Did you build all modules for the pi in one go ?
-
Ok, then do you have only one version of Qt on your Pi ? And on your computer ?
-
@SGaist I only have one version there but I noticed something on my Pi:
./qtdiag
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
Qt 5.6.1 (arm-little_endian-ilp32-eabi-hardfloat shared (dynamic) release build; by GCC 4.8.3 20140303 (prerelease)) on "eglfs"
OS: Raspbian GNU/Linux 8 (jessie) [linux version 4.4.9-v7+]But ./qtplugininfo -v
qplugininfo 5.6.0And that is after fresh git clone and rebuild of qtbase. So I am puzzled why my plugins are off a different revision.
-
I'd rename the Qt folder of your Pi and redo the install part to see what happens.
-
@SGaist I finally threw away my whole QT source folder and started once more from scratch and now the modules and libraries are back in sync as 5.6.1.
Marking this as solved. Thanks
Only advise I can give to everyone that runs into this as well is:
Check if your library and modules are in sync. They seem to have gotten out of sync for me after using git update or branch switch.