Problem with cmake and OpenCV 2.0 in Ubuntu

Good night, I'm working on a project in which we use Cmake and OpenCV 2.0 in Ubuntu 10.04, everyone in the team (we are the micro mouse development team) can easily compile the code, but I can’t. This is what Smake tells me:

tiago@tiago-laptop:~/bioloid/build$ cmake ..
-- Checking GNUCXX version 3/4 to determine  OpenCV /opt/net/ path
CMake Error at CMakeModules/FindOpenCV.cmake:348 (MESSAGE):
OpenCV required but some headers or libs not found.  Please specify it's
location with OpenCV_ROOT_DIR env.  variable.
Call Stack (most recent call first):
CMakeLists.txt:45 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!

If I try to export the variable as follows:

export OpenCV_ROOT_DIR=/usr/local/lib

It continues to give the same error, this is the output from pkg-config --cflags -libs opencv:

-I/usr/local/include/opencv -I/usr/local/include  -L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann  

No one in the team knows what to do, I have already uninstalled and installed opencv again, is there any chance that this is because I also have opencv 2.2 installed on my computer?

+3
source share
1 answer

Find opencv (CMakeModules/FindOpenCV.cmake), , . , , , , , . MARK_AS_ADVANCED, , . , , false XXX-NOTFOUND.

, , , .

0

All Articles