Results 1 to 12 of 12

Thread: OpenCV integration with Qt creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    india->gujarat->bhavnagar
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo
    Thanks
    7

    Default Re: OpenCV integration with Qt creator

    Error i am getting is shown below:

    Running build steps for project samplecv...
    Configuration unchanged, skipping qmake step.
    Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe" -w
    mingw32-make: Entering directory `C:/Users/mind_freak/samplecv-build-desktop'
    C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Users/mind_freak/samplecv-build-desktop'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.7.1\mingw\include\Qt Core" -I"..\..\..\QtSDK\Desktop\Qt\4.7.1\mingw\include\Qt Gui" -I"..\..\..\QtSDK\Desktop\Qt\4.7.1\mingw\include " -I"..\..\..\OpenCV2.2\include\opencv" -I"..\..\..\OpenCV2.2\include\opencv2" -I"..\..\..\QtSDK\Desktop\Qt\4.7.1\mingw\include\Ac tiveQt" -I"debug" -I"." -I"..\samplecv" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.7.1\mingw\mkspecs\wi n32-g++" -o debug\main.o ..\samplecv\main.cpp
    mingw32-make[1]: Leaving directory `C:/Users/mind_freak/samplecv-build-desktop'
    mingw32-make: Leaving directory `C:/Users/mind_freak/samplecv-build-desktop'
    In file included from ..\samplecv\/mainwindow.h:5,
    from ..\samplecv\main.cpp:2:
    ..\..\..\OpenCV2.2\include\opencv/cv.h:63:33: error: opencv2/core/core_c.h: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:64:33: error: opencv2/core/core.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:65:39: error: opencv2/imgproc/imgproc_c.h: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:66:39: error: opencv2/imgproc/imgproc.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:67:38: error: opencv2/video/tracking.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:68:45: error: opencv2/features2d/features2d.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:69:35: error: opencv2/flann/flann.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:70:39: error: opencv2/calib3d/calib3d.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:71:43: error: opencv2/objdetect/objdetect.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:72:37: error: opencv2/legacy/compat.hpp: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/cv.h:79:37: error: opencv2/core/internal.hpp: No such file or directory
    In file included from ..\samplecv\/mainwindow.h:6,
    from ..\samplecv\main.cpp:2:
    ..\..\..\OpenCV2.2\include\opencv/highgui.h:47:39: error: opencv2/highgui/highgui_c.h: No such file or directory
    ..\..\..\OpenCV2.2\include\opencv/highgui.h:48:39: error: opencv2/highgui/highgui.hpp: No such file or directory
    mingw32-make[1]: *** [debug/main.o] Error 1
    mingw32-make: *** [debug] Error 2
    The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    Error while building project samplecv (target: Desktop)
    When executing build step 'Make'

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

    Default Re: OpenCV integration with Qt creator

    ..\..\..\OpenCV2.2\include\opencv/cv.h:63:33: error: opencv2/core/core_c.h: No such file or directory
    You need to add path to "opencv2/<module>" directory to your .pro file, for each module listed in above error. Modules should be in "C:/OpenCV2.2/modules".
    For example, "core" module is in:
    C:\OpenCV2.2\modules\core
    , it has "include" subdir, which contains the path referenced in cv.h above. So for this module, entry in .pro file would be:
    INCLUDEPATH += C:/OpenCV2.2/modules/core/include
    Look into your OpenCV 2.2 installation directory and add all missing modules path to your .pro file.

  3. The following user says thank you to stampede for this useful post:

    mind_freak (20th February 2011)

  4. #3
    Join Date
    Mar 2009
    Location
    india->gujarat->bhavnagar
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo
    Thanks
    7

    Default Re: OpenCV integration with Qt creator

    hey when i download opencv 2.2 from sourcefroge i have two option
    1)opencv.zip
    2)opencv.exe for vs2010

    which one to download so that i can use it with Qt creator.....

  5. #4
    Join Date
    Mar 2009
    Location
    india->gujarat->bhavnagar
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo
    Thanks
    7

    Default Re: OpenCV integration with Qt creator

    i don't know which to select so that i can configure it properly with Qt Creator 2.0.95,

  6. #5
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    Default Re: OpenCV integration with Qt creator

    Which compiler are you using ? I think there are prebuilt packages available for Visual C++ compilers, so this ".exe for vs" is probably this package.
    I'm using g++, so I've had to build OpenCV myself ( not really difficult, just download CMake and click few times, I think there is even a step-by-step tutorial somewhere ).
    So it depends on the compiler, if you use g++ download something like "OpenCV-2.2.0-win.zip".

  7. #6
    Join Date
    Mar 2009
    Location
    india->gujarat->bhavnagar
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo
    Thanks
    7

    Default Re: OpenCV integration with Qt creator

    m using Nokia Qt sdk ,so which compiler does it consist of ??

  8. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: OpenCV integration with Qt creator

    MinGW/GCC, unless you specified otherwise.

  9. #8
    Join Date
    Jan 2013
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: OpenCV integration with Qt creator

    I need to know how to fix the following problem that I get when I try to configure the CMake. please I need some help.

Similar Threads

  1. OpenCV integration
    By sfabel in forum Qt Programming
    Replies: 47
    Last Post: 28th January 2013, 06:19
  2. OpenCV + QT integration
    By leoalvesmachado in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2010, 09:21
  3. Using OpenCV with QT creator
    By gmiller39 in forum Newbie
    Replies: 3
    Last Post: 7th July 2010, 16:32
  4. opencv-qt-mac
    By ireneluis in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2010, 16:24
  5. Eclipse Integration sans Integration
    By ChrisW67 in forum Qt Tools
    Replies: 3
    Last Post: 17th March 2009, 08:29

Tags for this Thread

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.