kodi-game / game.libretro

Libretro compatibility layer for the Kodi Game API
GNU General Public License v2.0
37 stars 26 forks source link

"CMake Error at CMakeLists.txt:6" during compilation #112

Closed B4rabbas closed 9 months ago

B4rabbas commented 9 months ago
❯ git clone https://github.com/kodi-game/game.libretro.git
cd game.libretro
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug \
      -DCMAKE_PREFIX_PATH=$HOME/kodi \
      -DCMAKE_INSTALL_PREFIX=$HOME/workspace/kodi/addons \
      -DPACKAGE_ZIP=1 \
      ..
make
make install
Clonage dans 'game.libretro'...
remote: Enumerating objects: 3416, done.
remote: Counting objects: 100% (602/602), done.
remote: Compressing objects: 100% (224/224), done.
remote: Total 3416 (delta 413), reused 494 (delta 368), pack-reused 2814
Réception d'objets: 100% (3416/3416), 814.45 Kio | 2.76 Mio/s, fait.
Résolution des deltas: 100% (2236/2236), fait.
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:6 (find_package):
  By not providing "FindKodi.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Kodi", but
  CMake did not find one.

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

    KodiConfig.cmake
    kodi-config.cmake

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

-- Configuring incomplete, errors occurred!
See also "/home/harry/game.libretro/build/CMakeFiles/CMakeOutput.log".
make: *** Pas de cible spécifiée et aucun makefile n'a été trouvé. Arrêt.
make: *** Aucune règle pour fabriquer la cible « install ». Arrêt.

Any idea ?

garbear commented 9 months ago

I believe you need to build Kodi and install into $HOME/kodi. That's where FindKodi.cmake should be placed.

B4rabbas commented 9 months ago

I believe you need to build Kodi and install into $HOME/kodi. That's where FindKodi.cmake should be placed.

Yeah, look obvious when you say this. Thanks for the answer, the issue is closed.

B4rabbas commented 9 months ago

To be build it request to have a fresh built of kodi, my bad.