-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Jsoncpp does not link to Drogon #2212
Comments
Have you tried just installing the
I would also undo any changes made to the cmake build files |
@NullUserException At the time of posting the original message I haven't which is what I meant by |
I spun up an instance running Ubuntu 22.04 and I was running into the same problem ( Did you make any changes to the cmake files? |
Yeah I'm still having the same type of issue. Now it fails even before with:
CMake update:
|
@usernameawesome - you need an UUID library # Ubuntu/Debian
sudo apt install uuid-dev
# macOS
brew install ossp-uuid
# CentOS/RHEL
sudo yum install libuuid-devel |
Using
FetchContent
, Drogon isn't building due to an issue finding Jsoncpp. This is a bug as Jsoncpp should be imported similar to Trantor, as a submodule. It seems to be required to add Jsoncpp yourself like described below.By itself in CMakeLists.txt, Jsoncpp builds and runs fine:
However Drogon does not seem to find it, specifically in
FindJsoncpp.cmake
with error:The include directory can be manually fixed with
set(CMAKE_INCLUDE_PATH "${CMAKE_CURRENT_BINARY_DIR}/_deps/jsoncpp-src/include")
however I cannot find a way to fixfind_library(JSONCPP_LIBRARIES ...)
. Thefind_library
method is looking for a *.a or *.so file I believe which does not exist in any of the built Jsoncpp directories. Is there a way to download Jsoncpp usingFetchContent
? It seems the only solution I have found, which I haven't tested yet, is to manually download Jsoncpp.Desktop (please complete the following information):
CMakeLists file:
The text was updated successfully, but these errors were encountered: