Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Problem with OpenCV3.0 and Qt creator
QtWS25 Last Chance

Problem with OpenCV3.0 and Qt creator

Scheduled Pinned Locked Moved Language Bindings
6 Posts 3 Posters 2.6k 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.
  • Z Offline
    Z Offline
    zorro3465
    wrote on last edited by
    #1

    Hello, I need to use OpenCV with Qt creator, and need some help with OpenCV.

    My problem occurs when I run any example or .exe made with OpenCV, after I install OpenCV with CMake (and checking WITH_QT in the process).

    For example with the examples included in the installation, when I try to open one I get the following error:

    !http://answers.opencv.org/upfiles/1413994743487541.png(The error)!

    That says: Procedure entry point not found in the dynamic links library

    My S.O. is Windows 8.1, 64 bits

    I have tried to reinstall Qt and install differents versions, but the error is the same ever.

    But, if I install OpenCV with CMake and don´t check WITH_QT, the examples works perfectly.

    I dont know what else can I do!
    Thanks!

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

      Hi and welcome to devnet,

      Might be a silly question: did you check that the example can find the Qt libraries you used to build OpenCV ?

      You can check using e.g. Dependency Walker

      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
      • V Offline
        V Offline
        Vincent007
        wrote on last edited by
        #3

        make sure

        1. the folder storing Qt dll files is included in the environment variable PATH
        2. the folder storing OpenCV dll files is included in the environment variable PATH
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Putting the path to Qt's dlls in the PATH environment variable is a bad idea. You don't know whether other applications on your system also use Qt and they'll start using the one from PATH rather than their own bundled version.

          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
          • V Offline
            V Offline
            Vincent007
            wrote on last edited by
            #5

            How to avoid copying Qt's dlls many times if PATH environment variable is not used?

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

              In the case of a standard use of your computer, you'll probably already have several copies of Qt depending on what application you installed.

              While developing the problem doesn't occur if you use e.g. Qt Creator since it modifies the environment as needed for your application to run.

              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

              • Login

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