Results 1 to 9 of 9

Thread: error: opencv2/core/core_c.h: No such file or directory -- OpenCV 2.4.6 with Q5.1

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2013
    Posts
    18
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Exclamation error: opencv2/core/core_c.h: No such file or directory -- OpenCV 2.4.6 with Q5.1

    I was trying to write a camera program by watching an example video, when I finished writing codes , builted it then I got a messagge like at the title.

    Actually , my problem isn't it.
    Fisrt , I made a search in this forum and other sites , I find a solution , it's about the file paths but the problem is that I add the modules path but the problem doesn't solve

    about the problem:

    content of .pr
    INCLUDEPATH += D:\opencv\include
    INCLUDEPATH += D:\opencv\modules \
    +calib3d\include
    +contrib\include
    +core\include
    +features2d\include
    +flann\include
    +gpu\include
    +highgui\include
    +imgproc\include
    +legacy\include
    +ml\include
    +nonfree\include
    +objdetect\include
    +photo\include
    +stitching\include
    +superres\include
    +video\include
    +videostab\include


    LIBS += -LD:\opencv\build\x64\mingw\bin \
    -Llibopencv_calib3d246.dll
    -Llibopencv_contrib246.dll
    -Llibopencv_core246.dll
    -Llibopencv_features2d246.dll
    -Llibopencv_flann246.dll
    -Llibopencv_gpu246.dll
    -Llibopencv_highgui246.dll
    -Llibopencv_imgproc246.dll
    -Llibopencv_legacy246.dll
    -Llibopencv_ml246.dll
    -Llibopencv_nonfree246.dll
    -Llibopencv_objdetect246.dll
    -Llibopencv_photo246.dll
    -Llibopencv_stitching246.dll
    -Llibopencv_superres246.dll
    -Llibopencv_video246.dll
    -Llibopencv_videostab246.dll

    heard files on .h

    #include <QDialog>
    #include <opencv/highgui.h>
    #include <opencv/cv.h>

    when I clicked the error to find the error line, it shows me highgui.h heard file

    1#ifndef __OPENCV_OLD_HIGHGUI_H__
    2#define __OPENCV_OLD_HIGHGUI_H__
    3
    4#include "opencv2/core/core_c.h"
    5#include "opencv2/core/core.hpp"
    6#include "opencv2/highgui/highgui_c.h"
    7#include "opencv2/highgui/highgui.hpp"
    8
    9#endif

    the error line is 4

    ------------------
    I changed the path in the error line (4th) like in "core/include/opencv2/core/core_c.h" way after that time there is another error:

    error: opencv2/core/types_c.h: No such file or directory

    Now , What are your suggestions?

    Thanks for your help

    -------------------------------
    I added wrong tag in tags box sorry about that
    Last edited by studentQt; 10th September 2013 at 18:27. Reason: spelling corrections

Similar Threads

  1. Replies: 11
    Last Post: 1st February 2018, 04:27
  2. Replies: 3
    Last Post: 12th March 2015, 20:06
  3. error: QMimeSource: No such file or directory
    By seauniv in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2013, 05:31
  4. Replies: 4
    Last Post: 9th May 2010, 16:18

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.