gtest error with sysdig

13 views
Skip to first unread message

Nayana Thorat

unread,
Nov 4, 2022, 8:15:27 AM11/4/22
to sysdig
Hi,
I am building sysdig v0.30.0 from source on Ubuntu 20.04.
Tried to enable Tests through cmake
cmake -DCREATE_TEST_TARGETS=ON -DSYSDIG_VERSION=0.30.0 ..
However build fails (make) with below error. 

falcosecurity-libs-repo/falcosecurity-libs-prefix/src/falcosecurity-libs/userspace/libscap/test/scap_event.ut.cpp:19:10: fatal error: gtest/gtest.h: No such file or directory
19 | #include <gtest/gtest.h>
| ^~~~~~~~~~~~~~~
compilation terminated.

Installed libgtest-dev however later it failed with undefined references error.
/usr/bin/ld: /root/sysdig/build/falcosecurity-libs-repo/falcosecurity-libs-prefix/src/falcosecurity-libs/userspace/libscap/test/scap_event.ut.cpp:97: undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'

Any inputs?

 
Reply all
Reply to author
Forward
0 new messages