2016-02-15, 11:57
you have to use the openelec buildsystem. it's a cross build, you cannot build using your host tools.
(2016-02-29, 11:19)gadjou Wrote: Hi,
Following the readme, I was able to build the whole kodi APK FOR ANDROID. (already proud of that ;-))
Now, I would like to replace the original pvr.iptvsimple addon with this one: https://github.com/simphax/pvr.iptvsimpl.../recording.
But I don't know what to do exactly, and when in the building process (I tried replacing the source code and calling make again without success)
Could someone advice me how to.
Info: I'm building the Jarvi branch on ubuntu 14.04 64 bits.
Thanks
Jérôme
call "%VS120COMNTOOLS%..\..\VC\bin\vcvars32.bat"
SET BASE_PATH=%CD%\..\project\cmake
SET SCRIPTS_PATH=%BASE_PATH%\scripts\windows
SET ADDONS_PATH=%BASE_PATH%\addons
SET TEMP=%CD%\tmp
mkdir %TEMP%
cmake -G "NMake Makefiles" ^
-DADDONS_TO_BUILD="pvr.dvbviewer" ^
-DCMAKE_INSTALL_PREFIX="output" ^
-DCMAKE_USER_MAKE_RULES_OVERRIDE="%SCRIPTS_PATH%/c-flag-overrides.cmake" ^
-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX="%SCRIPTS_PATH%/cxx-flag-overrides.cmake" ^
-DPACKAGE_ZIP=ON ^
-DPACKAGE_DIR="%CD%/zips" ^
"%ADDONS_PATH%"
nmake package-addons
$ grep -h CXX_FLAGS ./build/kodi-platform/src/kodi-platform-build/CMakeFiles/kodiplatform.dir/flags.make ./build/p8-platform/src/p8-platform-build/CMakeFiles/p8-platform.dir/flags.make ./build/tinyxml/src/tinyxml-build/CMakeFiles/tinyxml.dir/flags.make ./pvr.dvbviewer-prefix/src/pvr.dvbviewer-build/CMakeFiles/pvr.dvbviewer.dir/flags.make
CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
$ grep -h CXX_FLAGS ./build/kodi-platform/src/kodi-platform-build/CMakeFiles/kodiplatform.dir/flags.make ./build/p8-platform/src/p8-platform-build/CMakeFiles/p8-platform.dir/flags.make ./build/tinyxml/src/tinyxml-build/CMakeFiles/tinyxml.dir/flags.make ./pvr.dvbviewer-prefix/src/pvr.dvbviewer-build/CMakeFiles/pvr.dvbviewer.dir/flags.make
CXX_FLAGS = /MP /DWIN32 /D_WINDOWS /W3 /GR /Zi /EHsc /arch:SSE2 /D_DEBUG /MDd /Ob0 /Od /RTC1 /D_HAS_ITERATOR_DEBUGGING=0 /D_SECURE_SCL=0
CXX_FLAGS = /MP /DWIN32 /D_WINDOWS /W3 /GR /Zi /EHsc /arch:SSE2 /D_DEBUG /MDd /Ob0 /Od /RTC1 /D_HAS_ITERATOR_DEBUGGING=0 /D_SECURE_SCL=0
CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
-DADDONS_TO_BUILD=pvr.vdr.vnsi
-DCMAKE_BUILD_TYPE=Release
-DADDON_SRC_PREFIX=$WORKDIR/$PF/src/
-DCMAKE_INSTALL_LIBDIR=$PREFIX/lib/kodi/
(2015-02-21, 22:58)FernetMenta Wrote: We have changed the build system for PVR addons. Now they are built with cmake and every addon has its own repository.
CMake (http://www.cmake.org/Wiki/CMake) generates the build environment required for a particular platform.
Team-Kodi provides the infrastructure to build PVR addons for the supported plattforms. The addons are maintained in their
own repositories from where the build process loads them. The repository is specified in a .txt file in the Kodi source
tree. For the pvr.demo addon this is in home/xbmc/progs/src/xbmc/project/cmake/addons/addons/pvr.demo/pvr.demo.txt.
You can clone this repository to any location of your system. You also need to clone the Kodi repository which contains
common files, libs, and API for the addons.
For setup of an development environment follow these steps. The examples are with absolute paths. You can substitute
the path to match your systems.
Windows:
Change to addons folder:
Code:cd D:\Projects\xbmx\xbmc\project\cmake\addons\build
Generate build environment with config for debugging. This command generates a Visual Studio 2013 solution.
Code:cmake -DADDONS_TO_BUILD="pvr.demo" -DADDON_SRC_PREFIX="D:\Projects" -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 12" -DCMAKE_USER_MAKE_RULES_OVERRIDE="D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\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\xbmc\addons" -DBUILD_DIR="D:\Projects\xbmx\xbmc\project\cmake\addons\build" -DPACKAGE_ZIP=1 "D:\Projects\xbmx\xbmc\project\cmake\addons"
Open Visual Studio, load and build this solution:
Code:D:\Projects\xbmx\xbmc\project\cmake\addons\build\kodi-addons.sln
Setup Development Environment.
Open Visual Studio, load Kodi solution. Then add existing solution:
Code:D:\Projects\xbmx\xbmc\project\cmake\addons\build\pvr.demo-prefix\src\pvr.demo-build\pvr.demo.sln
Create post-build step. Required to copy files for debugging
Create Post-Build Event in Visual Studio
Code:tbd
For a more convenient method see post #9, credits to Montellese who provided this script.
Quote:opensource@opensource-PC MINGW64 /c/xbmc/project/cmake/addons/build (Jarvis)
$ cmake -DADDONS_TO_BUILD="pvr.demo" -DADDON_SRC_PREFIX="C:\xbmc" -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 12" -DCMAKE_USER_MAKE_RULES_OVERRIDE="C:\xbmc\project\cmake\scripts\windows\c-flag-overrides.cmake" -DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX="c:\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake" -DCMAKE_INSTALL_PREFIX="C:\xbmc\addons" -DBUILD_DIR="C:\xbmc\project\cmake\addons\build" -DPACKAGE_ZIP=1 "C:\xbmc\project\cmake\addons"
CMake Error: Error: generator : Visual Studio 12 2013
Does not match the generator used previously: NMake Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
Quote:sudo cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=/home/plyczko/kodi/
-DCMAKE_BUILD_TYPE=Debug -DPACKAGE_ZIP=1 /home/plyczko/kodi/xbmc/project/cmake/addons
Quote:-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Addon source tarball caching is enabled
-- ZIP packaging enabled (destination: /home/plyczko/kodi/pvr.iptvsimple/build/build/zips)
-- Building following addons: pvr.iptvsimple
-- Overriding addon source directory prefix: /home/plyczko/kodi
-- Processing /home/plyczko/kodi/xbmc/project/cmake/addons/depends/common/platform/platform.txt
-- platform url: https://github.com/Pulse-Eight/platform.git
-- Processing /home/plyczko/kodi/xbmc/project/cmake/addons/depends/common/kodi-platform/kodi-platform.txt
-- kodi-platform url: https://github.com/xbmc/kodi-platform
-- kodi-platform depends: tinyxml;platform
-- Processing /home/plyczko/kodi/xbmc/project/cmake/addons/depends/common/tinyxml/tinyxml.txt
-- tinyxml url: http://mirrors.kodi.tv/build-deps/source...2_2.tar.gz
-- No platform specific file /home/plyczko/kodi/xbmc/project/cmake/addons/depends/linux/CMakeLists.txt found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/plyczko/kodi/pvr.iptvsimple/build