Ask Your Question

ippverion.h, ipp.h not found while building using 'make'

asked 2019-06-27 17:03:30 -0500

Ani_Cv gravatar image

updated 2019-06-28 03:05:41 -0500

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})


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.

edit retag flag offensive close merge delete


I don't understand cmakelists.txt : findpasckage directive must be before include directoies

LBerger gravatar imageLBerger ( 2019-06-27 23:18:18 -0500 )edit

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.

berak gravatar imageberak ( 2019-06-27 23:30:14 -0500 )edit

add_library(${PROJECT_NAME} include/precomp.hpp)

no, internal header, not accessible, this idea won't work.

berak gravatar imageberak ( 2019-06-27 23:31:21 -0500 )edit

my bad. I corrected the question statement now. include_directories in my CMakeLists.txt is as it is posted here.

Ani_Cv gravatar imageAni_Cv ( 2019-06-28 00:15:23 -0500 )edit

your program should not depend on anything ipp related directly in the 1st place

berak gravatar imageberak ( 2019-06-28 02:10:36 -0500 )edit

I can include

    #include "opencv2/core/ocl.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/rgbd.hpp"

without any complaint, in the precomp.hpp . Should I uninstall opencv and reinstall again?

Ani_Cv gravatar imageAni_Cv ( 2019-06-28 02:52:59 -0500 )edit

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.

berak gravatar imageberak ( 2019-06-28 02:58:58 -0500 )edit

Hi, I am trying to compile a piece of code taken from github

what, exactly ?

that requires opencv header files

oh my. you'll need libs, too. and the public headers installed, NOT some private implementation headers from the opencv src code

berak gravatar imageberak ( 2019-06-28 03:01:02 -0500 )edit

updated target_link_librariers in the main question statement. Same result.

I was actually trying to compile in my own project

Ani_Cv gravatar imageAni_Cv ( 2019-06-28 03:11:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-07-01 00:57:43 -0500

Ani_Cv gravatar image

There was an issue with installation of library earlier. I uninstalled opencv and re-installed it. I do not need to call any private header now.

edit flag offensive delete link more


thanks for coming back and solving this riddle ;)

berak gravatar imageberak ( 2019-07-01 03:05:47 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-06-27 17:03:30 -0500

Seen: 110 times

Last updated: Jul 01