Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

#include "opencv2/pfile or directoryhoto.hpp" returns No such

freshly installed Ubuntu 18 and openCV C++

pkg-config --modversion opencv returns: 3.4.10

g++ --version returns: g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

Yet compiling the sample decolor.cpp with

g++ -std=c++11 decolor.cpp -o fish -I /home/a/Downloads/installation/OpenCV-3.4/include/opencv2  -L /home/a/Downloads/installation/OpenCV-3.4/lib -lopencv_core -lopencv_highgui

returns

decolor.cpp:18:10: fatal error: opencv2/photo.hpp: No such file or directory

Indeed line 18 is:

 #include "opencv2/photo.hpp"

However

 dir /home/a/Downloads/installation/OpenCV-3.4/include/opencv2

shows photo.hpp sitting there

What am am I doing wrong? Perhaps some environment variables want change?

#include "opencv2/pfile or directoryhoto.hpp" returns No such

freshly installed Ubuntu 18 and openCV C++

pkg-config --modversion opencv returns: 3.4.10

g++ --version returns: g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

Yet compiling the sample decolor.cpp with

g++ -std=c++11 decolor.cpp -o fish -I /home/a/Downloads/installation/OpenCV-3.4/include/opencv2  -L /home/a/Downloads/installation/OpenCV-3.4/lib -lopencv_core -lopencv_highgui

returns

decolor.cpp:18:10: fatal error: opencv2/photo.hpp: No such file or directory

Indeed line 18 is:

 #include "opencv2/photo.hpp"

However

 dir /home/a/Downloads/installation/OpenCV-3.4/include/opencv2

shows photo.hpp sitting there

What am am I doing wrong? Perhaps some environment variables want change?

#include "opencv2/pfile or directoryhoto.hpp" "opencv2/pfoto.hpp" returns No suchsuch file or directory

freshly installed Ubuntu 18 and openCV C++

pkg-config --modversion opencv returns: 3.4.10

g++ --version returns: g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

Yet compiling the sample decolor.cpp with

g++ -std=c++11 decolor.cpp -o fish -I /home/a/Downloads/installation/OpenCV-3.4/include/opencv2  -L /home/a/Downloads/installation/OpenCV-3.4/lib -lopencv_core -lopencv_highgui

returns

decolor.cpp:18:10: fatal error: opencv2/photo.hpp: No such file or directory

Indeed line 18 is:

 #include "opencv2/photo.hpp"

However

 dir /home/a/Downloads/installation/OpenCV-3.4/include/opencv2

shows photo.hpp sitting there

What am am I doing wrong? Perhaps some environment variables want change?