Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 27 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,39 @@ This is the Pluto.tv PVR client addon for [Kodi](https://kodi.tv). It provides K

When building the add-on you have to use the correct branch depending on which version of Kodi you're building against.
If you want to build the add-on to be compatible with the latest kodi `master` commit, you need to checkout the branch with the current kodi codename.
Also make sure you follow this README from the branch in question.
The addon `inputstream.adaptive` must be built at the same time. Also make sure you follow this README from the branch in question.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inputstream.adaptive add-on can be build at any time, this is completely unrelated to building pvr.plutotv, as it is a run time dependency, not a build time dependency, thus, not related to pvr.plutotv build procedure.

We need to distinguish between build requirements, which are to be described here and runtime-requirements, which should not be part of this README.

Please remove all inputstream.adaptive information you have added to this file.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have considered this suggestion, I agree with it. Without it, however, I believe the changes to the README are insignificant. I will be closing the pull request. Thank you.


### Linux

The following instructions assume you will have built Kodi already in the `kodi-build` directory
suggested by the README.

1. `git clone --branch master https://github.com/xbmc/xbmc.git`
2. `git clone --branch Nexus https://github.com/kodi-pvr/pvr.plutotv.git`
3. `cd pvr.plutotv && mkdir build && cd build`
4. `cmake -DADDONS_TO_BUILD=pvr.plutotv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/kodi-build/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons`
5. `make`

The addon files will be placed in `../../xbmc/kodi-build/addons` so if you build Kodi from source and run it directly
The following instructions assume you will not have built Kodi already in the `kodi-build` directory
suggested by the README, as `inputstream.adaptive` must be built also. Please refer to the build link section on prerequisites for building Kodi from source.

1. `cd $HOME`
2. `sudo git clone --branch Piers https://github.com/xbmc/xbmc.git`
3. `sudo mkdir kodi-build`
4. `cd kodi-build`
5. `sudo cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gl -DENABLE_INTERNAL_FFMPEG=ON`
6. `cd $HOME`
7. `sudo git clone --branch Piers https://github.com/xbmc/inputstream.adaptive`
8. `sudo git clone --branch Piers https://github.com/kodi-pvr/pvr.plutotv`
9. `cd inputstream.adaptive && sudo mkdir build && cd build`
10. `sudo cmake -DADDONS_TO_BUILD=inputstream.adaptive -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../kodi-build/addons -DPACKAGE_ZIP=1 ../../kodi/cmake/addons`
11. `sudo make`
12. `cd $HOME`
13. `cd pvr.plutotv && sudo mkdir build && cd build`
14. `sudo cmake -DADDONS_TO_BUILD=pvr.plutotv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../kodi-build/addons -DPACKAGE_ZIP=1 ../../kodi/cmake/addons`
15. `sudo make`
16. `cd $HOME/kodi-build`
17. `sudo cmake --build . -j$(getconf _NPROCESSORS_ONLN)`
18. `./kodi-x11`


The addon files will be placed in `$HOME/kodi-build/addons` so if you build Kodi from source and run it directly
the addon will be available as a system addon.

##### Useful links

* [Kodi's PVR user support](https://forum.kodi.tv/forumdisplay.php?fid=167)
* [Kodi's Development Wiki](https://kodi.wiki/view/Development)
* [Kodi's PVR development support](https://forum.kodi.tv/forumdisplay.php?fid=136)
* [Kodi's build link](https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md)