You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/06/13 04:39:54 UTC

[GitHub] hrsakai opened a new pull request #1957: Update pulsar cpp client docs

hrsakai opened a new pull request #1957: Update pulsar cpp client docs
URL: https://github.com/apache/incubator-pulsar/pull/1957
 
 
   ### Motivation
   
   `cmake` command failed with below error on ubuntu-16.04.
   ```
   $ cd pulsar-client-cpp
   $ cmake .
   CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
   Please set them or make sure they are set and tested correctly in the CMake files:
   GMOCK_INCLUDE_PATH
      used as include directory in directory /root/incubator-pulsar/pulsar-client-cpp
      used as include directory in directory /root/incubator-pulsar/pulsar-client-cpp
   ・
   ・
   GMOCK_LIBRARY_PATH
       linked by target "main" in directory /root/incubator-pulsar/pulsar-client-cpp/tests
   
   -- Configuring incomplete, errors occurred!
   See also "/root/incubator-pulsar/pulsar-client-cpp/CMakeFiles/CMakeOutput.log".
   See also "/root/incubator-pulsar/pulsar-client-cpp/CMakeFiles/CMakeError.log”. 
   ```
   
   Also, we have to complie codes under `/usr/src/googletest`, not `/usr/src/gmock` and `/usr/src/gtest` on ubuntu-18.04(installed libgtest-dev-1.18.0)
   ```
   $ cd /usr/src/gmock/
   $ cmake .
   CMake Error at /usr/src/googletest/CMakeLists.txt:13 (add_subdirectory):
     add_subdirectory not given a binary directory but the given source
     directory "/usr/src/gmock" is not a subdirectory of "/usr/src/googletest".
     When specifying an out-of-tree source a binary directory must be explicitly
     specified.
   
   
   CMake Error at CMakeLists.txt:56 (config_compiler_and_linker):
     Unknown CMake command "config_compiler_and_linker".
   
   
   -- Configuring incomplete, errors occurred!
   See also "/usr/src/gmock/CMakeFiles/CMakeOutput.log".
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services