Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during build, related to JsonCpp package #80

Open
Saxin opened this issue Jan 3, 2017 · 1 comment
Open

Error during build, related to JsonCpp package #80

Saxin opened this issue Jan 3, 2017 · 1 comment

Comments

@Saxin
Copy link

Saxin commented Jan 3, 2017

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.

@drBlaze
Copy link

drBlaze commented Dec 11, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants