WenJie872 commented on issue #2880:
URL: https://github.com/apache/brpc/issues/2880#issuecomment-3399645788

   cmake编译brpc动态库,需要添加编译命令-DBUILD_SHARED_LIBS=ON
   我这边使用的全部命令是
   # 拉取项目
   https://github.com/apache/brpc.git
   cd brpc
   git checkout 1.9.0
   
   # cmake编译brpc
   mkdir build && cd build
   cmake -DCMAKE_CXX_COMPILER=$(which g++) -DCMAKE_C_COMPILER=$(which gcc) 
-DWITH_RDMA=ON -DBUILD_SHARED_LIBS=ON ..
   make -j16
   make install
   
   # 编译echo_c++ example
   cd ../example/echo_c++/
   mkdir build && cd build
   cmake -DCMAKE_CXX_COMPILER=$(which g++) -DCMAKE_C_COMPILER=$(which gcc) 
-DLINK_SO=ON ..
   make -j16


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to