"cv.h: No such file or directory" Error [closed]

asked 2014-05-04 15:21:08 -0600

Pedram gravatar image

updated 2014-05-06 01:11:52 -0600

berak gravatar image

I want to compile the flandmark project. I followed instructions in the INSTALL file, created a directory named bin in source directory and executed ccmake .. in bin directory with OpenCV_DIR and OpenCV_CONFIG_PATH set to /usr/lib64/OpenCV

cmake successfully configures and generetes Make files without any error, but when I run make in bin directory I get this error:

[ 14%] Building CXX object libflandmark/CMakeFiles/flandmark_shared.dir

/flandmark_detector.cpp.o
In file included from /opt/oa/flandmark-master/libflandmark/flandmark_detector.cpp:17:0:
/opt/oa/flandmark-master/libflandmark/flandmark_detector.h:15:16: fatal error: cv.h: No such file or directory
 #include <cv.h>
                ^
compilation terminated.
make[2]: *** [libflandmark/CMakeFiles/flandmark_shared.dir/flandmark_detector.cpp.o] Error 1
make[1]: *** [libflandmark/CMakeFiles/flandmark_shared.dir/all] Error 2
make: *** [all] Error 2

I checked /usr/lib64/OpenCV directory for config files and config files such as OpenCVConfig.make exist there and header files are included in this file:

# ======================================================
# Include directories to add to the user project:
# ======================================================

# Provide the include directories to the caller
set(OpenCV_INCLUDE_DIRS "${OpenCV_INSTALL_PATH}/include/opencv;${OpenCV_INSTALL_PATH}/include")
include_directories(${OpenCV_INCLUDE_DIRS})

Any suggestion?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-12 07:12:51.622602

Comments

2

yea, they still pretend, it's 1998 there, try

<opencv/cv.h>

hopefully, the next flandmark version won't be dependant on opencv's c-api any more.

berak gravatar imageberak ( 2014-05-06 01:09:59 -0600 )edit