Tencent / phxpaxos

The Paxos library implemented in C++ that has been used in the WeChat production environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

头文件找不到

eternally123 opened this issue · comments

我在编译libphxpaxos_plugin.a时出现了问题。

操作系统Ubuntu18.04

第三方库protobuf和leveldb都手动编译好了放到third_part文件夹里。
然后执行./autoinstall.sh也没有问题。
然后执行make的时候,就报错显示找不到头文件

/home/user1/src/phxpaxos/src/comm/comm_include.h:24:10: fatal error: ./paxos_msg.pb.h: No such file or directory
#include "./paxos_msg.pb.h"

我find / -name "paxos_msg.pb.h"也找不到这个文件。不知道这个头文件是哪里的?是phxpaxos本身的吗还是第三方库的?

用你在 third_party/protobuf/bin/里生成的protoc ,对 phxpaxos/src/comm/paxos_msg.proto 生成一下,命令 你的proroc -I=./ --cpp_out=./ phxpaxos/src/comm/paxos_msg.proto ,然后在编译