Develop PVR addons with new cmake build system - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136) +---- Thread: Develop PVR addons with new cmake build system (/showthread.php?tid=219166) |
RE: Develop PVR addons with new cmake build system - ray1112 - 2015-08-18 I tried build by post #1 instructions for linux with error: Home directory: /home/xbmc4 Kodi directory: /home/xbmc4/xbmc (15.1, bootstrap, configure, make, make install) git clone https://github.com/kodi-pvr/pvr.iptvsimple mkdir /home/xbmc4/pvr.iptvsimple/build cd /home/xbmc4/pvr.iptvsimple/build cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=/home/xbmc4 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/xbmc4/xbmc/addons -DPACKAGE_ZIP=1 /home/xbmc4/xbmc/project/cmake/addons make -C /home/xbmc4/pvr.iptvsimple/build Error: CMake Error at build/build/depends/lib/kodi/addon-helpers.cmake:19 (FILE): file Internal CMake error when trying to open file: /home/xbmc4/pvr.iptvsimple/pvr.iptvsimple/addon.xml for reading. Call Stack (most recent call first): build/build/depends/lib/kodi/addon-helpers.cmake:29 (addon_version) CMakeLists.txt:26 (build_addon) -- Configuring incomplete, errors occurred! I haven't addon.xml only addon.xml.in. RE: Develop PVR addons with new cmake build system - wsnipex - 2015-08-18 you're mixing stuff up. You're trying to use the kodi addon buildsystem from the addon dir. Besides that this way of building is meant specifically for addon developers. Either use the intree build system or clone the Isengard branch of the addon and just run: cmake . && make && sudo make install RE: Develop PVR addons with new cmake build system - ray1112 - 2015-08-19 (2015-08-18, 21:51)wsnipex Wrote: you're mixing stuff up. You're trying to use the kodi addon buildsystem from the addon dir.Thank you wsnipex. I cloned 3 dirs and cmake && make && sudo make install: git clone https://github.com/Pulse-Eight/platform git clone https://github.com/xbmc/kodi-platform git clone https://github.com/kodi-pvr/pvr.iptvsimple (Isengard branch) OK. Addon is working now. RE: Develop PVR addons with new cmake build system - scarecrow420 - 2015-09-12 hey all, Im on windows and previously have been able to use the "prepare-addons-dev.bat" scropt posted earlier in this thread. Im not sure when the last time I fully rebuilt my dev environment is, but in trying to do it today im getting errors. I was on an older cmake 3.1 so I tried updating to the latest cmake 3.3.1 but still getting the same problem. It mentions VS2015, which I do have installed, but have always used VS2013 for kodi and pvr addons without problems in the past (even after I'd installed VS2015). The cmake magic is a bit beyond me, Ive tried to set "Visual Studio 14" instead of 12 in the batch file, but still get the same error. Any help much appreciated! Code: -------------------------------------------------- This is the command the the bat file runs cmake "%ADDONS_PATH%" -G "Visual Studio 12" ^ -DCMAKE_BUILD_TYPE=Debug ^ -DCMAKE_USER_MAKE_RULES_OVERRIDE="%SCRIPTS_PATH%/c-flag-overrides.cmake" ^ -DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX="%SCRIPTS_PATH%/cxx-flag-overrides.cmake" ^ -DCMAKE_INSTALL_PREFIX=%WORKDIR%\addons ^ -DAPP_ROOT=%WORKDIR% ^ -DBUILD_DIR=%ADDONS_BUILD_PATH% ^ -DDEPENDS_PATH=%ADDON_DEPENDS_PATH% ^ -DPACKAGE_ZIP=1 ^ -DADDONS_TO_BUILD="%ADDONS_TO_BUILD%" with variables fully expanded: Code: cmake "D:\0\dev\repos\j\scarecrow420_xbmc\tools\buildsteps\win32\..\..\..\project\cmake\addons" RE: Develop PVR addons with new cmake build system - scarecrow420 - 2015-09-12 OK I managed to find what had occured. Since this change here: https://github.com/xbmc/xbmc/pull/7774 we now have to run the "bootstrap" step to get the binary addon referencee repository cloned down, before the cmake build steps can be rn So for any dumb windows devs like me that barely understand this new cmake system, you simply need to run \tools\buildsteps\win32\bootstrap-addons.bat Before you run the prepare-addons-dev.bat file from this thread RE: Develop PVR addons with new cmake build system - garbear - 2015-09-12 You can also cd into tools\buildsteps\win32 and run: Code: make-addons.bat install or specify a specific add-on: Code: make-addons.bat install pvr.demo Supposedly you can do: Code: make-addons.bat install pvr.* but this doesn't work for me, it simply builds all add-ons as if pvr.* were omitted RE: Develop PVR addons with new cmake build system - scarecrow420 - 2015-09-13 looks like that make-addons.bat only builds them with nmake, whereas as a PVR addon developer I needed the prepare-addons-dev.bat file from this thread, to have cmake generate Visual Studio projects etc so I can then work in Visual Studio from then on. It might be a good idea to actually submit the prepare-addons-dev.bat file from this thread into the repository since it does serve a purpose that isnt elsewhere achievable (without knowing all the explicit cmake commands yourself) also looks like the gitignore file should probably be updated to include the /project/cmake/addons/addons/* because once the bootstrap is run and the addon reference repository is cloned down into here, git status then reports all those files as pending commit. RE: Develop PVR addons with new cmake build system - zambilo76 - 2015-09-30 Hi all, I would like to get involved in this project and contribute. I have been making software for many year,, but I am not familiar with your project structure. Could any one help me setup my environment to get me started under ubuntu ... so I can start building this addon- and eventually get familiar with the code and bring my share to help the community ? Thanks in advance. (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. RE: Develop PVR addons with new cmake build system - garbear - 2015-09-30 You should check out README.ubuntu RE: Develop PVR addons with new cmake build system - pluckyhd - 2015-09-30 I am having trouble with the cmakes trying to build dev enviroment for VS2013 I get the following error (btw I don't have the bootsrap make for some reason mentioned above) Code: -- Processing C:/xbmctest/xbmc-15.2rc2-Isengard/project/cmake/addons/depends/com any help is appreciated I am new to this cmake stuff wanting to look at the pvr and see if I can build a new source RE: Develop PVR addons with new cmake build system - garbear - 2015-09-30 the error is Code: error: could not find git for clone of kodi-platform can't find git. try install msysgit or github's version of git for windows RE: Develop PVR addons with new cmake build system - bam80 - 2015-11-08 Having the same problem: (2015-08-18, 18:58)ray1112 Wrote: I tried build by post #1 instructions for linux with error: (2015-08-18, 21:51)wsnipex Wrote: you're mixing stuff up. You're trying to use the kodi addon buildsystem from the addon dir.Isn't it what was said in the post #1 instructions?: (2015-02-21, 22:58)FernetMenta Wrote: Although in-tree buildings works well, it is recommended to build an addon outside Kodi's tree. I have created a folder "build" in the source tree of the addon. (2015-08-18, 21:51)wsnipex Wrote: Either use the intree build systemHow to use the intree build system to build pvr addons only? (2015-08-18, 21:51)wsnipex Wrote: or clone the Isengard branch of the addon and just run: cmake . && make && sudo make installIs any instruction out there (wiki, etc.) which describes this method of building addons ("just run: cmake ...")? Thank you RE: Develop PVR addons with new cmake build system - bam80 - 2015-11-12 (2015-11-08, 22:50)bam80 Wrote: How to use the intree build system to build pvr addons only?Ok I found out in docs/README.linux how to build binary addons from the kodi tree: Code: $ make -C tools/depends/target/binary-addons PREFIX=/<system> Please help RE: Develop PVR addons with new cmake build system - franky384 - 2015-12-12 This new build-system is a fucking piece of shit RE: Develop PVR addons with new cmake build system - lucasoldi_646a - 2016-01-11 I all!! I've a problem to compile pvr.iptvsimple. I've done these steps Code: cd pvr.iptvsimple/ The result of cmake is this -> http://pastebin.com/raw/h9rM664s and the result of make -C is this -> http://pastebin.com/raw/fWsBVP27 But I don't find the addon compiled in /home/xbmc/progs/src/xbmc/addons. Where is my error? Thanks very muchh!!! Luca |