Comments (6)
If I understand correctly you are working with a static-linked grpc library. Current CMakeLists.txt
doesn't handle such cases since grpc has a tons of dependencies, which can be either "bundled" or "package". I have noticed that you are working with Ubuntu, thus I think apt-get install libgrpc-dev libgrpc++-dev libprotobuf-dev libssl-dev libz-dev protobuf-compiler-grpc
should works, just as what we have done in https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3/blob/master/.github/workflows/build-test.yml
.
Maunally build latest grpc is not need for etcd-cpp-apiv3. This library could work well with a wide range of grpc, even very old versions.
from etcd-cpp-apiv3.
Thanks a lot @sighingnow for the quick response. Indeed you are right, all the problems were related to grpc static lib. Your proposal to install dependancies via the package manager worked perfectly (and it saved a lot of time by avoiding compilation of all the dependent libs). This is my working Dockerfile in case it helps anyone.
@sighingnow I appreciate your help very much ! My problem is solved and this issue can be closed.
from etcd-cpp-apiv3.
Thanks for verifying the solution so quickly @SumuduLansakara , happy coding!
from etcd-cpp-apiv3.
how to compile etcd-cpp-api.so, I always got etcd-cpp-api.a ? thx @sighingnow
from etcd-cpp-apiv3.
@grants Thanks for your interest on this library, you could follow
etcd-cpp-apiv3/.github/workflows/build-test.yml
Lines 35 to 82 in eee2ea2
from etcd-cpp-apiv3.
Thank you, I got it.
from etcd-cpp-apiv3.
Related Issues (20)
- "Access violation reading location error" while create new client instance in Debug HOT 5
- etcd::KeepAlive constructor bug HOT 2
- tcache error when link etcd-cpp-apiv3 to ceph (with tcmalloc) HOT 11
- [Discussion] Contribute/Transfer the library etcd-cpp-apiv3 to the etcd-io Github organization HOT 1
- how to use etcd::KeepAlive? HOT 4
- keepalive 如何定时的续租 HOT 9
- There will has exceptions when etcd client disconnect with password. HOT 6
- keepalive failed when restart one of three etcd servers HOT 4
- etcd-cpp-api3 not support ipv6 HOT 2
- Is SyncClient thread-safe? HOT 1
- [warn] watcher does't exit normally
- Handle exception
- keepalive thread might exit unexpected when system clock drift HOT 1
- using etcdcpp in project with exception disabled HOT 1
- a lack of functionality in the implementation of the election API HOT 2
- etcd::Client init error with address mem is empty HOT 3
- Sync api 编译问题 HOT 3
- Behavior mismatch on add operation HOT 1
- Build fail with bazel HOT 2
- Waiting for lock not to return HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etcd-cpp-apiv3.