Kodi Community Forum
Linux Ubuntu peripheral.joystick make failing - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Game support (https://forum.kodi.tv/forumdisplay.php?fid=292)
+--- Thread: Linux Ubuntu peripheral.joystick make failing (/showthread.php?tid=283675)



Ubuntu peripheral.joystick make failing - cdhesse - 2016-07-25

Newbie here - what am I missing? With latest source, I'm trying to compile peripheral.joystick. I followed the wiki from here http://kodi.wiki/view/Compiling_Kodi-Game

I get the following error when i execute the "make"

Code:
....

-- Installing: /home/localadmin/binary-addons/build/depends/share/doc/pcre/html/pcre_free_substring_list.html
-- Installing: /home/localadmin/binary-addons/build/depends/share/doc/pcre/html/pcre_maketables.html
-- Installing: /home/localadmin/binary-addons/build/depends/share/doc/pcre/html/pcreunicode.html
-- Installing: /home/localadmin/binary-addons/build/depends/share/doc/pcre/html/index.html
-- Installing: /home/localadmin/binary-addons/build/depends/share/doc/pcre/html/pcresample.html
[ 86%] Completed 'pcre'
[ 86%] Built target pcre
Scanning dependencies of target peripheral.joystick
[ 88%] Creating directories for 'peripheral.joystick'
[ 89%] No download step for 'peripheral.joystick'
[ 91%] No patch step for 'peripheral.joystick'
[ 92%] No update step for 'peripheral.joystick'
[ 94%] Performing configure step for 'peripheral.joystick'
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
CMake Error at CMakeLists.txt:12 (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/localadmin/binary-addons/peripheral.joystick-prefix/src/peripheral.joystick-build/CMakeFiles/CMakeOutput.log".
make[2]: *** [peripheral.joystick-prefix/src/peripheral.joystick-stamp/peripheral.joystick-configure] Error 1
make[1]: *** [CMakeFiles/peripheral.joystick.dir/all] Error 2
make: *** [all] Error 2



RE: Ubuntu peripheral.joystick make failing - chein - 2016-07-25

New user here as well who's been having the same problem. I've tried setting different flags (namely changing install prefix) but the error persists.


RE: Ubuntu peripheral.joystick make failing - wsnipex - 2016-07-25

Code:
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.

it means you need to build install kodi(retroplayer fork). Either in a system wide default location or you have to tell cmake where to find the files mentioned by passing -Dkodi_DIR=/path/to/kodiConfig.cmake


RE: Ubuntu peripheral.joystick make failing - onarch - 2016-08-04

I got the same thing when trying to build peripheral.joystick and for some reason supplying -Dkodi_DIR=/path/to/kodiConfig.cmake didn't work.

What worked for me was to revert:
https://github.com/kodi-game/peripheral.joystick/commit/f54a3305b24a49dcae3f823386cd4e8dcfc5732e
[Yes, I know the commit in question is a revert]

The master branch of peripheral.joystick uses "Kodi" and only this seems to work for me on Arch Linux.


RE: Ubuntu peripheral.joystick make failing - garbear - 2016-08-04

RetroPlayer uses the 'retroplayer' branch of peripheral.joystick. As you can see from the network graph, that revert commit is only for building against RetroPlayer, not Kodi master. This probably because RetroPlayer is (or was) based on an older version of master. I plan to rebase on 17 alpha 3 soon, when I do I'll evaluate if the revert is still needed (probably not, looking at your results).


RE: Ubuntu peripheral.joystick make failing - tutu - 2016-08-27

I have the same issue, except joystick compiles fine it's the game one that doesn't.


RE: Ubuntu peripheral.joystick make failing - garbear - 2016-08-27

No offense, but I give zero shits unless you post the error message or a better description of the problem.


RE: Ubuntu peripheral.joystick make failing - tutu - 2016-08-28

It's because of the rename of the Kodi/kodi config file:

CMake Error at CMakeLists.txt:8 (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/kodi/workspace/kodi/game.addons-build/game.moonlight-prefix/src/game.moonlight-build/CMakeFiles/CMakeOutput.log".
CMakeFiles/game.moonlight.dir/build.make:106: recipe for target 'game.moonlight-prefix/src/game.moonlight-stamp/game.moonlight-configure' failed
make[2]: *** [game.moonlight-prefix/src/game.moonlight-stamp/game.moonlight-configure] Error 1
CMakeFiles/Makefile2:139: recipe for target 'CMakeFiles/game.moonlight.dir/all' failed
make[1]: *** [CMakeFiles/game.moonlight.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


RE: Ubuntu peripheral.joystick make failing - garbear - 2016-08-28

(2016-08-28, 10:40)tutu Wrote: It's because of the rename of the Kodi/kodi config file:

Ah, hudokkow got all the kodi-game add-ons, but Moonlight was sitting under my username and got missed. I've updated game.moonlight, but be aware that it's not finished and may be missing a dependency. One failing add-on shouldn't interrupt the build process though.