Skip to content

kklongming/PocoRpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PocoRpc: 一个基于Google Protobuf 和 Poco 的C++ RPC框架

#如何构建编译环境# #主要依赖项#

##Mac下构建编译环境##

brew install poco gflags glog protobuf
brew install python scons  

##Centos6下构建编译环境##

  • 安装开发工具
yum -y groupinstall  "Development tools"
yum -y install openssl-devel
yum -y install scons
  • 编译安装Poco
wget http://pocoproject.org/releases/poco-1.4.6/poco-1.4.6p1-all.tar.gz 
tar -vxf poco-1.4.6p1-all.tar.gz
cd poco-1.4.6p1-all
./configure --config=Linux --omit=Data/MySQL,Data/ODBC,PageCompiler --cflags=-fPIC --no-samples --no-tests --static --shared
make && make install
  • 编译安装 gflags, glog, protobuf
wget http://gflags.googlecode.com/files/gflags-2.0.tar.gz
tar -vxf gflags-2.0.tar.gz
cd gflags-2.0
./configure --enable-shared --enable-static
make && make install
wget http://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
tar -vxf glog-0.3.3.tar.gz
cd glog-0.3.3
./configure --enable-shared --enable-static
make && make install
wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2
tar -vxf protobuf-2.5.0.tar.bz2
cd protobuf-2.5.0
./configure
make && make install
  • 添加usr_local_lib.conf, 保证能够正常从 /usr/local/lib 下加载动态库
echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig -v

##Ubuntu 下构建编译环境##

  • TO DO...

About

C++ RPC Framework which using Poco and Protobuf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published