源码下载
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
从源码构建并运行fdbus及protobuf实例,
该文指导读者如何从Gitee和GitHub下载fdbus和protobuf的源码,然后进行编译和安装。通过指定CMake参数,构建过程包括了protobuf的子模块更新和fdbus的依赖设置。最后,文章说明了如何运行fdbus的name_server、fdbserver_test和fdbclient_test示例。
3422

被折叠的 条评论
为什么被折叠?



