1. 程式人生 > >【opencv】Opencv在Ubuntu16中的code blocks的編譯配置

【opencv】Opencv在Ubuntu16中的code blocks的編譯配置

1. project->build options->compiler settings -> Compiler Flags : pick the "Have g++ follow the C++11 ISO C++ language standard[-std=c++11]"

2. project->build options->compiler settings -> Other options: Add the following line - 

        `pkg-config --cflags opencv`

3. project->build options-> Linker settings -> other linker options: Add the following line - 

        `pkg-config --libs opencv`