Ubuntu 编译并执行含opencv的cpp文件

# compilation
g++ main.cpp -o main `pkg-config --cflags --libs opencv`

# execution
./img-display linuxconfig_logo.png
posted @ 2018-05-08 12:39  默盒  阅读(867)  评论(0编辑  收藏  举报