Comments (7)
If you use BUILD_ETCD_CORE_ONLY=ON
during configuring cmake, the async client Client
won't be available.
from etcd-cpp-apiv3.
I did not set that option. In the README.md it's said it's set to OFF
by default
from etcd-cpp-apiv3.
It was a weird problem,
Just need to add -lcpprest -letcd-app-api
to the build options.
But I have a question, is it possible (the easiest way) to include this repo as a dependency of a project which already uses cmake
and ninja
to build ?
from etcd-cpp-apiv3.
With cmake, you could either
- clone this project, make install, and
find(package etcd-cpp-api)
in your CMakeLists.txt - or, use
add_subdirectory(...)
to add this project as submodule.
from etcd-cpp-apiv3.
Just need to add -lcpprest -letcd-app-api to the build options.
Closing as resolved.
from etcd-cpp-apiv3.
Hello, @sighingnow
Sorry to bounce again on this post,
I tried to include etcd-cpp-api in a project built with cmake and ninja (ceph) but I still get the undefined reference
error I posted above.
I use the find_package
command during the cmake prepare phase the package is well found but during the build the undefined reference
error appeared
from etcd-cpp-apiv3.
You need link the etcd-cpp-apiv3 library to your library/executable like:
target_link_libraries(<Your Library / Executable> PRIVATE etcd-cpp-api)
from etcd-cpp-apiv3.
Related Issues (20)
- 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
- Compilation error on Ubuntu HOT 1
- BUILD_WITH_NO_EXCEPTIONS is invalid HOT 3
- Can I get the data stored in etcd v2
- keepalive的bug 建议修复掉
- keepalive代码有一点bug建议修复掉
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.