Describe your environment Describe any aspect of your environment relevant to the problem, including your platform, build system, version numbers of installed dependencies, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main branch.
I tried to build my project by running alcor-control-agent/build/aca-machine-init.sh as root. This script installs the needed libraries for this project, and uses cmake . then make to build it.
At the make part, it complained about:
root@ip-172-31-15-115:/home/ubuntu/src/github.com/zzxgzgz/alcor-control-agent# cmake .
Checking file [/usr/local/lib/cmake/protobuf/ProtobufConfig.cmake]
Checking file [/usr/local/lib/cmake/protobuf/protobuf-config.cmake]
-- Using protobuf
Checking file [/usr/local/lib/cmake/grpc/gRPCConfig.cmake]
Checking file [/usr/local/lib/cmake/c-ares/c-aresConfig.cmake]
Checking file [/usr/local/lib/cmake/c-ares/c-ares-config.cmake]
-- Using gRPC 1.24.3
Checking file [/usr/local/lib/cmake/opentelemetry-cpp/opentelemetry-cppConfig.cmake]
Checking file [/usr/local/lib/cmake/opentelemetry-cpp/opentelemetry-cpp-config.cmake]
-- Using opentelemetry-cpp at: /usr/local/include
-- Using opentelemetry-cpp libraries: opentelemetry-cpp::api;opentelemetry-cpp::sdk;opentelemetry-cpp::ext;opentelemetry-cpp::version;opentelemetry-cpp::common;opentelemetry-cpp::trace;opentelemetry-cpp::in_memory_span_exporter;opentelemetry-cpp::ostream_span_exporter;opentelemetry-cpp::jaeger_trace_exporter;opentelemetry-cpp::http_client_curl
Checking file [/usr/local/lib/cmake/thrift/ThriftConfig.cmake]
-- Found thrift: /usr/local
-- Using Thrift libraries: thrift::thrift
-- Found Protobuf: /usr/local/lib/libprotobuf.a (found version "3.8.0")
Checking file [/usr/local/lib/cmake/protobuf/ProtobufConfig.cmake]
Checking file [/usr/local/lib/cmake/protobuf/protobuf-config.cmake]
-- Found Protobuf: /usr/local/bin/protoc-3.8.0.0 (found version "3.8.0.0")
-- Using protobuf
Checking file [/usr/local/lib/cmake/grpc/gRPCConfig.cmake]
-- Using gRPC 1.24.3
Checking file [/usr/local/lib/cmake/protobuf/ProtobufConfig.cmake]
Checking file [/usr/local/lib/cmake/protobuf/protobuf-config.cmake]
-- Using protobuf
Checking file [/usr/local/lib/cmake/grpc/gRPCConfig.cmake]
Checking file [/usr/local/lib/cmake/c-ares/c-aresConfig.cmake]
Checking file [/usr/local/lib/cmake/c-ares/c-ares-config.cmake]
-- Using gRPC 1.24.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/src/github.com/zzxgzgz/alcor-control-agent
root@ip-172-31-15-115:/home/ubuntu/src/github.com/zzxgzgz/alcor-control-agent# make
[ 4%] Built target grpc
[ 29%] Built target proto
[ 82%] Built target AlcorControlAgentLib
src/CMakeFiles/AlcorControlAgent.dir/build.make:89: *** target pattern contains no '%'. Stop.
CMakeFiles/Makefile2:133: recipe for target 'src/CMakeFiles/AlcorControlAgent.dir/all' failed
make[1]: *** [src/CMakeFiles/AlcorControlAgent.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
inside the src/CMakeFiles/AlcorControlAgent.dir/build.make I see that:
Describe your environment Describe any aspect of your environment relevant to the problem, including your platform, build system, version numbers of installed dependencies, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main branch.
I'm using the master branch of repo.
Steps to reproduce Describe exactly how to reproduce the error. Include a code sample if applicable.
I followed the installation page of
opentelemetry-cpp
and have it installed.I added the lines instructed here: https://github.com/open-telemetry/opentelemetry-cpp/blob/main/INSTALL.md#incorporating-into-an-existing-cmake-project
to my
CMakeLists.txt
, which you can find here: CMakeLists.txt of my projectalcor-control-agent/build/aca-machine-init.sh
as root. This script installs the needed libraries for this project, and usescmake .
thenmake
to build it.At the make part, it complained about:
inside the
src/CMakeFiles/AlcorControlAgent.dir/build.make
I see that:but for other libraries I use in this project the
.a
and.so
files are found and listed there.What is the expected behavior? I expect that
opentelemetry-cpp
can be found and a successful compile.What is the actual behavior? A failed compile with the above error messages.
Additional context Attaching outputs of installing this library, for your reference:
Thank you very much for your help.