Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Compiling simple OpenCV in Linux - No Such file or directory

I understand opencv is installed on the stock debian 8.4 distro included with the beaglebone black:
i.e. pkg-config --modversion opencv returns 2.4.9.1

However, when I try to compile a simple hello-world test file:
g++ -O2 'pkg-config --cflags --libs opencv' test.cpp -o test

I get an error that there is no such file or directory for opencv,
g++: error: pkg-config --cflags --libs opencv: No such file or directory

I'm running as root, but is there someother setup (path, folder permissions) that need to be done?

I'm following the tutorial/code directly from here: http://derekmolloy.ie/beaglebone/beaglebone-video-capture-and-image-processing-on-embedded-linux-using-opencv/

Thanks!