Skip to content
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

cmake could not find Check #498

Open
serioususer opened this issue Apr 2, 2021 · 4 comments
Open

cmake could not find Check #498

serioususer opened this issue Apr 2, 2021 · 4 comments

Comments

@serioususer
Copy link

serioususer commented Apr 2, 2021

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 ?

@saradickinson
Copy link
Contributor

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) ....

@serioususer
Copy link
Author

serioususer commented Apr 6, 2021

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"

@saradickinson
Copy link
Contributor

Ah, the package is just called check: https://repology.org/project/check/versions or you can build from source:
https://github.com/libcheck/check

@serioususer
Copy link
Author

Thanks!
after installing following packages it worked like a charm:

sudo apt install libuv-dev
sudo apt install libevent-dev
sudo apt install check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants