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`