Start by executing:
./bootstrap
To build all PVR addons and install them directly (so that you just have to enable them in Kodi), execute the following (change the prefix path to your actual installation):
./configure --prefix=/usr/local/lib/kodi
make install
To build all PVR addons and package them into individual ZIP archives (which can then be installed manually), execute the following:
./configure
make zip
The build method described above excludes addons that depend on runtime libraries. This is because the installed versions of the dependend libraries on the build-machine and the target machine have to match exactly. Therefore this addons cannot be distributed easily.
Distribution package maintainers and users who build the addons on their target machine can enable the build of addons with dependencies:
./configure --enable-addons-with-dependencies
- Filmon addon: jsoncpp, crypto++, curl
- IPTV Simple addon: zlib
- Install Visual Studio Express 2013
- Run
project\BuildDependencies\DownloadBuildDeps.bat
- Open the solution from
project\VS2010Express\xbmc-pvr-addons.sln
- Select the wanted configuration ("Debug" or "Release")
- Press F7 to build the solution
- The Windows build system unfortunately doesn't generate ZIP archives of the addons. A workaround is to copy the desired addons to your Kodi installation manually, e.g. by copying
addons\pvr.demo\addon\*.*
toYOUR_KODI_DIR\addons\pvr.demo\*.*
First ensure that you have separate working build environments for both Kodi and the addons, then import the addon projects into the Kodi solution like this:
- Open "XBMC for Windows.sln"
- Right-click the solution in Solution Explorer and select Add -> Existing Project
- Change file type filter to "Solution Files (*.sln)"
- Browse to and select the PVR addons solution (xbmc-pvr-addons.sln)
- Dismiss any warnings about projects already existing in the solution
- If you only develop on certain addons you can remove unwanted addon projects from the XBMC solution
The PVR addon projects already contain a PostBuild action that only runs when part of the XBMC solution, that copies their output into the Kodi's solution's addon directory. This mean no manual copying is needed like when building the addons standalone.
Remember, if you make any modifications to the Kodi solution to include PVR addons, don't include those changes when you do pull requests!