How do I use/install VIZ in OpenCV

asked 2014-05-09 17:22:21 -0500

grizzly77777777 gravatar image

updated 2014-05-10 03:55:01 -0500

berak gravatar image

I'm trying to follow this tutorial here. When I run the code I get

"g++ -std=c++11 d.cpp -o d `pkg-config --cflags --libs opencv`
d.cpp:20:27: fatal error: opencv2/viz.hpp: No such file or directory
 #include <opencv2/viz.hpp>
compilation terminated.

Compilation exited abnormally with code 1 at Fri May  9 01:22:57

Whats going on? How do I use/install viz? The viz folder is in the <opencv-source-directory>/modules folder and viz.hpp is there, I build the Itseez version of OpenCV.

Could use a little advice, the tutorials/google say nothing.

edit retag flag offensive close merge delete



the opencv.pc file used by pkg-config seems to look for headers in your_install_dir/include, not in the modules folder.

after building the opencv libs, you probably did run a make install.

could you check, if the headers were copied properly from modules/viz to your install folder ?

(might be a problem with the install phase)

berak gravatar imageberak ( 2014-05-10 06:01:05 -0500 )edit