Commit fdb23393 authored by wangyao02's avatar wangyao02

- rename build to bld in doc, make Mac build ok when case sensitive

parent a6ccc96a
...@@ -78,7 +78,7 @@ $ sh run_tests.sh ...@@ -78,7 +78,7 @@ $ sh run_tests.sh
### Compile brpc with cmake ### Compile brpc with cmake
```shell ```shell
mkdir build && cd build && cmake .. && make mkdir bld && cd bld && cmake .. && make
``` ```
To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++. To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++.
...@@ -91,7 +91,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT ...@@ -91,7 +91,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT
**Run example with cmake** **Run example with cmake**
```shell ```shell
$ cd example/echo_c++ $ cd example/echo_c++
$ mkdir build && cd build && cmake .. && make $ mkdir bld && cd bld && cmake .. && make
$ ./echo_server & $ ./echo_server &
$ ./echo_client $ ./echo_client
``` ```
...@@ -99,7 +99,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak ...@@ -99,7 +99,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak
**Run tests** **Run tests**
```shell ```shell
$ mkdir build && cd build && cmake -DBUILD_UNIT_TESTS=ON .. && make $ mkdir bld && cd bld && cmake -DBUILD_UNIT_TESTS=ON .. && make
$ cd test $ cd test
$ sh run_tests.sh $ sh run_tests.sh
``` ```
...@@ -169,7 +169,7 @@ $ sh run_tests.sh ...@@ -169,7 +169,7 @@ $ sh run_tests.sh
### Compile brpc with cmake ### Compile brpc with cmake
```shell ```shell
mkdir build && cd build && cmake .. && make mkdir bld && cd bld && cmake .. && make
``` ```
To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++. To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++.
...@@ -183,7 +183,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT ...@@ -183,7 +183,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT
```shell ```shell
$ cd example/echo_c++ $ cd example/echo_c++
$ mkdir build && cd build && cmake .. && make $ mkdir bld && cd bld && cmake .. && make
$ ./echo_server & $ ./echo_server &
$ ./echo_client $ ./echo_client
``` ```
...@@ -191,7 +191,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak ...@@ -191,7 +191,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak
**Run tests** **Run tests**
```shell ```shell
$ mkdir build && cd build && cmake -DBUILD_UNIT_TESTS=ON .. && make $ mkdir bld && cd bld && cmake -DBUILD_UNIT_TESTS=ON .. && make
$ cd test $ cd test
$ sh run_tests.sh $ sh run_tests.sh
``` ```
...@@ -242,7 +242,7 @@ $ make ...@@ -242,7 +242,7 @@ $ make
git clone brpc. cd into the repo and run git clone brpc. cd into the repo and run
```shell ```shell
mkdir build && cd build && cmake -DCMAKE_INCLUDE_PATH="/path/to/dep1/include;/path/to/dep2/include" -DCMAKE_LIBRARY_PATH="/path/to/dep1/lib;/path/to/dep2/lib" .. && make mkdir bld && cd bld && cmake -DCMAKE_INCLUDE_PATH="/path/to/dep1/include;/path/to/dep2/include" -DCMAKE_LIBRARY_PATH="/path/to/dep1/lib;/path/to/dep2/lib" .. && make
``` ```
To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++. To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++.
...@@ -276,7 +276,7 @@ brew install gperftools ...@@ -276,7 +276,7 @@ brew install gperftools
If you need to run tests, install and compile googletest (which is not compiled yet): If you need to run tests, install and compile googletest (which is not compiled yet):
```shell ```shell
git clone https://github.com/google/googletest && cd googletest/googletest && mkdir build && cd build && cmake .. && make && sudo mv libgtest* /usr/lib/ && cd - git clone https://github.com/google/googletest && cd googletest/googletest && mkdir bld && cd bld && cmake .. && make && sudo mv libgtest* /usr/lib/ && cd -
``` ```
### Compile brpc with config_brpc.sh ### Compile brpc with config_brpc.sh
...@@ -311,7 +311,7 @@ $ sh run_tests.sh ...@@ -311,7 +311,7 @@ $ sh run_tests.sh
### Compile brpc with cmake ### Compile brpc with cmake
```shell ```shell
mkdir build && cd build && cmake .. && make mkdir bld && cd bld && cmake .. && make
``` ```
To not link debugging symbols, use `cmake -DWITH_DEBUG_SYMBOLS=OFF ..` and compiled binaries will be much smaller. To not link debugging symbols, use `cmake -DWITH_DEBUG_SYMBOLS=OFF ..` and compiled binaries will be much smaller.
...@@ -323,7 +323,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT ...@@ -323,7 +323,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT
**Run example with cmake** **Run example with cmake**
```shell ```shell
$ cd example/echo_c++ $ cd example/echo_c++
$ mkdir build && cd build && cmake .. && make $ mkdir bld && cd bld && cmake .. && make
$ ./echo_server & $ ./echo_server &
$ ./echo_client $ ./echo_client
``` ```
...@@ -331,7 +331,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak ...@@ -331,7 +331,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak
**Run tests** **Run tests**
```shell ```shell
$ mkdir build && cd build && cmake -DBUILD_UNIT_TESTS=ON .. && make $ mkdir bld && cd bld && cmake -DBUILD_UNIT_TESTS=ON .. && make
$ cd test $ cd test
$ sh run_tests.sh $ sh run_tests.sh
``` ```
......
...@@ -33,7 +33,7 @@ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --with-thrift ...@@ -33,7 +33,7 @@ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --with-thrift
# Fedora/CentOS # Fedora/CentOS
sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64 --with-thrift sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64 --with-thrift
# Or use cmake # Or use cmake
mkdir build && cd build && cmake ../ -DWITH_THRIFT=1 mkdir bld && cd bld && cmake ../ -DWITH_THRIFT=1
``` ```
更多编译选项请阅读[Getting Started](../cn/getting_started.md) 更多编译选项请阅读[Getting Started](../cn/getting_started.md)
......
...@@ -33,7 +33,7 @@ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --with-thrift ...@@ -33,7 +33,7 @@ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --with-thrift
# Fedora/CentOS # Fedora/CentOS
sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64 --with-thrift sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64 --with-thrift
# Or use cmake # Or use cmake
mkdir build && cd build && cmake ../ -DWITH_THRIFT=ON mkdir bld && cd bld && cmake ../ -DWITH_THRIFT=ON
``` ```
Read [Getting Started](../cn/getting_started.md) for more compilation options. Read [Getting Started](../cn/getting_started.md) for more compilation options.
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
// //
// list.Append(n1); // list.Append(n1);
// list.Append(n3); // list.Append(n3);
// n3->InsertBefore(n3); // n2->InsertBefore(n3);
// //
// Lastly, to iterate through the linked list forwards: // Lastly, to iterate through the linked list forwards:
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment