OpenCV doesn't work with Visual Studio

后端 未结 4 986
轮回少年
轮回少年 2021-01-03 02:51

I just installed openCV ver. 3.00 beta on my computer and I\'m trying to test it with VS2013. I followed quick start guide:

1) Installation for windows, using pre-bu

4条回答
  •  我在风中等你
    2021-01-03 03:19

    After a long time of different attempts, I found the answer here. For x64 project, in addition to what I did above, you have to:

    1) Restart your PC after setting enviromental variables. Variable Path was not updated on my computer without restart.

    2) In addition to libraries added above, you have to add (although, for this example some of them might not be used):

    ippicvmt.lib
    IlmImfd.lib
    libtiffd.lib 
    libpngd.lib
    libjasperd.lib
    libjpegd.lib
    libwebpd.lib
    zlibd.lib
    comctl32.lib
    

    Edit: I recently had to install it again on a new PC. As user1060873 pointed out, you have to add only the libraries located in your $OPENCV$/lib folder. For example, on my PC it is C:\opencv\build\x64\vc12\lib. Note, that for debug mode you should add opencv_world310d.lib, and for release opencv_world310.lib

提交回复
热议问题