Giter VIP home page Giter VIP logo

Comments (2)

sim590 avatar sim590 commented on July 18, 2024

I'm trying to resolve this at the moment and I found that the best solution among those proposed by upstream is to use the external configuration files. However, when I'm trying that on Debian, it complains about the following:

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

    nlohmann_jsonConfig.cmake
    nlohmann_json-config.cmake

Even though, I call cmake -DCMAKE_MODULE_PATH=/usr/lib/cmake (which is where the files are installed according to my system), CMake still fails to configure. Therefore, I think there's a problem with the Debian package I have currently installed. You could try to build successfully using fixes from both #15 and #14 by visiting the nlohmann_json-test branch as mentioned in #15.

I will confirm my hypothesis by manually installing the lib and comment on the result.

from dpaste.

sim590 avatar sim590 commented on July 18, 2024

OK, so after playing a bit with this today, I have found that:

  1. Debian was not installing CMake configuration files in the right directory. I managed to override this by appending -DCMAKE_PREFIX_PATH=/usr/lib/cmake/ to cmake call. In december, I was using the wrong option, therefore I wasn't getting a consistent result. I have since then reported the bug in the Debian BTS.
  2. Since I'm developing this on Debian (which uses nlohmann_json 2.1.1) and that the CMake usage for nlohmann_json seems to have changed since, then I'm using the 2.1.1 way for now. Therefore, I cannot guarantee that this works with 3.2.0. Please, tell me if you manage to build with the version you're using if it is higher than 2.1.1. I will confirm therefore be able to confirm the highest version number I can support.

I have a fix in 7f648fc. It is now merged into master from #15 together with #14. Feel free to test this again and reopen the issue if it doesn't work with version 2.1.1.

from dpaste.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.