fdbus example

源码下载
git clone https://gitee.com/jeremyczhen/fdbus.git

下载protobuf
cd ~/workspace
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
git submodule update --init --recursive
mkdir -p build/install
cd build

cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=1 …/cmake
make -j4 install

下载fdbus
编译fdbus example
cd ~/workspace/fdbus
mkdir -p build-example/install
cd build-example
cmake -DSYSTEM_ROOT=“/workspace/protobuf/build/install;/workspace/fdbus/build/install” -DCMAKE_INSTALL_PREFIX=install …/cmake/pb-example

PATH=~/workspace/protobuf/build/install/bin:$PATH make install

运行fdbus实例
run name service
cd ~/workspace/fdbus/build
./name_server

run test server
cd ~/workspace/fdbus/build-example
./fdbservertest my_test

run test client
cd ~/workspace/build-example
./fdbclienttest my_test

cd ~/workspace/fdbus/build
./logsvc

参考链接:
http://www.manongjc.com/detail/61-wosmjjgxiietfxh.html

你可能感兴趣的:(git,github,python)