Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"cv.h: No such file or directory" Error

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?

"cv.h: No such file or directory" Error

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?

"cv.h: No such file or directory" Error

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 caller
set(OpenCV_INCLUDE_DIRS "${OpenCV_INSTALL_PATH}/include/opencv;${OpenCV_INSTALL_PATH}/include") "${OpenCV_INSTALL_PATH}/include/opencv;${OpenCV_INSTALL_PATH}/include")
include_directories(${OpenCV_INCLUDE_DIRS})

Any suggestion?

click to hide/show revision 4
retagged

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

berak gravatar image

"cv.h: No such file or directory" Error

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?