2020-04-27, 13:00
Hello,
Sorry for the bad english but i need to use google translate.
my intention is to start developing a pvr client, but i have to start getting familiar with c ++ too.
I started by developing an addon in Python, and now I would like to switch to c ++ but I have problems getting the documentationfor create the development environment and compile the pvr.demo.
The first thing I did was to download the Kodi source with Git, following this:
https://github.com/xbmc/xbmc/blob/master...Windows.md
then I manually compiled by following from point 6 the readme.md.
Now I find a path of this type: D:\Projects\xbmx\kodi-build\
But now?
If I want compile pvr.demo-Master and follow this: https://forum.kodi.tv/showthread.php?tid=219166, which path should i use?
If I do:
make -DADDONS_TO_BUILD = "pvr.demo" -DADDON_SRC_PREFIX = "D:\Projects" -DCMAKE_BUILD_TYPE = Debug -G "Visual Studio 16 2019" -DCMAKE_USER_MAKE_RULES_OVERRIDE = "D: \ Projects \ xbmx project" \ c-flag-overrides.cmake "-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX =" D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake "-DCMAKE_INSTALL_PREFIX =" D:\Projects\xbmx\addons" -DBUILD_DIR ="D:\Projects\xbmx\xbmc\project\cmake\addons\build"-DPACKAGE_ZIP = 1" D:\Projects\xbmx\xbmc\project\cmake\addons" to get started, these problems come up:
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeRCInformation.cmake:27 (include):
include could not find load file:
D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\c-flag-overrides.cmake
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.17/Modules/Platform/Windows-MSVC.cmake:439 (enable_language)
C:/Program Files/CMake/share/cmake-3.17/Modules/Platform/Windows-MSVC.cmake:423 (__windows_compiler_msvc_enable_rc)
C:/Program Files/CMake/share/cmake-3.17/Modules/Platform/Windows-MSVC-C.cmake:5 (__windows_compiler_msvc)
C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeCInformation.cmake:48 (include)
CMakeLists.txt:2 (project)
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeCXXInformation.cmake:89 (include):
include could not find load file:
D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "FindKodi.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Kodi", but
CMake did not find one.
Could not find a package configuration file provided by "Kodi" with any of
the following names:
KodiConfig.cmake
kodi-config.cmake
Add the installation prefix of "Kodi" to CMAKE_PREFIX_PATH or set
"Kodi_DIR" to a directory containing one of the above files. If "Kodi"
provides a separate development package or SDK, be sure it has been
installed.
Sorry for the bad english but i need to use google translate.
my intention is to start developing a pvr client, but i have to start getting familiar with c ++ too.
I started by developing an addon in Python, and now I would like to switch to c ++ but I have problems getting the documentationfor create the development environment and compile the pvr.demo.
The first thing I did was to download the Kodi source with Git, following this:
https://github.com/xbmc/xbmc/blob/master...Windows.md
then I manually compiled by following from point 6 the readme.md.
Now I find a path of this type: D:\Projects\xbmx\kodi-build\
But now?
If I want compile pvr.demo-Master and follow this: https://forum.kodi.tv/showthread.php?tid=219166, which path should i use?
If I do:
make -DADDONS_TO_BUILD = "pvr.demo" -DADDON_SRC_PREFIX = "D:\Projects" -DCMAKE_BUILD_TYPE = Debug -G "Visual Studio 16 2019" -DCMAKE_USER_MAKE_RULES_OVERRIDE = "D: \ Projects \ xbmx project" \ c-flag-overrides.cmake "-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX =" D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake "-DCMAKE_INSTALL_PREFIX =" D:\Projects\xbmx\addons" -DBUILD_DIR ="D:\Projects\xbmx\xbmc\project\cmake\addons\build"-DPACKAGE_ZIP = 1" D:\Projects\xbmx\xbmc\project\cmake\addons" to get started, these problems come up:
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeRCInformation.cmake:27 (include):
include could not find load file:
D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\c-flag-overrides.cmake
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.17/Modules/Platform/Windows-MSVC.cmake:439 (enable_language)
C:/Program Files/CMake/share/cmake-3.17/Modules/Platform/Windows-MSVC.cmake:423 (__windows_compiler_msvc_enable_rc)
C:/Program Files/CMake/share/cmake-3.17/Modules/Platform/Windows-MSVC-C.cmake:5 (__windows_compiler_msvc)
C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeCInformation.cmake:48 (include)
CMakeLists.txt:2 (project)
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeCXXInformation.cmake:89 (include):
include could not find load file:
D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "FindKodi.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Kodi", but
CMake did not find one.
Could not find a package configuration file provided by "Kodi" with any of
the following names:
KodiConfig.cmake
kodi-config.cmake
Add the installation prefix of "Kodi" to CMAKE_PREFIX_PATH or set
"Kodi_DIR" to a directory containing one of the above files. If "Kodi"
provides a separate development package or SDK, be sure it has been
installed.