Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

" what am I doing wrong?" -- you're messing up the include path.

by default, opencv installs to /usr/local. you've chosen to put it into another place, but please, do not change the #include paths !

instead, give the location to your compiler, like :

g++ myprog.cpp -I /home/david/c/opencv-3.2.0/include -L /home/david/c/opencv-3.2.0/lib -o myprog

also consider, using cmake to generate a makefile for your project.

" what am I doing wrong?" -- you're messing up the include path.

by default, opencv installs to /usr/local. you've chosen to put it into another place, but please, do not change the #include paths !

instead, give the location to your compiler, like :

g++ myprog.cpp -I /home/david/c/opencv-3.2.0/include /where/did/i/install/opencv/include -L /home/david/c/opencv-3.2.0/lib /where/did/i/install/opencv/lib -o myprog

again, the install path on your box is relevant here, do not try to point it at the original src dir

also consider, using cmake to generate a makefile for your project.