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 - ironic_monkey - 2016-02-15 you have to use the openelec buildsystem. it's a cross build, you cannot build using your host tools. RE: Develop PVR addons with new cmake build system - gadjou - 2016-02-29 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.iptvsimple/tree/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 RE: Develop PVR addons with new cmake build system - gadjou - 2016-03-03 (2016-02-29, 11:19)gadjou Wrote: Hi, Sorry to insist, but still no luck. As stated in this readme, I created a pvr.iptvsimple.txt into xbmc/project/cmake/addons/addons/pvr.iptvsimple.txt wich reference my repository. Unfortunately, the building processes keep overwriting it with the original repository. What am I making wrong? RE: Develop PVR addons with new cmake build system - manül - 2016-03-16 I recently reactivated my build environment on Windows (Linux & cross compilation is still working fine) and noticed that the custom CMAKE_C/CXX_FLAGS in project/cmake/scripts/windows/c-flag-overrides.cmake and project/cmake/scripts/windows/cxx-flag-overrides.cmake are not honored any more. I'm executing the following batch file on Windows (roughly copied from tools/buildsteps/win32/make-addons.bat): Code: call "%VS120COMNTOOLS%..\..\VC\bin\vcvars32.bat" According to cxx-flag-overrides.cmake CMAKE_CXX_FLAGS should be set to "/MP /DWIN32 /D_WINDOWS /W3 /GR /Zi /EHsc /arch:SSE2", however checking the cflags afterwards: Code: $ 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 Additionalthe build will break after running "nmake package-addons" a second time. The reason for this is the build environment will now magically honor the custom cflags, but only for some dependencies: Code: $ 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 The only way to get the build environment honor the custom cflags all the time was to replace CMAKE_C/CXX_FLAGS and their companions with their ..._INIT counterparts. So CMAKE_CXX_FLAGS will become CMAKE_CXX_FLAGS_INIT, etc.. A second problem was that the call in https://github.com/xbmc/xbmc/blob/master/project/cmake/scripts/common/addon-helpers.cmake#L109 results in an empty string. The only way to fix this was to use $<TARGET_PDB_FILE:${target}> in the INSTALL-command below. Are those (especially the first) issues because of my build environment or is this actually a bug? RE: Develop PVR addons with new cmake build system - schorsch_76 - 2016-03-18 This is my first post here, so "Hi all!" I try to write an ebuild for gentoo for the new pvr.vdr.vnsi jarvis addon. It builds so fine, but it installs in the wrong location. I use the standard cmake procdure. I clone from https://github.com/kodi-pvr/pvr.vdr.vnsi.git. Cmake configures as: -DADDONS_TO_BUILD=pvr.vdr.vnsi -DADDON_SRC_PREFIX=$WORKDIR/$PF/src/ This "src" in ADDON_SRC_PREFIX is contains this data: https://github.com/kodi-pvr/pvr.vdr.vnsi/tree/master/src - $WORKDIR/$PF/src/ translates to the source of the addon. - The prefix for kodi and the addon is /usr. At the install stage it installs the shared data correctly to "/usr/share/kodi/addons/pvr.vdr.vnsi/", but the so file gets installed to "/usr/lib64/addons/pvr.vdr.vnsi". I expect it to get installed to "/usr/lib64/kodi/addons/pvr.vdr.vnsi" Do i need to use the "zip stage" to install it to the correct place or is there another cmake option to tune the location for the library but keep the share data at the correct place? I tried "-DCMAKE_INSTALL_PREFIX=/usr/lib/xbmc/addons" with "-DOVERRIDE_PATHS=1" but it was now all shifted (like expected) to /usr/lib/xbmc/addons. So, how do i tweak it that the library gets installed at the right place? RE: Develop PVR addons with new cmake build system - schorsch_76 - 2016-03-18 To answer my own question: I solved it with that options for cmake Code: -DADDONS_TO_BUILD=pvr.vdr.vnsi Sorry for the noise ... RE: Develop PVR addons with new cmake build system - wsnipex - 2016-03-18 /usr/lib64/kodi/addons/pvr.vdr.vns is the correct location, provided that kodi's binaries are in /usr/lib64/kodi also, as I've repeated several times in this and other threads on this forum: Standard addon building procedure on linux is: 1. install dependencies(libp8-platform, kodiplatform....), via your package manager of choice or manually 2. make sure kodi headers are installed (this includes kodi-config.cmake, see 1) 3. clone addon (take care to match the branch to your kodi version) 4. cd [addon srcdir] 5. cmake . 6. make && sudo make install RE: Develop PVR addons with new cmake build system - sdruid1 - 2016-04-17 I would like to compile the modified Pvr iptv simple with multiple playlist for kodi 16.0 running on Amazon Firetv stick...android device... My computer is a pc running Windows 7 professional 64 bit....and that's what I would be compiling it on and porting to kodi on my firetv stick. I had a Mac Pro tower and Mac Book Pro laptop both running Mountain lion but my unix is not that good anymore due to non-use so I prefer the pc box... My version of Pvr iptv simple just stops playing tv channels after only a few minutes and I was told that this version of the Pvr was the fix for my issue. if anyone has a pre-compiled version of this, that would save me the trouble of trying to compile my own. I'm also running Pvr iptv on a AppleTV 1st gen box with openelec 6.0 - kodi and that one has no issues as of yet but I might consider a version for that box as well... So, which version of what files do I need for which box and what are the compile commands and steps ? thanks RE: Develop PVR addons with new cmake build system - wsnipex - 2016-04-17 You cannor compile kodi and its addons for android on windows. Linux is the only supported platform for that. Some made it work on mac osx as wel, but we don't really support it RE: Develop PVR addons with new cmake build system - tester100 - 2016-04-20 Hi lads i am a bit lost here still could not compile PVR.hts on windows to use with kodi compiled also on windows is there any link i can check out for the full steps for compiling PVR.hts tvheadend on the source and build all of it together with kodi? RE: Develop PVR addons with new cmake build system - tester100 - 2016-04-22 (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. Hi lads i am getting issue to compile the pvr.demo addon. basically its saing that i have a cmake generator error. i am using vs2013 with 12.0 v120 to compile kodi 16 jarvis without any issues i can buil setup install.exe ok and kodi.exe app exe just fine no issues at all my only issue is building it with the addon also this is my log This is my message log Quote:opensource@opensource-PC MINGW64 /c/xbmc/project/cmake/addons/build (Jarvis) btw i am using cmake.exe 3.5x is that an issue or do i need a previous version? RE: Develop PVR addons with new cmake build system - ironic_monkey - 2016-04-22 as it says this means something has already generated nmake files in your build directory (or possibly on top of the source directory). clean your directories. or stick to nmake (change the -G argument). don't think cmake 3.5 is a problem. RE: Develop PVR addons with new cmake build system - piotrekcrash - 2016-07-15 Hi, I have problem with compile PVR iptvsimple on linux (windows method work fine). I used kodi and pvr addon from Jarvin brunch. I used: Quote:sudo cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=/home/plyczko/kodi/ in result: Quote:-- The C compiler identification is GNU 4.8.1 after make: http://pastebin.com/zZQbnmLj No .so file in output. Proces finished on "kodi-platform" The same method I used to compile "pvr.demo" and everything works fine. Can anyone tell what is wrong? RE: Develop PVR addons with new cmake build system - ironic_monkey - 2016-07-15 did you stick the pvr.iptvsimple sources in the given folder? if not, drop the -DADDON_SRC_PREFIX parameter. does 'make pvr.iptvsimple' do anything? RE: Develop PVR addons with new cmake build system - nmw01223 - 2017-02-22 I have a backend up and running, but am hoping to create a Kodi PVR client for it. I've had a look at pvr.demo. I built that OK, but it crashes, not clear why right now. However my real question is this: I also tried to build pvr.python to see if that would be helpful, but when I did that the cmake pre-build failed as it could not find any information about pvr.python in the Kodi addon build tree, and looking at other pvr entries, all of these contain information pointing to a Kodi GIT repository for the pvr client. It seems to me therefore that the whole pvr cleint cmake process relies on the fact that the pvr client in question is held and maintained in a centralised GIT Kodi repository. Is that right? Will it not allow me to build a totally local pvr addon? The reason for this is that right now I am only experimenting and whatever I do is likely to be throw away code. Since this is also a backend customised specifically for me and my needs, it is most unlikely it would ever be made public, and therefore the same would apply to the client. So, what I want to do is find a way of maintaining and building this test pvr client purely locally. Is this possible? |