drogonframework / drogonframework/drogon
CMake to find a package configuration file provided by "Jsoncpp", but CMake did not find one. Building with drogon_ctl
- Dominant language
- C++
- Stars
- 14.3k
- Forks
- 1.4k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 14
Description
What to create project :
1. vagrant@vagrant:~$ drogon/build/drogon_ctl/drogon_ctl create project test1
2. cd ~/test1/build
3. cmake -DCMAKE_PREFIX_PATH=/home/vagrant/drogon/build/CMakeFiles/ ..
4. Getting this error :
```
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include any
-- Looking for C++ include any - found
-- Looking for C++ include string_view
-- Looking for C++ include string_view - found
-- Looking for C++ include coroutine
-- Looking for C++ include coroutine - not found
CMake Error at /usr/share/cmake-3.10/Modules/CMakeFindDependencyMacro.cmake:48 (find_package):
By not providing "FindJsoncpp.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Jsoncpp", but
CMake did not find one.
Could not find a package configuration file provided by "Jsoncpp" with any
of the following names:
JsoncppConfig.cmake
jsoncpp-config.cmake
Add the installation prefix of "Jsoncpp" to CMAKE_PREFIX_PATH or set
"Jsoncpp_DIR" to a directory containing one of the above files. If
"Jsoncpp" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
/home/vagrant/drogon/build/CMakeFiles/DrogonConfig.cmake:39 (find_dependency)
CMakeLists.txt:31 (find_package)
```
using :
```
vagrant@vagrant:~/test1/build$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
i followed the instraction from here :
https://drogonframework.github.io/drogon-docs/#/ENG-02-Installation?id=ubuntu-1804
So all installed from example :
```
vagrant@vagrant:~/test1/build$ sudo apt install libjsoncpp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjsoncpp-dev is already the newest version (1.7.4-3).
0 upgraded, 0 newly installed, 0 to remove and 106 not upgraded.
```
```
Contributor guide
Assessment
This issue has not been assessed yet.