Ubuntu命令行编译OpenCV程序

转自http://blog.renren.com/share/253028269/13712003012

编译OpenCV程序:


编译时需要加参数: `pkg-config opencv --libs --cflags opencv`

比如: g++ example.cpp `pkg-config opencv --libs --cflags opencv` -o example


Compiling C++11 with g++:

g++ -std=c++0x your_file.cpp -o your_program



你可能感兴趣的:(Ubuntu命令行编译OpenCV程序)