ktf
ktf copied to clipboard
error about gtest
I have meet the problems about config KTF, when I enter the command '~/Downloads/ktf-master/configure KVER=$(uname -r)', I get the error about 'syntax error near unexpected token 'GTEST'','PKG_CHECK_MODULES(GTEST, gtest >=1.9.0), HAVE_GTEST="yes"'
I have install gtest(1.11.0) before, so this error means the KTF must run before gtest 1.9.0?
I am not able to reproduce this?
For me KTF builds clean both with the latest upstream gtest (v.1.11.0) built locally
(configuring with --with-googletest=
I had meet the same problems,is it caused by this configure “PKG_CHECK_MODULES(GTEST, gtest >= 1.9.0, [HAVE_GTEST="yes"])” in ktf.m4 file
Could it be that you are picking up a gtest version with broken pkgconfig files? they were broken for quite some time way back before 1.9.0.
I am still able to build KTF with upstream googletest.
Installing pkg-config
could solve this issue in my computer with ubuntu 20.04.4