![]() |
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 - 2015-05-20 yeah, you have to install platform first, then kodiplatform. you find platform at https://github.com/Pulse-Eight/platform RE: Develop PVR addons with new cmake build system - hman - 2015-05-20 ![]() ok now builded and installer platform and kodi-platform. Now i have only a problem on pvr.iptvsimple build: -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- 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 -- 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 -- Checking to see if CXX compiler accepts flag -flto -- Checking to see if CXX compiler accepts flag -flto - yes -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") -- ZLIB_LIBRARIES: /usr/lib64/libz.so -- IPTV_VERSION=1.11.2 -- Configuring done -- Generating done -- Build files have been written to: /home/armando/tmp/pvr.iptvsimple [armando@localhost pvr.iptvsimple (master)]$ make Scanning dependencies of target pvr.iptvsimple [ 50%] Building CXX object CMakeFiles/pvr.iptvsimple.dir/src/client.cpp.o /home/armando/tmp/pvr.iptvsimple/src/client.cpp:27:33: fatal error: kodi/libKODI_guilib.h: File o directory non esistente #include "kodi/libKODI_guilib.h" ^ compilation terminated. CMakeFiles/pvr.iptvsimple.dir/build.make:57: set di istruzioni per l'obiettivo "CMakeFiles/pvr.iptvsimple.dir/src/client.cpp.o" non riuscito make[2]: *** [CMakeFiles/pvr.iptvsimple.dir/src/client.cpp.o] Errore 1 CMakeFiles/Makefile2:94: set di istruzioni per l'obiettivo "CMakeFiles/pvr.iptvsimple.dir/all" non riuscito make[1]: *** [CMakeFiles/pvr.iptvsimple.dir/all] Errore 2 RE: Develop PVR addons with new cmake build system - ironic_monkey - 2015-05-20 those files should have been installed by 'make install' of kodi. do you have a <kodi-install-prefix>/include/kodi dir at all ? RE: Develop PVR addons with new cmake build system - hman - 2015-05-20 ls /usr/include/kodi DVDDemuxPacket.h xbmc_addon_dll.h xbmc_pvr_types.h libXBMC_addon.h xbmc_addon_types.h xbmc_scr_dll.h libXBMC_codec.h xbmc_audioenc_dll.h xbmc_scr_types.h libXBMC_gui.h xbmc_audioenc_types.h xbmc_stream_utils.hpp libXBMC_pvr.h xbmc_codec_types.h xbmc_vis_dll.h util/ xbmc_epg_types.h xbmc_vis_types.h xbmc_addon_cpp_dll.h xbmc_pvr_dll.h RE: Develop PVR addons with new cmake build system - ironic_monkey - 2015-05-20 Right so upstream install target is broken. @wsnipex RE: Develop PVR addons with new cmake build system - hman - 2015-05-20 i retrying to rebuild with this steps: $ git clone https://github.com/xbmc/xbmc -b Helix $ cd xbmc $ ./bootstrap $ ./configure --prefix=/usr --libdir=/usr/lib64 $ make $ sudo make install RE: Develop PVR addons with new cmake build system - wsnipex - 2015-05-20 Helix branch won't work. You have to use master RE: Develop PVR addons with new cmake build system - ironic_monkey - 2015-05-20 ah missed that bit. RE: Develop PVR addons with new cmake build system - hman - 2015-05-20 ![]() 1 week ago was added Linux x86_64 full build from source OK - hman - 2015-05-20 Finally ![]() I rewrite all my steps to build Kodi and ITPV Simple Client from git master: -- KODI -- Code: $ git clone https://github.com/xbmc/xbmc kodi -- PLATFORM -- Code: $ git clone https://github.com/Pulse-Eight/platform -- KODI-PLATFORM -- Code: $ git clone https://github.com/xbmc/kodi-platform -- IPTVSIMPLE ADDON -- Code: $ git clone https://github.com/kodi-pvr/pvr.iptvsimple after that i only needed to add addon from generated zip. I hope that this steps could help others. Thanks for support RE: Develop PVR addons with new cmake build system - FernetMenta - 2015-05-22 If you just followed the steps shown on post #1 it would have been much easier. RE: Develop PVR addons with new cmake build system - enen92 - 2015-06-15 So I wanted to have a go with pvr addons to learn a bit about c++. Unfortunately, I'm having a hard time compiling the pvr addons for hours. Compiled kodi from git (master) without any issue, platform and kodi-platform also compiled okay. Any pvr addon gives me error when compiling it, something related to some of the header files: libXBMC_addon.h, libKODI_guilib.h. Here an example with pvr.demo: http://pastebin.com/G4qrh6QP Are their versions in kodi-pvr master supposed to compile? Or is it something on my end? Any help would be appreciated. Linux arch 4.0.5-1-ARCH #1 SMP PREEMPT x86_64 GNU/Linux Edit: tried with lower versions of gcc (4.8.4/4.8)... same result RE: Develop PVR addons with new cmake build system - enen92 - 2015-06-15 Still couldn't compile any pvr addon. Even using the packages on AUR: kodi-devel -> https://aur.archlinux.org/packages/kodi-devel/ kodi-devel-platform -> https://aur.archlinux.org/packages/kodi-devel-platform/ kodi-devel-libplatform -> https://aur.archlinux.org/packages/kodi-devel-libplatform/ kodi-deve-pvr-demo -> https://aur.archlinux.org/packages/kodi-devel-pvr-demo/ Still returns the same error (post above). Any ideas from anyone who actually knows about all this about what might be the reason for it to be failing? RE: Develop PVR addons with new cmake build system - negge - 2015-06-15 @enen92: you have different headers installed in multiple places: Quote:/usr/include/kodi/libXBMC_addon.h:94 RE: Develop PVR addons with new cmake build system - enen92 - 2015-06-15 All good now ![]() |