Building OpenCV 2.49 with visual studio 2012

早过忘川 提交于 2019-12-11 19:15:29

问题


I try to build the OpenCV libraries with visual studio 2012 but I always get the following Error:

LINK : fatal error LNK1104: cannot open file "....\lib\Debug\opencv_core249d.lib".

I downloaded the latest code from the git repository and used Cmake 2.8.10.2 to create the projects. I also disabled the cuda support due to the cuda 5.0 and visual 2012 incompatibility.


回答1:


Since OpenCV 2.43 does not work well with Visual Studio 2012. So I wrote a simple tutorial.

http://answers.opencv.org/question/6495/visual-studio-2012-and-rtlfreeheap-error/#6603

But your OpenCV edition is 2.49. I'm not sure whether this will work. You can still try it. Good luck.




回答2:


I had the same problem (In visual studio 2008). The problem was that I had included a ; (semicolon) between all my Additional Dependencies (opencv_core249d.lib opencv_imgproc249d.lib etc....). When I removed the semicolons it worked.



来源:https://stackoverflow.com/questions/14153781/building-opencv-2-49-with-visual-studio-2012

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