Giter Club home page Giter Club logo

Comments (5)

coryan avatar coryan commented on August 22, 2024

Thank you for the bug report. We need your help to reproduce the problem (and then fix it!)

What exactly do you mean by "latest grpc"?
Did you compile and install the master branch? Or v1.6.x? Or v1.4.x?

Can you include the command you used to download grpc?
If you used git to clone the grpc repository, can you include the output from git status and/or git rev-parse HEAD?

from cpp-samples.

SHI-ZP avatar SHI-ZP commented on August 22, 2024

Sorry for my incomplete report.

The output of git status is:

On branch v1.4.x
Your branch is up-to-date with 'origin/v1.4.x'.
nothing to commit, working directory clean

from cpp-samples.

coryan avatar coryan commented on August 22, 2024

I have tested the build on Ubuntu 14.04 against the v1.4.x version of grpc, it works without problem. You can find the shell script and Dockerfile I used here:

https://github.com/coryan/cpp-docs-samples/tree/fix-issue-24/speech/api/ci

I think the main difference is that we normally compile grpc against the c-ares submodule. That is, grpc is not compiled against libc-ares-dev, it is compiled against the submodule in third_party/cares. The commands to compile and install grpc are:

git clone https://github.com/grpc/grpc.git
cd grpc
git checkout v1.4.x
git submodule update --init
make -j 2
make install
cd third_party/protobuf
make install

Please feel free to reopen this bug if that does not help you.

from cpp-samples.

SHI-ZP avatar SHI-ZP commented on August 22, 2024

I suppose ur point is to install the protobuf from the grpc/third_party/protobuf/ instead of https://github.com/google/protobuf/blob/3.1.x/src/README.md

So, I've tried the method which is similar to

WORKDIR /var/tmp/build-grpc
RUN (git clone https://github.com/grpc/grpc.git &&
cd grpc && git checkout v1.4.x && git submodule update --init &&
make -j 2 && make install &&
cd third_party/protobuf && make install)

But there is error when

cd third_party/protobuf
make install

which gives me:

/grpc/third_party/protobuf$ -> make install
make: *** No rule to make target `install'. Stop.

I've checkout the v1.4.x grpc already, did I missed something?Thanks

from cpp-samples.

coryan avatar coryan commented on August 22, 2024

I suppose ur point is to install the protobuf from the grpc/third_party/protobuf/ instead of
https://github.com/google/protobuf/blob/3.1.x/src/README.md

I did not make that point explicitly, but yes, you want to install the dependencies from grpc/third_party instead of trying to find matching versions from somewhere else.

So, I've tried the method which is similar to

You say "similar", do you mean to say you used exactly those commands, or something else? If something else, would you mind showing the exact commands that you used?

from cpp-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.