简体   繁体   中英

Building OpenCV 2.49 with visual studio 2012

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM