I found the solution here and had to make changes in about five files. https://answers.opencv.org/question/225224/opencvcvh-not-found/