Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Opencv and qt 5.1 integration [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Opencv and qt 5.1 integration [SOLVED]

Scheduled Pinned Locked Moved 3rd Party Software
6 Posts 3 Posters 3.9k Views 1 Watching
  • 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.
  • niqtN Offline
    niqtN Offline
    niqt
    wrote on last edited by
    #1

    Hi,
    using opencv-2.4.6, Qt 5.1 on OpenSuse 12.2 64 bit, i run my software and i have:
    QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'QPaintBufferCacheEntry' [1024]. Previously registered size 0, now registering size 16.

    I tryed also with some example downloaded from internet and i have same error.
    What's happen?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You probably have OpenCV built with Qt 4 (check opencv_highgui with ldd) So you can't use it like this with Qt5, you should either rebuild OpenCV with Qt 5 (I don't know it its already possible) or rebuild it without Qt.

      Hope it helps

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

      1 Reply Last reply
      0
      • niqtN Offline
        niqtN Offline
        niqt
        wrote on last edited by
        #3

        yes, i recompiled opencv and it's ok. Thanks

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Don't forget to update the thread's title to solved so other forum users will know a solution has been found :)

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

          1 Reply Last reply
          0
          • E Offline
            E Offline
            eexbee
            wrote on last edited by
            #5

            Hi.
            how did u recompiled it? I'm getting errors. particularly when i check WITH_QT in cmake.

            tnx

            [quote author="niqt" date="1377376785"]yes, i recompiled opencv and it's ok. Thanks[/quote]

            1 Reply Last reply
            0
            • niqtN Offline
              niqtN Offline
              niqt
              wrote on last edited by
              #6

              I have also configured $PATH=/home/myhome/Qt5.1.1/5.1.1/gcc/bin:$PATH

              1 Reply Last reply
              0

              • Login

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