简体   繁体   中英

Build the static Opencv library with multi-threaded debug DLL (/MDd) C runtime library

I am now trying to build opencv with cmake, and if I use the following command:

cmake -DBUILD_SHARED_LIBS=OFF ..

I can build a static OPENCV libary. However, the built library links C run time library statically. In VC2010, it uses Multi-threaded Debug (/MTd) option. What I expects is to link C run time library dynamically, and that is using /MDd option in VC2010, then what can I do to make it possible? Thanks.

-DBUILD_WITH_STATIC_CRT=OFF添加到CMake命令行:

cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_WITH_STATIC_CRT=OFF ..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM