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 2020/06/19 09:34:48 UTC

[GitHub] [pulsar] firefeifei opened a new issue #7312: pulsar-2.6.0 cpp client build error

firefeifei opened a new issue #7312:
URL: https://github.com/apache/pulsar/issues/7312


   **Describe the bug**
   build error
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   [root@VM_72_166_tlinux /data/commlibsrc/pulsar-2.6.0/pulsar-client-cpp/build]# cmake ..
   -- ARCHITECTURE: x86_64
   -- BUILD_TESTS:  ON
   -- BUILD_PYTHON_WRAPPER:  ON
   -- LINK_STATIC:  OFF
   -- USE_LOG4CXX:  OFF
   -- CMAKE_BUILD_TYPE:  RelWithDebInfo
   -- Found Boost: /usr/local/include (found version "1.54.0") found components: program_options regex system 
   -- PYTHON: 2.7.10
   -- Found Boost: /usr/local/include (found version "1.54.0") found components: python 
   -- HAS_ZSTD: 0
   -- HAS_SNAPPY: 1
   -- Using Boost Python libs: /usr/local/lib/libboost_python.so
   clang-tidy not found
   clang-format not found
   -- Configuring done
   -- Generating done
   -- Build files have been written to: /data/commlibsrc/pulsar-2.6.0/pulsar-client-cpp/build
   
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - linux 3.10.106
   
   **Additional context**
   
   /data/commlibsrc/pulsar-2.6.0/pulsar-client-cpp/lib/CompressionCodecSnappy.cc: In member function 'virtual bool pulsar::CompressionCodecSnappy::decode(const pulsar::SharedBuffer&, uint32_t, pulsar::SharedBuffer&)':
   /data/commlibsrc/pulsar-2.6.0/pulsar-client-cpp/lib/CompressionCodecSnappy.cc:43:42: error: cannot convert 'snappy::ByteArraySource*' to 'const char*' for argument '1' to 'bool snappy::Uncompress(const char*, size_t, snappy::string*)'
        if (snappy::Uncompress(&source, &sink)) {
                                             ^
   make[2]: *** [lib/CMakeFiles/pulsarShared.dir/CompressionCodecSnappy.cc.o] Error 1
   make[1]: *** [lib/CMakeFiles/pulsarShared.dir/all] Error 2
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [pulsar] wolfstudy commented on issue #7312: pulsar-2.6.0 cpp client build error

Posted by GitBox <gi...@apache.org>.
wolfstudy commented on issue #7312:
URL: https://github.com/apache/pulsar/issues/7312#issuecomment-647226824


   It looks like you are missing some necessary dependency lib, @firefeifei can you follow this doc: [how to build the CPP client](https://pulsar.apache.org/docs/en/develop-cpp/)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [pulsar] firefeifei commented on issue #7312: pulsar-2.6.0 cpp client build error

Posted by GitBox <gi...@apache.org>.
firefeifei commented on issue #7312:
URL: https://github.com/apache/pulsar/issues/7312#issuecomment-647252649


   The above compilation error is required for snappy1.1.8
   -----------
   A version of the snappy library that you rely on is added to the recommendation document


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [pulsar] jiazhai commented on issue #7312: pulsar-2.6.0 cpp client build error

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #7312:
URL: https://github.com/apache/pulsar/issues/7312#issuecomment-647266318


   Hi @firefeifei.  It is recommend to use `pulsar-client-cpp/docker-build.sh` to build the cpp client.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [pulsar] firefeifei closed issue #7312: pulsar-2.6.0 cpp client build error

Posted by GitBox <gi...@apache.org>.
firefeifei closed issue #7312:
URL: https://github.com/apache/pulsar/issues/7312


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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