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?