using static libraries instead of dynamic libraries in opencv

后端 未结 5 1068
隐瞒了意图╮
隐瞒了意图╮ 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:45

    If you are building using CMake then it is very simple because it is one of the OpenCV CMake options; just set BUILD_WITH_STATIC_CRT to off. Eg. on the CMake command-line

    -DBUILD_WITH_STATIC_CRT=OFF
    

提交回复
热议问题