compile opencv c++ code example
Example 1: how to compile opencv c++ in ubuntu
1 $ alias opencv="~/.compile_opencv.sh"
2 $ opencv opencvtest.c
3 $ ./opencvtest
Example 2: opencv compile c++
pkg-config --cflags --libs /path/to/opencv.pc
//to compile opencv code samples