Kodi new compilation link errors (windows, VS 2022, main branch)
#1
Trying to compile it for the first time (followed the exact official instructions). Two errors:

"Severity    Code    Description    Project    File    Line    Suppression State Error    LNK2038    mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in WinMain.obj    kodi    C:\Users\boazn\kodi\kodi-build\pcrecpp.lib(pcrecpp.obj)    1    "
Severity    Code    Description    Project    File    Line    Suppression State Error    LNK2038    mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in WinMain.obj    kodi    C:\Users\boazn\kodi\kodi-build\pcrecpp.lib(pcrecpp.obj)    
1    

Any idea??
Reply
#2
Use Release. I havent had Debug actually run inside VS, but havent bothered to work out whats going on. Your first error message is essentially saying its trying to use a Release version of the runtime, but its built against Debug.
Reply
#3
Worked, Thanks.
Now, is it possible to make the installer from VS? or I need to run the comp' again by buildsteps?
Reply
#4
I honestly couldnt say. I thought there should be a target in the VS project that would create the installer, i just havent tried first hand sorry.

EDIT:
Looking at the BuildSetup.bat https://github.com/xbmc/xbmc/blob/master...#L182-L237, it looks like the packaging is only available if you execute that batch script, and not from in the VS project.
Reply



Logout Mark Read Team Forum Stats Members Help
Kodi new compilation link errors (windows, VS 2022, main branch)0
This forum uses Lukasz Tkacz MyBB addons.