Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

error about gtest #28

Open
liweizhou0453 opened this issue Sep 13, 2021 · 4 comments
Open

error about gtest #28

liweizhou0453 opened this issue Sep 13, 2021 · 4 comments

Comments

@liweizhou0453
Copy link

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?

@knuto
Copy link
Contributor

knuto commented Sep 27, 2021

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)

@Johnny6655
Copy link

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

@knuto
Copy link
Contributor

knuto commented Nov 27, 2021

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.

@zenglg
Copy link

zenglg commented May 11, 2022

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

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

No branches or pull requests

4 participants