cmake error - cannot find opencv libraries or headers

有些话、适合烂在心里 提交于 2019-12-12 02:08:06

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!