using static libraries instead of dynamic libraries in opencv

后端 未结 5 1070
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 08:31

I have a project in visual studio 2012 which uses opencv dynamic libraries. It compiled, linked and worked well.

I want to change the project so it uses static libra

5条回答
  •  甜味超标
    2020-12-01 08:42

    I am able to get the static libraries working in VS 2013 by changing the project's Runtime Library to /MTd

    enter image description here

    and then including these Linker >> Input >> Additional Dependencies:

    opencv_core248d.lib
    opencv_imgproc248d.lib
    opencv_highgui248d.lib
    opencv_ml248d.lib
    opencv_video248d.lib
    opencv_features2d248d.lib
    opencv_calib3d248d.lib
    opencv_objdetect248d.lib
    opencv_contrib248d.lib
    opencv_legacy248d.lib
    opencv_flann248d.lib
    libpngd.lib
    libtiffd.lib
    zlibd.lib
    IlmImfd.lib
    libjasperd.lib
    libjpegd.lib
    comctl32.lib
    gdi32.lib
    vfw32.lib
    

提交回复
热议问题