kodi-pvr / pvr.stalker

A PVR Client that connects Kodi to Stalker Middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error during build, related to JsonCpp package

Saxin opened this issue · comments

Tried building on Arch x64, there is no package for this addon so tried to build per the instructions on GH page.

Have the jsoncpp 1.7.7 installed which is found during "make"

-- Checking for module 'jsoncpp'
--   Found jsoncpp, version 1.7.7

And line later the error:

CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find JsonCpp (missing: JSONCPP_INCLUDE_DIRS)

Would appreciate a lot any hints how to resolve and complete the build.

I have stumbled upon this issue as well (using Arch armv7 / cmake 3.10) It seems its somehow related specifically to Arch as I was unable to reproduce the error with Ubuntu 16.04 x64 / cmake 3.5.1.

Investigating further i was able to pinpoint the problem
find_package(JsonCpp REQUIRED)
fails to set the variable JSONCPP_INCLUDE_DIRS, but sets other variables(JSONCPP_FOUND, JSONCPP_LIBRARIES) correctly. I have no glue why it fails.

I was able to get it to compile by setting the variable manually in FindJsonCpp.cmake
set(JSONCPP_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/build/build/depends/include/jsoncpp")

Still I am not satisfied with the hackish solution because I would like to provide a package in AUR.
So any ideas?