ktf icon indicating copy to clipboard operation
ktf copied to clipboard

error about gtest

Open liweizhou0453 opened this issue 3 years ago • 4 comments

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?

liweizhou0453 avatar Sep 13 '21 11:09 liweizhou0453

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=) and on Fedora using the latest gtest package (still 1.10.0)

knuto avatar Sep 27 '21 05:09 knuto

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

Johnny6655 avatar Nov 27 '21 07:11 Johnny6655

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.

knuto avatar Nov 27 '21 15:11 knuto

Installing pkg-config could solve this issue in my computer with ubuntu 20.04.4

zenglg avatar May 11 '22 05:05 zenglg