Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Cannot mix incompatible Qt library (version 0x50600) with this library (version 0x50601)

    QtonPi
    qt5 pi 2 qml
    2
    9
    8995
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mr_modo
      mr_modo last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        mr_modo 1 Reply Last reply Reply Quote 0
        • mr_modo
          mr_modo @SGaist last edited by

          @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
          
          
          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Did you build all modules for the pi in one go ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            mr_modo 1 Reply Last reply Reply Quote 0
            • mr_modo
              mr_modo @SGaist last edited by

              @SGaist Yes, they all came from one git checkout which is TOT of the 5.6 branch.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Ok, then do you have only one version of Qt on your Pi ? And on your computer ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                mr_modo 1 Reply Last reply Reply Quote 0
                • mr_modo
                  mr_modo @SGaist last edited by

                  @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.0

                  And that is after fresh git clone and rebuild of qtbase. So I am puzzled why my plugins are off a different revision.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    I'd rename the Qt folder of your Pi and redo the install part to see what happens.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    mr_modo 1 Reply Last reply Reply Quote 0
                    • mr_modo
                      mr_modo @SGaist last edited by mr_modo

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post