Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Gtest failure when running cmake .. inside build folder #211

Closed
suab321321 opened this issue Feb 26, 2020 · 7 comments
Closed

Gtest failure when running cmake .. inside build folder #211

suab321321 opened this issue Feb 26, 2020 · 7 comments

Comments

@suab321321
Copy link

@yurishkuro the error is still there when I run cmake .. from build it shows me this output.
Screenshot from 2020-02-26 23-51-21

the error is in the Gtest packages, so I tried to run this package individually, I went inside the directory /.hunter/_Base/d45d77d/de38925/3b7ee27/Build/GTest and did cmake --build Build/ and this is the output I m getting

Screenshot from 2020-02-26 23-56-00

now I dont understand how to fix this.

OS - ubuntu 18.04
gcc - 9.2.1
g++ -9.2.1
branch - master

Originally posted by @suab321321 in #209 (comment)

@suab321321 suab321321 changed the title @yurishkuro the error is still there when I run cmake .. from build it shows me this output. Gtest failure when running cmake .. inside build folder Feb 26, 2020
@suab321321
Copy link
Author

One fix is that you should remove the Gtest packages from CMakeList.txt in the root folder.
For time being this can used.

@mdouaihy
Copy link
Contributor

Hello @suab321321, we didnt build the library with the latest g++. GTest might not be compatible with that latest version. Did you try to check with Gtest devs?

@suab321321
Copy link
Author

suab321321 commented Feb 27, 2020

@mdouaihy yes I think the issue is due to latest versions, here is an issue with version problem google/googletest#2721.

@mdouaihy
Copy link
Contributor

Indeed. The problem is that we cant use the latest version of GTest now. The GTest library downloaded and built by Hunter does not contains the rpath. This should be figured out so that we can move to the latest version.

@suab321321
Copy link
Author

suab321321 commented Feb 27, 2020

@mdouaihy one more thing, I am unable to compile header jaegertracing/Tracer.h failing due to thrift/stdcxx.h not found, is there -L path or l linker required for the program to compile

@ideepika
Copy link
Contributor

for a workaround, if it is not necessary, you can turn off Gtests using -DBUILD_TESTING=OFF

@Namburger
Copy link

Has there been a fix for this?

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

Successfully merging a pull request may close this issue.

5 participants