Hi John, I recently updated the C++ Quick Start <https://grpc.io/docs/quickstart/cpp/>, which now describes how to "*build and locally install gRPC* before building and running this quick start’s Hello World example." I've tested the instructions on Ubuntu 18.04 LTS and haven't had any issues. Maybe you can give those instructions a try? (Which version of cmake are you using? You'll need 3.13+.)
Best, Patrice On Wednesday, April 22, 2020 at 11:00:01 AM UTC-4, John Leidel wrote: > > All, its been quite some time since I last built+installed gRPC from > source. I'm attempting to build+install on Ubuntu 18.04 LTS from source > and I can't seem to get the libgrpc++* libraries to install. I'm following > the directions on the gRPC building guide, but regardless of the > version/options I choose, the build refuses to install the necessary > libraries. So far, I've tried the current master branch (HEAD), v1.28.1, > v.1.27.2, v.1.25.0 and they all fail. > > Build method: > $> git clone --recurse-submodules -b v1.28.1 https://github.com/grpc/grpc > $> cd grpc > $> mkdir -p cmake/build > $> cd cmake/build > $> cmake -DCMAKE_INSTALL_PREFIX=/home/user/grpc -DgRPC_INSTALL=ON ../../ > $> make -j > $> make install > > ....where `/home/user/grpc` is a directory within my home directory. I > see the following libs installed: > libcares.a libprotobuf.a libprotobuf-lite.a libprotoc.a libz.a libz.so > > libgrpc++.a (and its other variants) are built via cmake, but they're not > installed. As an aside, I also tried manually enabling the CPP plugin in > the cmake build, but it delivers the same results. > > I've also tried building the helloworld test from within the source tree > as directed by the instructions on Github. It fails to find a cmake > dependency from the install: > CMake Error at /home/user/grpc/lib/cmake/grpc/gRPCConfig.cmake:12 > (include): > include could not find load file: > > /home/user/grpc/lib/cmake/grpc/gRPCTargets.cmake > Call Stack (most recent call first): > CMakeLists.txt:116 (find_package) > > > Any thoughts? > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/c002f687-423f-4e03-83ad-c6b11f806647%40googlegroups.com.
