Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Cannot mix incompatible Qt library (version 0x50600) with this library (version 0x50601)

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

Scheduled Pinned Locked Moved Solved QtonPi
qt5pi 2qml
9 Posts 2 Posters 9.7k Views
  • 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.
  • M Offline
    M Offline
    mr_modo
    wrote on 13 May 2016, 08:04 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 May 2016, 21:36 last edited by
      #2

      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

      M 1 Reply Last reply 14 May 2016, 04:07
      0
      • S SGaist
        13 May 2016, 21:36

        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.

        M Offline
        M Offline
        mr_modo
        wrote on 14 May 2016, 04:07 last edited by
        #3

        @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
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 May 2016, 19:38 last edited by
          #4

          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

          M 1 Reply Last reply 14 May 2016, 22:12
          0
          • S SGaist
            14 May 2016, 19:38

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

            M Offline
            M Offline
            mr_modo
            wrote on 14 May 2016, 22:12 last edited by
            #5

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 15 May 2016, 19:56 last edited by
              #6

              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

              M 1 Reply Last reply 15 May 2016, 21:09
              0
              • S SGaist
                15 May 2016, 19:56

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

                M Offline
                M Offline
                mr_modo
                wrote on 15 May 2016, 21:09 last edited by
                #7

                @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
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 15 May 2016, 21:11 last edited by
                  #8

                  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

                  M 1 Reply Last reply 20 May 2016, 04:57
                  0
                  • S SGaist
                    15 May 2016, 21:11

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

                    M Offline
                    M Offline
                    mr_modo
                    wrote on 20 May 2016, 04:57 last edited by mr_modo
                    #9

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

                    5/9

                    14 May 2016, 22:12

                    • Login

                    • Login or register to search.
                    5 out of 9
                    • First post
                      5/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved