-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cmake issue #4
Comments
Hi @mkcisse The commands are correct. Have you also installed all the required dependencies and cloned the submodules too? Which OS are you using? I'm testing it right now locally and the following command sequence builds the library correctly. Using archlinux I had to install first some system dependency:
Then clone the repo and install other dependencies I can't find on the repositories (that are shipped with openat).
Here's I just noticed there is a problem what make, and we have to fix it manually.
and also change this line in this way:
After that
Now we are ready to build openat, so go back go the openat repo, and
|
This is the error message: |
Yes, is the error you get while building gumbo query - manually apply the fix as I described (commenting the lines) and it should work |
It works ! |
uhm.. it should work - the integration with cmake of the JSON library is made exactly as suggested from the documentation https://github.com/nlohmann/json#cmake However, looking at some comments into that repo, I can see that is a pretty common issue: nlohmann/json#1977 (comment) Maybe on Ubuntu the nlohmann-json-dev package is installed in some non standard location? I don't know I'm sorry, and I also don't have an ubuntu machine to use to test |
I downloaded and compiled nlohmann_json from git repo: |
I got it. The issue comes from the default nlohmann_json on Ubuntu. No problem when I compiled nlohmann_json. This is the last result of
|
Happy you solved with the JSON stuff! For this last problem, yes this is a bug in my cmake. I forgot to add the line I fixed it in the last commit on master branch. Update the repo to the latest version ( |
Hi, I tried to compile openat with the following commands:
mkdir build
cd build
cmake ..
The Makefile does noot appear in the directory.
How to compile ths library ?
The text was updated successfully, but these errors were encountered: