Patrice, I updated CMake to something newer within range and the build+install appears to work. I have some other issues to get ironed out in order to sync our external packages with the updated Cmake scripts, but I suspect this was the major issue. Thanks for the help!
best john On Wed, Apr 22, 2020 at 10:22 AM John Leidel <[email protected]> wrote: > > Patrice, thanks for the quick response. I was, in fact, using the > updated C++ Quick Start directions. However, I did find that my CMake > version was slightly out of date (3.10.X). I'm updating CMake and > will report back as soon as I can get a clean build. > > On Wed, Apr 22, 2020 at 10:08 AM Patrice Chalin <[email protected]> wrote: > > > > Hi John, > > > > I recently updated the C++ Quick Start, 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. -- 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/CAC6GRO_69N7mcpXdcHMu0SyJnK55qRYsZNbt-GB5gSpKr3pxCg%40mail.gmail.com.
