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