问题
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