drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.45k stars 1.1k forks source link

Cannot build on Linux #1558

Closed albertcheng closed 4 months ago

albertcheng commented 1 year ago

Notice If you need support or clarification regarding the usage of Drogon in your project, visit the official Drogon support channel at gitter

Please create a new issue only if you think you have found a bug or if have a feature request/enhancement.

Describe the bug When I try to build. Cmake spit this error message.

CMake Error at /home/xxx/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Jsoncpp (missing: JSONCPP_INCLUDE_DIRS JSONCPP_LIBRARIES) Call Stack (most recent call first): /home/xxx/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) cmake_modules/FindJsoncpp.cmake:36 (find_package_handle_standard_args) CMakeLists.txt:210 (find_package)

To Reproduce Steps to reproduce the behavior:

  1. git clone the repo
  2. cd drogon
  3. run ./build.sh
  4. see the following error message

CMake Error at /home/xxx/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Jsoncpp (missing: JSONCPP_INCLUDE_DIRS JSONCPP_LIBRARIES) Call Stack (most recent call first): /home/xxx/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) cmake_modules/FindJsoncpp.cmake:36 (find_package_handle_standard_args) CMakeLists.txt:210 (find_package)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

an-tao commented 1 year ago

Hi, you should install all dependencies to your OS first. please refer to the installation section on wiki. wiki