-
After cloning and building the C++ sdk, I see the build artifacts (libraries) appear in "cmake-out" directory. However, the include files are not there. Am I wrong to expect the include files (like google-cloud-cpp/cmake-out/) to not be there? Here are my build commands after cloning the repo.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
First: if you are using vcpkg.io to get the dependencies of If you tell us more about what are you trying to do, maybe we can point you to the right documentation for your use-case. For example, if you wanted to compile
I think you mean "Am i wrong to expect the include files to be there?". In any case, maybe this can help:
If you want to install the libraries and headers you want something like: cmake -S . -B cmake-out --toolchain $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build cmake-out -- -j $(nproc)
cmake --install cmake-out --prefix /usr/local However, that will leave things in /usr/local that depend on the |
Beta Was this translation helpful? Give feedback.
First: if you are using vcpkg.io to get the dependencies of
google-cloud-cpp
, then you may want to use it to installgoogle-cloud-cpp
too. Mixing manually compiled libraries and libraries compiled with a package manager is full of pitfalls.If you tell us more about what are you trying to do, maybe we can point you to the right documentation for your use-case. For example, if you wanted to compile
google-cloud-cpp
from source then /doc/packaging.md is probably what you want. If you want to use vcpkg.io, then just the instructions from that package manager should work. You would just do something likevcpkg install google-cloud-cpp
and use what it produces.