Comments (7)
I see this file does exists, still build fails for not finding it:
root@lb-prof:~/etcd# ls -ltrh /usr/local/include/etcd/proto/google/api/http.pb.h
-rw-r--r-- 1 root root 61K Jan 31 21:44 /usr/local/include/etcd/proto/google/api/http.pb.h
root@lb-prof:~/etcd#
I manually then updated the file:
`/usr/local/include/etcd/proto/google/api/annotations.pb.h'
as:
#include "http.pb.h"
instead of original: #include "google/api/http.pb.h"
and then it compiled.
Wondering, if this is right way or expected while using etcd-cpp-apiv3
in any program.
Please suggest?
from etcd-cpp-apiv3.
Hi @ashish-billore,
Assuming you are installing etcd-cpp-apiv3 library into /usr/local
, you need to add /usr/local/include
as well as /usr/local/include/etcd
to the compiler flags, as
g++ -I/usr/local/include -I/usr/local/include/etcd
That is a bit annoying, but the fixes is not very easy. We want to keep the same package name, module name and file structures with etcd ifself (that means, when we update protobuf files, we just need to copy them, without any changes). The include path in headers is generated by protoc, not ourself. I think adding a nother include directory should be usually fine enough.
from etcd-cpp-apiv3.
Wondering, if this is right way or expected while using etcd-cpp-apiv3 in any program.
Assuming you are working with CMake, you just need to add another include directory.
from etcd-cpp-apiv3.
Thanks @sighingnow I'll follow your suggestion to compile with:
g++ -I/usr/local/include -I/usr/local/include/etcd
from etcd-cpp-apiv3.
Hi @ashish-billore,
I would like to know if providing a cmake module to make find_package(etcd)
work and set a CMake variable ETCD_INCLUDE_DIRS
helps for you case.
from etcd-cpp-apiv3.
Sure, that sounds good too.
from etcd-cpp-apiv3.
@sighingnow After compiling as above, when I try to run the application, I get a core dump.
I create another issue for that: #40 since the compilation is done.
Please have a look, thanks!
from etcd-cpp-apiv3.
Related Issues (20)
- [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
- Compilation error on Ubuntu HOT 1
- BUILD_WITH_NO_EXCEPTIONS is invalid HOT 3
- Can I get the data stored in etcd v2
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.