Results 1 to 2 of 2

Thread: Integrating OpenCV and QT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Question Integrating OpenCV and QT

    Hello. I am new to QT and I am interested in computer vision using OpenCV 3.1.0 with QT 5.5. I'm having trouble integrating both environments and the tutorials or forum posts I find are a couple years old and don't seem to work. Specifically i'm having problems with CMake (I have attached images of the issue I have and the settings I am using). I'm not sure if CMake is still required to integrate both frameworks, but this is the best information I have to go off of at the moment. Has anyone successfully completed this recently and is there an update guide to do this?
    According to the tutorials I've found this is the last hurdle to get OpenCV working with QT.

    opencv.jpgopencv2.pngopencv3.jpg

  2. #2
    Join Date
    May 2015
    Posts
    66
    Thanks
    10
    Thanked 17 Times in 17 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Integrating OpenCV and QT

    You can follow the steps in:
    http://www.laganiere.name/opencvCook...hap1s1_2.shtml

    These are the few points I noted when I installed openCV, it might help you:
    • In Step 7: If you get error saying cannot find CMAKE_MAKE _PROGRAM, either add path to mingw32-make.exe to the environment PATH variable or click "Advanced" and configure the path there.
    • Before configuring CMake3.2.3 WITH_IPP should be OFF. This is because mingw uses runTmChk which is a msvc library (Known bug).
    • Go to ..\openCV\sources -> OpenCVCompilerOptions.cmake -> comment out the line "add_extra_compiler_option(-Werror=non-virtualdtor).
    • Step 9: Add ..\openCV\build\install\x86\mingw\bin to PATH.


    Good luck

    Regards
    Vikram

Similar Threads

  1. Replies: 1
    Last Post: 27th July 2012, 03:12
  2. integrating openCv with QtQuick
    By nitish in forum Qt Quick
    Replies: 1
    Last Post: 24th September 2011, 13:16
  3. Integrating Qt quick with opencv
    By nitish in forum General Discussion
    Replies: 0
    Last Post: 16th September 2011, 09:17
  4. Integrating opencv with QT in visualstudio 2008
    By reem in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2010, 09:12
  5. Integrating C with Qt
    By deepakn in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2007, 09:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.