Hello,
I tried the turorial with Raspbian Stretch and OpenCV 3.4.1 compiled on the Raspbian Pi 3.
I ran into the make-error “No rule to make target …” for libjpeg.so during compilation.
The problem was, that in OpenCVModules.cmake the paths to the external libraries were given as absolute paths for the Linux filesystem. After removing these absolute paths compilation worked.
Maybe someone else encountered this problem as well – therefore I just want to post this solution.
I don’t know if there is a better way, as I am no expert on this stuff.
Hope it still helps,
Sven