Results 1 to 2 of 2

Thread: OpenCV with Qt (Windows 7 x64)

  1. #1
    Join Date
    Oct 2013
    Qt products

    Unhappy OpenCV with Qt (Windows 7 x64)

    Hello, guys!

    I'm having some dificulties to integrate OpenCV with Qt. I've installed Qt 5.1 and OpenCV 2.4.6, the last one using CMake to generate the makefiles and building with VS11, but, I got errors specifically when I check the "WITH_QT" box, I can't configure until I specify all the paths, and then, I generate the makefiles, but when I try to build the .sln file, I got erros! But when I don't check the "WITH_QT" box, the installation succeeds.

    Straight to the point:

    1 - How can I solve this problem? The cause is any environment variable set wrong?

    2 - Can I integrate QtCreator with the OpenCV library, compiling it without checking the "WITH_QT" box?


  2. #2
    Join Date
    Sep 2009
    Wroclaw, Poland
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    MacOS X Unix/X11 Windows Android

    Default Re: OpenCV with Qt (Windows 7 x64)

    You can build opencv separately and add it to your project via LIBS and INCLUDEPATH qmake variables.
    If you want to have autocompletion working with opencv symbols in QtCreator, add opencv include paths to your_project.includes file.

Similar Threads

  1. Opencv in Qt
    By mohanakannan in forum Qt Programming
    Replies: 2
    Last Post: 26th August 2013, 17:02
  2. OpenCV
    By Viper666 in forum Qt Programming
    Replies: 3
    Last Post: 1st February 2013, 16:59
  3. Problem - QT + OpenCV + Windows 7
    By StinkyCat in forum Newbie
    Replies: 5
    Last Post: 22nd November 2010, 19:16
  4. Problem - QT + OpenCV + Windows 7
    By StinkyCat in forum Newbie
    Replies: 0
    Last Post: 19th November 2010, 17:15
  5. Qt and OpenCV
    By malorie in forum Newbie
    Replies: 2
    Last Post: 7th March 2010, 14:57

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.