Different OpenCV locations when installing caffe

asked 2017-03-03 09:55:51 -0500

I currently have Opencv 3.2.0 installed with the shared object file in Python dir:

/usr/local/lib/python2.7/dist-packages/cv2.so

At the same time, when I install caffe, the cmake configurator finds the following location:

/usr/local/share/OpenCV

And when I use pkg-config --cflags opencv these two are detected:

-I/usr/local/include/opencv -I/usr/local/include

where the former is within the latter of course.

So I 'm confused: which path should I use when installing opencv-dependent packages like caffe? How do I determine the correct one?

edit retag flag offensive close merge delete