Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build open-telemetry with missing variable GMOCK_LIB #1237

Closed
vaastav opened this issue Feb 27, 2022 · 3 comments
Closed

Failure to build open-telemetry with missing variable GMOCK_LIB #1237

vaastav opened this issue Feb 27, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@vaastav
Copy link

vaastav commented Feb 27, 2022

Hi, I am unable to build the library with the following error when I execute the cmake command.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GMOCK_LIB
    linked by target "http_client_nosend" in directory /home/vaastav/Projects/opentelemetry-cpp/ext/src/http/client/nosend

Could someone tell me what is missing or why this is failing?

@vaastav vaastav added the bug Something isn't working label Feb 27, 2022
@vaastav vaastav changed the title Failure to build open-telemetry with missing library GMOCK_LIB Failure to build open-telemetry with missing variable GMOCK_LIB Feb 27, 2022
@lalitb
Copy link
Member

lalitb commented Feb 27, 2022

Duplicate to #1226.
Meanwhile please use opentelemetry-cpp v1.2.0.

@esigo
Copy link
Member

esigo commented Mar 2, 2022

Hi @vaastav, thanks for reaching out to us. Would it be possible to share the options you have used?
http_nosend is used for unit tests only and currently depends on GMock.
This can be turned off by -DBUILD_TESTING=OFF.

@vaastav
Copy link
Author

vaastav commented Mar 3, 2022

Hi @esigo, I followed the instructions here: https://github.com/open-telemetry/opentelemetry-cpp/blob/main/INSTALL.md

I was able to circumnavigaet the error by using the v1.2.0

@vaastav vaastav closed this as completed Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants