xxpbb commented on issue #2378:
URL: https://github.com/apache/brpc/issues/2378#issuecomment-1715473278

   如果想指定 protobuf 的版本,可以这么做
   1. 先编译安装好 protobuf,比如:mkdir build && cd build && cmake 
-DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. && 
make -j
   2. 再编译安装 brpc,比如:mkdir build && cd build && cmake 
-DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_PREFIX_PATH=$HOME/.local .. && make 
-j
   3. 再编译你的项目,比如:mkdir build && cd build && cmake 
-DCMAKE_PREFIX_PATH=$HOME/.local .. && make -j


-- 
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: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to