LNK2005 Error linking static openCV libraries with Visual Studio and QT Creator

前端 未结 3 1474
甜味超标
甜味超标 2021-01-18 12:41

I built the static openCV 2.3 libraries. My project currently uses the dynamic ones with no problem, but now I want to use static libs. I added the libs to my .pro file:

3条回答
  •  死守一世寂寞
    2021-01-18 13:21

    On CMake, when building the openCV static libraries, besides unchecking BUILD_SHARED_LIBS I also unchecked BUILD_WITH_STATIC_CRT, and that took care of that particular problem

提交回复
热议问题