Kodi Community Forum

Full Version: Compile to test a custom pvr - but get errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I want compile under the OSMC (leila Kodi) a custom pvr plugin for local testing, but however im using all common steps, i get error by cmake end, 
and i cant start make (no makefile). 

CMake Error at CMakeLists.txt:441 (message):
  pvr.xyz did not match any of the supported addons.  A list of supported
  addons can be viewed by building the 'supported_addons' target.  Addon
  definitions are loaded from ADDONS_DEFINITION_DIR
  (/home/osmc/xbmc/cmake/addons/addons).

-- Configuring incomplete, errors occurred!
See also "/home/osmc/pvr.xyz/build/CMakeFiles/CMakeOutput.log".

commands:

git clone --branch Leia https://github.com/xbmc/xbmc.git

pvr.xyz directory with source code is under /home/OSMC

cd pvr.xyz && mkdir build && cd build

cmake -DADDONS_TO_BUILD=pvr.xyz -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons
make

make (no makefile)


I have forget something or im using something wrong?

thank you for any help
on linux you shouldn't use the above method. It's much easier to just compile the binary addon like any other cmake project.

in your addon src dir:
mkdir build && cd build
cmake ..
make
sudo make install
(2019-06-17, 11:32)wsnipex Wrote: [ -> ]on linux you shouldn't use the above method. It's much easier to just compile the binary addon like any other cmake project.

in your addon src dir:
mkdir build && cd build
cmake ..
make
sudo make install


Thank you.

So, i need simple enter in addon SRC directory and start the compile process.

And in this case (linux), how will change the cmake parameter list?
Update: ahh cmake have .. as parameter, i have copyied the CMakeLists.txt, but i get still error:



CMake Error at CMakeLists.txt:10 (find_package):
  By not providing "Findkodiplatform.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "kodiplatform", but CMake did not find one.

  Could not find a package configuration file provided by "kodiplatform" with
  any of the following names:

    kodiplatformConfig.cmake
    kodiplatform-config.cmake

  Add the installation prefix of "kodiplatform" to CMAKE_PREFIX_PATH or set
  "kodiplatform_DIR" to a directory containing one of the above files.  If
  "kodiplatform" provides a separate development package or SDK, be sure it
  has been installed.


-- Configuring incomplete, errors occurred!


 
(2019-06-17, 11:41)Sentinel800 Wrote: [ -> ]
(2019-06-17, 11:32)wsnipex Wrote: [ -> ]on linux you shouldn't use the above method. It's much easier to just compile the binary addon like any other cmake project.

in your addon src dir:
mkdir build && cd build
cmake ..
make
sudo make install


Thank you.

So, i need simple enter in addon SRC directory and start the compile process.

And in this case (linux), how will change the cmake parameter list? 
when compiling this way, you have to install all dependencies yourself. If your add-on needs kodi-platform, then install it with apt.
Otherwise remove the dependency from cmakelists.txt
I have asked help because i dont know how can i compile a addon and because the almost everywhere included steps not working.

Thanks, yeah looks like i need kodi-platform too.

I know you are busy, so thank you for the help, but looks i need more detailed help. 

If somebody have enough time, to help a n00b, let me know - can write me private too.
 
(2019-06-17, 19:32)wsnipex Wrote: [ -> ]when compiling this way, you have to install all dependencies yourself. If your add-on needs kodi-platform, then install it with apt.
Otherwise remove the dependency from cmakelists.txt