SkiaBuild icon indicating copy to clipboard operation
SkiaBuild copied to clipboard

value 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug'

Open Alberl-Lee opened this issue 2 years ago • 2 comments

windows 10 x64,debug model error : `1>skia_x64_debug.lib(skia.SkColor.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2'‘

1>skia_x64_debug.lib(skia.SkColor.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug' `

Alberl-Lee avatar Feb 27 '23 07:02 Alberl-Lee

Any idea how to fix?

tonsky avatar Feb 27 '23 17:02 tonsky

Search the problem on google,has some solution to change the cmake config: https://discourse.cmake.org/t/mt-staticrelease-doesnt-match-value-md-dynamicrelease/5428/4

https://github.com/NVIDIAGameWorks/PhysX/issues/179

set_property(TARGET MyVtkAppOrLibName PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$CONFIG:Debug:Debug>")

cmakeSwitch name="NV_USE_DEBUG_WINCRT" cmakeSwitch name="NV_USE_STATIC_WINCRT"

in Visual Studio, skia_x64_release.lib match MT_StaticRelease, vs config is /MT skia_x64_debug.lib match MDd_DynamicDebug, vs config is /MDd

Alberl-Lee avatar Feb 28 '23 10:02 Alberl-Lee