compiling opencv c++ code example Example: opencv compile c++ pkg-config --cflags --libs /path/to/opencv.pc //to compile opencv code samples