ippverion.h, ipp.h not found while building using 'make'
Hi,
I am trying to compile a piece of code taken from github, that requires opencv header files. During compilation I got stuck. In the terminal I find fatal error: ippversion.h: No such file or directory.
The same happens for ipp.h
. Following relevant part from my CMake Lists,txt.
Set(OpenCV_DIR /home/anindya/opencv/build)
find_package(OpenCV REQUIRED COMPONENTS core)
include_directories (include ${OpenCV_INCLUDE_DIRS})
add_library(${PROJECT_NAME}
include/precomp.hpp)
target_link_libraries(${OpenCV_LIBRARIES})
The precomp.hpp
contains private.hpp
. ippversion.h
and ipp.h
are included with in private.hpp
.
I do not understand why the compiler cannot find these files where as some other files within a shallow directory in opencv is found.
Expecting some help.
I don't understand cmakelists.txt : findpasckage directive must be before include directoies
ugh, if that happens,when buiding your own program, it means, that ipp was not correctly installed,when building the opencv libs before.
you'll have to get back there, and make sure, that either the ipp install went properly, or that it was disabled in cmake.
add_library(${PROJECT_NAME} include/precomp.hpp)
no, internal header, not accessible, this idea won't work.
my bad. I corrected the question statement now.
include_directories
in my CMakeLists.txt is as it is posted here.your program should not depend on anything ipp related directly in the 1st place
I can include
without any complaint, in the
precomp.hpp
. Should I uninstall opencv and reinstall again?no, wait. again YOUR code MUST NOT depend on any internal code from opencv, but you have to use the public api.
if it's a problem within the opencv library (you're unclear about the context here, which is the problem), then you had a problem building/installing it, and yes, you have to try again there.
what, exactly ?
oh my. you'll need libs, too. and the public headers installed, NOT some private implementation headers from the opencv src code
updated
target_link_librariers
in the main question statement. Same result.I was actually trying to compile https://github.com/opencv/opencv_cont... in my own project