Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug' #6

Open
Alberl-Lee opened this issue Feb 27, 2023 · 2 comments
Open

Comments

@Alberl-Lee
Copy link

Alberl-Lee commented Feb 27, 2023

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' `

@tonsky
Copy link
Contributor

tonsky commented Feb 27, 2023

Any idea how to fix?

@Alberl-Lee
Copy link
Author

Alberl-Lee commented Feb 28, 2023

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

NVIDIAGameWorks/PhysX#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants