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

Problem in Dockerfile with installation of library #1304

Closed
DragonOsman opened this issue Oct 17, 2018 · 8 comments
Closed

Problem in Dockerfile with installation of library #1304

DragonOsman opened this issue Oct 17, 2018 · 8 comments

Comments

@DragonOsman
Copy link

I'm trying to build a Dockerfile for the project I've been working on that uses this library. The Dockerfile build output can be seen on this Paste: https://pastebin.com/hT1Ha6Lc . Could someone please tell me what I did and what I didn't do that I should've done? If needed, I'll also post the main part the problem is at:

Step 8/12 : RUN g++ -std=c++14 -Wall -pedantic -I app/jinja2cpp/install/include -I app/json/include -I app/json/single_include -I /usr/local/include/ -I app/jinja2cpp/thirdparty/nonstd/value-ptr-lite/include currency_converter.cpp -L app/jinja2cpp/install/lib/static -ljinja2cpp -L usr/local/lib/stage/lib/ -lboost_system -lpthread -o currency_converter
 ---> Running in bfb27a00d9c8
currency_converter.cpp:29:10: fatal error: nlohmann/json.hpp: No such file or directory
 #include <nlohmann/json.hpp>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

Any help is appreciated. Thanks in advance.

@nlohmann
Copy link
Owner

Is this the same issue as #1296?

@nlohmann
Copy link
Owner

What is the content of directory app/json/include?

@DragonOsman
Copy link
Author

DragonOsman commented Oct 17, 2018

I just ran this command to see what's in there:

RUN git clone https://github.com/nlohmann/json \
    && cd json \
    && cd include \
    && ls

Waiting for it to get to the ls part.

@DragonOsman
Copy link
Author

Okay, directory named nlohmann confirmed to be inside directory include. Now I'll check if json is inside nlohmann. If it is, what do I do to fix that compiler error?

@nlohmann
Copy link
Owner

You provided both single_include and include. One is sufficient. Please see the README for integration information.

@DragonOsman
Copy link
Author

What about when I want to use json_fwd.hpp, though?

@nlohmann
Copy link
Owner

Then just use include

@DragonOsman
Copy link
Author

Alright, thanks. I think this is solved now.

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