I have been trying to install opencv4.0.1 on ubuntu for a few weeks now. I have followed the opencv installation instructions
and I am able to make and compile the library, yet after installation, pkgconfig still cant find the library, and when I try to build programs, I get things like missing library errors.
$ pkg-config --cflags opencv Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found