getdns
getdns copied to clipboard
cmake could not find Check
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find Check (missing: CHECK_LIBRARIES CHECK_INCLUDE_DIR) (Required is at least version "0.9.6") Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindCheck.cmake:92 (find_package_handle_standard_args) CMakeLists.txt:947 (find_package)
i followed this instructions: https://github.com/getdnsapi/getdns#user-content-building
i had some more errors but could fix them by installing the packages: libuv-dev, libevent-dev
im using a raspbian on pi3.
Anybody know how to fix this ?
libcheck
is needed only for the unit tests, if you don't need those you can add the -DBUILD_TESTING:BOOL=OFF
option to your cmake
command to disable them. Otherwise, just install libcheck
.
@wtoorop we should update the README section referenced as this detail isn't mentioned there (it is buried in the unit test section) ....
I cant find this package oO sudo apt install libcheck E: Package libcheck cannot be found.
cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Ah, the package is just called check
: https://repology.org/project/check/versions or you can build from source:
https://github.com/libcheck/check
Thanks! after installing following packages it worked like a charm:
sudo apt install libuv-dev sudo apt install libevent-dev sudo apt install check