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
#5
This just happened to me too.  I ran cmake for Kodi from the command line for Windows x64.

It seems like there is a debug/release conflict and pcrecpp is only being built as a release library.  When I switch the build to release in VS 2022 Kodi all builds. 

This makes debugging a bit of a problem.  I haven't found where in the cmake scripts Kodi builds pcrecpp.
Reply
#6
I may sound like a broken record, but will keep trying my luck anyway

Please, can the python dependency for the Kodi 21 Master Windows build be updated from the current 3.8.15 to 3.11.x please. The Windows build used to be the cutting edge for developing addons, but now it is lagging behind all other platforms.
Python 3.8 is already on extended support, and Extended support for Python 3.8 ends on October 2024
Kodi 21 Windows 10 and 11 | 21 Xbox One X | 21 Linux Mint Virginia XFCE | CoreELEC NO 21 nightly S905X4 aarch64
Reply
#7
For the Kodi 21 release it's to late to bump the Python version for Windows. But people are actively working on making it possible to build Python as part of a normal Kodi build (like many other dependencies) and this should make it easier to keep Python up-to-date for all platforms, including Windows. For Kodi 22 Python for Windows should be back in line Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi new compilation link errors (windows, VS 2022, main branch)0