我在macbook编译ananas遇到的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/libaineu2004/article/details/83659574

1、先安装cmake

https://blog.csdn.net/libaineu2004/article/details/83658785

2、再安装protobuf

https://blog.csdn.net/libaineu2004/article/details/80706083

mac没有ldconfig命令

3、需要修改源码才能通过编译:

(1)/ananas/protobuf_rpc/ProtobufCoder.h

增加#include "ananas/util/Buffer.h"

(2)/ananas/protobuf_rpc/CMakeLists.txt

/ananas/tests/test_protobuf_rpc/CMakeLists.txt

把”COMMAND protoc“修改为”COMMAND /usr/local/bin/protoc“

猜你喜欢

转载自blog.csdn.net/libaineu2004/article/details/83659574