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

Could NOT find JSONCPP (missing: JSON_INCLUDE_DIR) #9119

Closed
vilhelmgray opened this issue Nov 16, 2019 · 0 comments · Fixed by #9120
Closed

Could NOT find JSONCPP (missing: JSON_INCLUDE_DIR) #9119

vilhelmgray opened this issue Nov 16, 2019 · 0 comments · Fixed by #9120
Labels
Bug Issues that were confirmed to be a bug @ Build CMake, build scripts, official builds, compiler and linker errors

Comments

@vilhelmgray
Copy link
Contributor

Issue discovered on Gentoo (https://bugs.gentoo.org/700220) but occurs on latest vanilla Minetest 5.1.0 release.

The upstream JSONCPP project has renamed the json/features.h file to json/json_features.h: open-source-parsers/jsoncpp#1024

This causes newer versions of JSONCPP to not be found by the Minetest FindJson.cmake module. The following line should be changed to search for a different json header file:

find_path(JSON_INCLUDE_DIR json/features.h PATH_SUFFIXES jsoncpp)

@vilhelmgray vilhelmgray added the Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible label Nov 16, 2019
@sfan5 sfan5 added @ Build CMake, build scripts, official builds, compiler and linker errors Bug Issues that were confirmed to be a bug and removed Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible labels Nov 16, 2019
vilhelmgray added a commit to vilhelmgray/minetest that referenced this issue Nov 16, 2019
The upstream JsonCpp project has renamed the `json/features.h` file to
`json/json_features.h`. This patch fixes the JsonCpp installation search
by looking for `json/allocator.h` which has not been renamed on newer
versions of JsonCpp.

Fixes: minetest#9119
sfan5 pushed a commit that referenced this issue Nov 17, 2019
The upstream JsonCpp project has renamed the `json/features.h` file to
`json/json_features.h`. This patch fixes the JsonCpp installation search
by looking for `json/allocator.h` which has not been renamed on newer
versions of JsonCpp.

Fixes: #9119
rubenwardy pushed a commit that referenced this issue Dec 31, 2019
The upstream JsonCpp project has renamed the `json/features.h` file to
`json/json_features.h`. This patch fixes the JsonCpp installation search
by looking for `json/allocator.h` which has not been renamed on newer
versions of JsonCpp.

Fixes: #9119
aldum pushed a commit to banyamesterseg/minetest that referenced this issue Apr 16, 2020
The upstream JsonCpp project has renamed the `json/features.h` file to
`json/json_features.h`. This patch fixes the JsonCpp installation search
by looking for `json/allocator.h` which has not been renamed on newer
versions of JsonCpp.

Fixes: minetest#9119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that were confirmed to be a bug @ Build CMake, build scripts, official builds, compiler and linker errors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants