Comments (2)
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.
OK, so after playing a bit with this today, I have found that:
- Debian was not installing CMake configuration files in the right directory. I managed to override this by appending
-DCMAKE_PREFIX_PATH=/usr/lib/cmake/
tocmake
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. - Since I'm developing this on Debian (which uses nlohmann_json
2.1.1
) and that the CMake usage fornlohmann_json
seems to have changed since, then I'm using the2.1.1
way for now. Therefore, I cannot guarantee that this works with3.2.0
. Please, tell me if you manage to build with the version you're using if it is higher than2.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)
- While submitting and retrieving, getting this error: __cxa_thread_call_dtors: dtr 0x8019e4a30 from unloaded dso, skipping HOT 1
- CMake: Build fails HOT 6
- Support for multi-lingual interface
- Longer paste lifetime
- Packaging: Debian, ArchLinux HOT 2
- Make use of OpenDHT's proxy
- Build & Unit tests using CI tool
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpaste.