Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Run OpenCV program

I am new to openCV, I am trying to compile my first code in linux ubuntu by adding following code g++ 'pkg-config opencv --cflags' hello_opencv.cpp -o hello_opencv 'pkg-config opencv --libs' and I got the error as g++: error: pkg-config opencv --cflags: No such file or directory g++: error: pkg-config opencv --libs: No such file or directory

request you to help me solving this.

click to hide/show revision 2
No.2 Revision

updated 2014-11-12 02:34:25 -0600

berak gravatar image

Run OpenCV program

I am new to openCV, I am trying to compile my first code in linux ubuntu by adding following code code

g++ 'pkg-config opencv --cflags' hello_opencv.cpp -o hello_opencv 'pkg-config opencv --libs'
and I got the error as 
g++: error: pkg-config opencv --cflags: No such file or directory
g++: error: pkg-config opencv --libs: No such file or directory

directory

request you to help me solving this.