openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.85k stars 2.55k forks source link

Error compiling video\videoGrabberExample / videoInput.lib / under Windows 11 / VS 2022 #7886

Closed moebiussurfing closed 5 months ago

moebiussurfing commented 5 months ago

Hello, I am having these errors since recent updates from the main branch...

Any idea?

K:\Documents\of_12\openFrameworks\examples\video\videoGrabberExample

Severity    Code    Description Project File    Line    Suppression State   Details
Error   MSB6006 "link.exe" exited with code 1319.   videoGrabberExample C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets   1151        
Error   LNK1319 2 mismatches detected   videoGrabberExample K:\Documents\of_12\openFrameworks\examples\video\videoGrabberExample\bin\videoGrabberExample_debug.exe  1       
Error   LNK2038 mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj    videoGrabberExample K:\Documents\of_12\openFrameworks\examples\video\videoGrabberExample\videoInput.lib(videoInput.obj) 1       
Error   LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj    videoGrabberExample K:\Documents\of_12\openFrameworks\examples\video\videoGrabberExample\videoInput.lib(videoInput.obj) 1       

image

danoli3 commented 5 months ago

Release mode will work

Debug mode fix:

danoli3 commented 5 months ago

Fixed via #7888