-
Notifications
You must be signed in to change notification settings - Fork 0
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 to fix RapidJSON error? #6
Comments
bump |
Sorry for the (extremely) delayed reply. Since I didn't have time to work on this project lately, and I really didn't expect anyone to use it besides myself, I haven't been paying much attention. It seems in the latest APT repository of Ubuntu, FindRapidJSON.cmake is not distributed with package rapidjson-dev. I'm not sure about other linux distributions, but it seems ArchLinux has it in the package rapidjson. I'll try to include a copy of the cmake module along the source code. Then it should compile successfully. |
OK so rapidjson is a header only library, and all appearances of the library headers in the source code is properly prefixed, so I guess we can just skip the find_package? But doing so will cause a template deduction error. I'm not sure if the packaged provided by ubuntu is broken or not, but compiling the library from source works for me (on WSL). # sudo apt install pkgconf
git clone https://github.com/Tencent/rapidjson.git
cd rapidjson
cmake .
make
sudo make install Then cmake within this project should complete without error. I'll leave this issue open until I can find a proper solution (or give up). |
I did the install, issue still exist, so I added Findrapidjson.cmake to cmake/Modules. |
it worked for me. Thankyou. I install rapidjson with root permission |
after running "cmake -DCMAKE_BUILD_TYPE=Release ." ,i encountered the error:
...
CMake Error at CMakeLists.txt:21 (find_package):
By not providing "FindRapidJSON.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"RapidJSON", but CMake did not find one.
Could not find a package configuration file provided by "RapidJSON" with
any of the following names:
Add the installation prefix of "RapidJSON" to CMAKE_PREFIX_PATH or set
"RapidJSON_DIR" to a directory containing one of the above files. If
"RapidJSON" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "/home/ec2-user/c3blog/CMakeFiles/CMakeOutput.log".
See also "/home/ec2-user/c3blog/CMakeFiles/CMakeError.log".
[ec2-user@ip-172-31-43-208 c3blog]$
how to fix RapidJSON error?
The text was updated successfully, but these errors were encountered: