How to install OpenCV 2.0 on win32

前端 未结 4 1491
無奈伤痛
無奈伤痛 2020-11-30 09:21

I need to install OpenCV on Win32. I do not have it installed currently. I downloaded OpenCV-2.0.0a-win32.exe and ran it. What the heck do I do now? There are no .lib\'s a

相关标签:
4条回答
  • 2020-11-30 10:04

    If you've installed OpenCV-2.0.0a-win32.exe then it will install pre-built DLLs and libs. Then you just have to follow the instructions in this tutorial.

    I recommend that you wipe the folder you previously installed OpenCV2.0 in and reinstall it.

    Update:

    Well sorry it didn't work out. I suggest the following then: check out the latest version from the SVN repository, https://code.ros.org/svn/opencv/trunk/opencv with any SVN client - I use TortoiseSVN.

    Then run CMake (I see you've already installed it) on the source folder and then compile the Solution file. This should work - it does for me.

    I apologize for my old answer - I had started off with OpenCV a few months ago in the same way and assumed that downloading the Gold version would still work - apparently not.

    OMP

    The OMP issue may arise from the checked Enable OpenMP in the CMake config. Try unchecking that .. might solve your initial problem.

    0 讨论(0)
  • 2020-11-30 10:10

    I followed Jive Dadson's procedure to get OpenCV2.0 to work on Visual Studio 2010 Express (disabled OMP). All went good until compilation of the generated stuff in Debug and Release. In both cases got this error: "LINK : fatal error LNK1181: cannot open input file '../../lib/Release/cv200.lib'" in debug the only difference is that the library is cv200d.lib.

    EDIT: I solved by downloading the latest svn snapshot for OpenCV2.0. One additional thing on Vista/7: it may be good to execute CMake as administrator.

    0 讨论(0)
  • 2020-11-30 10:15
    1. Download OpenCV installer for Windows
    2. Read OpenCV-2.0.0a-win32.Readme.Please.txt
    3. Follow OpenCV with Visual C++ 6.0, 2005 Express, and 2008 Express in order to create project using OpenCV
    0 讨论(0)
  • 2020-11-30 10:20

    For version 2.0, you must build the project from source.

    Here's what you will need:

    1. The OpenCV installer.
    2. CMake. Here's the CMake installer.
    3. Instructions for using CMake to install OpenCV-2.0.01-win32. Those instructions need an extra step if you are using a vc++ Express edition. In that case you must un-check ENABLE_OPENMP when running the CMake GUI.
    4. Instructions for setting up an application project. (Thanks to mloskot for this find.)
    0 讨论(0)
提交回复
热议问题