Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The opencv2 directory resides inside opencv4 directory. A quick workaround to get old code compiling would be to inform your compiler about the new opencv4 directory. For g++, add -I/path/to/your/include/opencv4 (mostly -I/usr/local/include/opencv4) as a compiler flag project wide and your code should compile.