提交 eaedef89 编写于 作者: L liaogang

Update build doc

上级 0072ef50
...@@ -48,7 +48,7 @@ sudo apt-get install libgflags-dev ...@@ -48,7 +48,7 @@ sudo apt-get install libgflags-dev
sudo apt-get install libgtest-dev sudo apt-get install libgtest-dev
sudo pip install wheel sudo pip install wheel
pushd /usr/src/gtest pushd /usr/src/gtest
cmake .. cmake .
make make
sudo cp *.a /usr/lib sudo cp *.a /usr/lib
popd popd
...@@ -106,19 +106,19 @@ Here are some examples of cmake command with different options: ...@@ -106,19 +106,19 @@ Here are some examples of cmake command with different options:
**only cpu** **only cpu**
```bash ```bash
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF .. cmake -DWITH_GPU=OFF -DWITH_DOC=OFF
``` ```
**gpu** **gpu**
```bash ```bash
cmake -DWITH_GPU=ON -DWITH_DOC=OFF .. cmake -DWITH_GPU=ON -DWITH_DOC=OFF
``` ```
**gpu with doc and swig** **gpu with doc and swig**
```bash ```bash
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON .. cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON
``` ```
Finally, you can download source code and build: Finally, you can download source code and build:
...@@ -232,19 +232,19 @@ Here are some examples of CMake command with different options: ...@@ -232,19 +232,19 @@ Here are some examples of CMake command with different options:
**only cpu** **only cpu**
```bash ```bash
cmake -DWITH_GPU=OFF -DWITH_DOC=OFF .. cmake -DWITH_GPU=OFF -DWITH_DOC=OFF
``` ```
**gpu** **gpu**
```bash ```bash
cmake -DWITH_GPU=ON -DWITH_DOC=OFF .. cmake -DWITH_GPU=ON -DWITH_DOC=OFF
``` ```
**gpu with doc and swig** **gpu with doc and swig**
```bash ```bash
cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON .. cmake -DWITH_GPU=ON -DWITH_DOC=ON -DWITH_SWIG_PY=ON
``` ```
Finally, you can download source code and build: Finally, you can download source code and build:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册