sijie closed pull request #1957: Update pulsar cpp client docs URL: https://github.com/apache/incubator-pulsar/pull/1957
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/site/docs/latest/clients/Cpp.md b/site/docs/latest/clients/Cpp.md index a480474971..d153be92e6 100644 --- a/site/docs/latest/clients/Cpp.md +++ b/site/docs/latest/clients/Cpp.md @@ -60,16 +60,28 @@ First, install all of the necessary dependencies: ```shell $ apt-get install cmake libssl-dev libcurl4-openssl-dev liblog4cxx-dev \ - libprotobuf-dev libboost-all-dev libgtest-dev libjsoncpp-dev + libprotobuf-dev libboost-all-dev google-mock libgtest-dev libjsoncpp-dev ``` Then compile and install [Google Test](https://github.com/google/googletest): ```shell -$ git clone https://github.com/google/googletest.git && cd googletest +# libgtest-dev version is 1.18.0 or above +$ cd /usr/src/googletest $ sudo cmake . $ sudo make -$ sudo cp *.a /usr/lib +$ sudo cp ./googlemock/libgmock.a ./googletest/libgtest.a /usr/lib/ + +# less than 1.18.0 +$ cd /usr/src/gtest +$ sudo cmake . +$ sudo make +$ sudo cp libgtest.a /usr/lib + +$ cd /usr/src/gmock +$ sudo cmake . +$ sudo make +$ sudo cp libgmock.a /usr/lib ``` Finally, compile the Pulsar client library for C++ inside the Pulsar repo: ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
