问题
I've set the opencv environment variable and updated the path but I'm still getting an error when I try to make the opencv aruco library with cmake gui on windows - the error says
"OpenCV required but some headers or libs not found. Please specify OpenCV directory using OpenCV_DIR env. variable"
I've looked at the FindOpenCV.cmake file where the error is coming from, but I can't tell what part is causing an error and was wondering if anyone else has had similar problems or knows how to fix it it would be much appreciated!
回答1:
@DeirdreMeehan are you getting error as shown in the following image?
If this is the same error you are getting then you are supposed to link openCV directory from your computer to ArUco. That is you add OpenCV path in to value field where the name field is "OpenCV_DIR".
来源:https://stackoverflow.com/questions/35527562/cmake-error-cannot-find-opencv-libraries-or-headers