Demogorgon314 commented on PR #183:
URL: 
https://github.com/apache/pulsar-client-cpp/pull/183#issuecomment-1410343215

   I tried it on macOS, and it has a compile error. 
   
   ```bash
   ➜  wireshark git:(bewaremypower/wireshark-fix) ✗ cmake -B build 
-DWIRESHARK_INCLUDE_PATH=/opt/homebrew/Cellar/wireshark/4.0.3/include
   -- Use WIRESHARK_INCLUDE_PATH: /opt/homebrew/Cellar/wireshark/4.0.3/include
   -- Use GLIB_INCLUDE_DIRS: 
/opt/homebrew/Cellar/glib/2.74.5/include/glib-2.0;/opt/homebrew/Cellar/glib/2.74.5/lib/glib-2.0/include;/opt/homebrew/opt/gettext/include;/opt/homebrew/Cellar/pcre2/10.42/include
   -- Configuring done
   -- Generating done
   -- Build files have been written to: 
/Users/wangkai/Developer/github/pulsar-client-cpp/wireshark/build
   
   ➜  wireshark git:(bewaremypower/wireshark-fix) ✗ cmake --build build         
                                                        
   [ 25%] Building CXX object 
CMakeFiles/pulsar-dissector.dir/pulsarDissector.cc.o
   
/Users/wangkai/Developer/github/pulsar-client-cpp/wireshark/pulsarDissector.cc:21:1:
 error: unknown type name 'constexpr'
   constexpr int kWiresharkMajorVersion = WIRESHARK_VERSION_MAJOR;
   ^
   
/Users/wangkai/Developer/github/pulsar-client-cpp/wireshark/pulsarDissector.cc:22:1:
 error: unknown type name 'constexpr'
   constexpr int kWiresharkMinorVersion = WIRESHARK_VERSION_MINOR;
   ^
   In file included from 
/Users/wangkai/Developer/github/pulsar-client-cpp/wireshark/pulsarDissector.cc:37:
   
/Users/wangkai/Developer/github/pulsar-client-cpp/wireshark/build/generated/lib/PulsarApi.pb.h:10:10:
 fatal error: 'google/protobuf/port_def.inc' file not found
   #include <google/protobuf/port_def.inc>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.
   gmake[2]: *** [CMakeFiles/pulsar-dissector.dir/build.make:83: 
CMakeFiles/pulsar-dissector.dir/pulsarDissector.cc.o] Error 1
   gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/pulsar-dissector.dir/all] 
Error 2
   gmake: *** [Makefile:91: all] Error 2
   
   ```
   
   And if I don't specify the `WIRESHARK_INCLUDE_PATH`, it cannot find the path 
automatically.
   ```
   -- Cannot find ws_version.h, fallback to find config.h
   CMake Error at CMakeLists.txt:31 (message):
     Failed to find WIRESHARK_INCLUDE_PATH
   
   
   -- Configuring incomplete, errors occurred!
   
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to