Compiling OpenCV for Visual C++ 9.0

微笑、不失礼 提交于 2020-01-25 12:21:51

问题


I looked at many places but could not find anything telling me how to buld the lib files. I know how to link them, but openCV install folder only contains .a files. I cant find an sln file or dsp. How can I make the lib files? Right now all the samples get linker problems because the lib files dont exist.

Thanks


回答1:


The Windows installer (.exe) for OpenCV 2.0 does not come with the binaries pre-built for vc++, nor does it have the .vcproj files for using vc++ to build them. You need to have cmake, which is available for free on the web. I used the GUI. Use that to build .vcproj files with which you can compile everything in VC++ 2008 or whatever. There are some gotchas. The question has been asked and answered.




回答2:


.a files are libraries. On a unix platform they're typically statically linked libraries.

If you're on windows however they should be .dll files. How did you compile OpenCV and does it support compiling on windows?




回答3:


In order to create the .sln files you need to run CMake on the OpenCV folder containing makefiles.



来源:https://stackoverflow.com/questions/2164276/compiling-opencv-for-visual-c-9-0

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