How to compile libretro game-addons from source?
#1
Hi there,

I've successfully compiled kodi 19 from source with some addons (tvh.pvr visualization.projectm etc..).

So for these addons it's simple.
git checkout addon (optionally switch to Matrix branch).
cd addon; mkdir build; cd build
cmake -DADDONS_TO_BUILD=visualization.projectm -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../kodi19/addons -DPACKAGE_ZIP=1 ../../kodi19/cmake/addons
make

Now for flycast for example it doesn't work, I'm running cmake from the game.libretro.flycast/build directory:

Code:
$ cmake -DADDONS_TO_BUILD=game.libretro.flycast \
    -DADDON_SRC_PREFIX=../.. \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=../../kodi19/addons \
    -DPACKAGE_ZIP=1 \
    ../../kodi19/cmake/addons

-- The C compiler identification is GNU 10.0.1
-- The CXX compiler identification is GNU 10.0.1
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Addon source tarball caching is enabled
-- ZIP packaging enabled (destination: /home/odroid/src/game.libretro.flycast/build/build/zips)
-- Building following addons: game.libretro.flycast
-- Overriding addon source directory prefix: /home/odroid/src
--  
-- ---- Preparing general dependencies ----
-- No platform specific file /home/odroid/src/kodi19/cmake/addons/depends/linux/CMakeLists.txt found
--  
CMake Error at CMakeLists.txt:456 (message):
  game.libretro.flycast 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/odroid/src/kodi19/cmake/addons/addons).
 
 
-- Configuring incomplete, errors occurred!
See also "/home/odroid/src/game.libretro.flycast/build/CMakeFiles/CMakeOutput.log".

Any ideas?

I'm on Odroid XU4, so I want to compile them from source with so I can tweak the depends/Makefile with some optimized flags.
Reply
#2
You can try my Kodi compilation scripts. For Odroid XU4 maybe you will need to change the build dependencies a bit. Even if you don't want to use my scripts the process is well documented and you can have a look inside the scripts to see the commands they invoke.
Reply

Logout Mark Read Team Forum Stats Members Help
How to compile libretro game-addons from source?0