From 278d24a64297943101b59b7a5e9f9059665961cf Mon Sep 17 00:00:00 2001 From: Dong Daxiang <35550832+guru4elephant@users.noreply.github.com> Date: Thu, 20 Feb 2020 15:03:05 +0800 Subject: [PATCH] Create COMPILE.md --- doc/COMPILE.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/COMPILE.md diff --git a/doc/COMPILE.md b/doc/COMPILE.md new file mode 100644 index 00000000..3fb64ff5 --- /dev/null +++ b/doc/COMPILE.md @@ -0,0 +1,23 @@ +# 如何编译PaddleServing + +### 获取代码 + +``` python +git clone https://github.com/PaddlePaddle/Serving +git submodule update --init --recursive +``` + +### 编译Server部分 + +``` shell +cmake -DPYTHON_INCLUDE_DIR=$PYTHONROOT/include/python2.7/ -DPYTHON_LIBRARIES=$PYTHONROOT/lib/libpython2.7.so -DPYTHON_EXECUTABLE=/home/users/dongdaxiang/software/baidu/third-party/python/bin/python -DCLIENT_ONLY=OFF .. +make -j10 +``` + +### 编译Client部分 + +``` shell +cmake -DPYTHON_INCLUDE_DIR=$PYTHONROOT/include/python2.7/ -DPYTHON_LIBRARIES=$PYTHONROOT/lib/libpython2.7.so -DPYTHON_EXECUTABLE=/home/users/dongdaxiang/software/baidu/third-party/python/bin/python -DCLIENT_ONLY=ON .. +make -j10 +``` + -- GitLab