PVR, CMake, MSVCRT linking problem in Win32
#1
Hi All,

I'm developing a PVR dll using the latest CMake method. I have some weird linking problem in Win32.

By default the project and depend libs are built using /MD (dynamic linking) and my code hangs in very simple msvcrt functions like file open, fileno, etc.
If I am overriding MD to MT in all libraries, everything is working well.

I suspect the problem is when Kodi hooks the msvcrt functions after loading my dll.

BTW I am using the following cmake rules:

...
-DCMAKE_BUILD_TYPE=Release
-G "Visual Studio 12"
-DCMAKE_USER_MAKE_RULES_OVERRIDE = "...\xbmc\project\cmake\scripts\windows\c-flag-overrides.cmake"
-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX = "...\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake"

Best regards,
Zoltan
Reply
#2
It seems like it is ok with Kodi 15.0, the problem is only with (<=?) 14.2.

Is the new PVR CMake infrastructure supported by 14.2 as well?

Zoltan
Reply
#3
no it is new in 15
Reply

Logout Mark Read Team Forum Stats Members Help
PVR, CMake, MSVCRT linking problem in Win320