-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
How can I use it from gcc on RPI #1528
Comments
You can use it with CMake |
@xsacha The library itself contains of a single header in |
@nlohmann Can't say I've ever done that (copy the file). |
I have started @xsacha variant but I had to terminate, it takes too long. I have downloaded the single_include json.hpp #include <iostream>
#include <json>
int main()
{
cout << "Hello World!" << endl;
return 0;
} hpp file is saved to same dir: tried to run following command: I got |
If the #include "json.hpp" The result of the installation will not be a static or dynamic library, but just a C++ header. As the library uses templates, you cannot precompile it. |
yes I can use "" thanks. With the make I should get the same json.hpp under -DCMAKE_INSTALL_PREFIX=/place/to/install/it as yours? |
I am testing with g++ hello.cpp -o hello -std=c++11 |
Yes, you need to use |
It works :) thanks for the nice lib! just one thing: |
If you're using the single header you don't need CMake or to install it. |
When you call
You do not need the files in |
@kuzmanzs Do you need further assistance in this issue? |
@nlohmann : everything is working fine, thanks. |
Hi,
I would like to create hello world json example with gcc on Raspberry.
I have runned 'make' but I do not see install option.
How can I install/use it on RPI?
The text was updated successfully, but these errors were encountered: