0rangeFox/Drogon-JWT-Filter-example

Could NOT find Jsoncpp

Closed this issue · 4 comments

Full log:

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/A/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/222.4167.35/bin/mingw/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/A/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/222.4167.35/bin/mingw/bin/g++.exe - skipped
-- 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
-- compiler: GNU
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found OpenSSL: C:/Program Files/PostgreSQL/14/lib/libcrypto.lib (found version "1.1.1q")  
-- Could NOT find c-ares (missing: C-ARES_INCLUDE_DIRS C-ARES_LIBRARIES) 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - found
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
-- Found std::filesystem
-- use c++17
CMake Error at C:/Users/A/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/222.4167.35/bin/cmake/win/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Jsoncpp (missing: JSONCPP_INCLUDE_DIRS JSONCPP_LIBRARIES)
Call Stack (most recent call first):
  C:/Users/A/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/222.4167.35/bin/cmake/win/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  libraries/drogon/cmake_modules/FindJsoncpp.cmake:36 (find_package_handle_standard_args)
  libraries/drogon/CMakeLists.txt:202 (find_package)

Hey @ChA0S-f4me, I will assume you are Windows user, if yes, please try to execute the bash script from git bash. Otherwise, provide me more informations.

Hey @ChA0S-f4me, I will assume you are Windows user, if yes, please try to execute the bash script from git bash. Otherwise, provide me more informations.

PS C:\Users\A\CLionProjects\Drogon-JWT-Filter-example\build> cmake -DCMAKE_BUILD_TYPE=Release ..
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
  Running

   'nmake' '-?'

  failed with:

   The system cannot find the file specified


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/A/CLionProjects/Drogon-JWT-Filter-example/build/CMakeFiles/CMakeOutput.log".

Log:

The system is: Windows - 10.0.25182 - AMD64

Hmmm looks it's missing something, did you follow the instructions to install and run drogon? If no, please try to run the drogon clean from their repository and when you got it working, you can return to this again. If yes, maybe there's some incompatibility with Windows, I only tried once with Windows and it worked without Coroutines. Keep reporting the things so we can fix it.

After very long time I realized that I didn't have drogon installed