BewareMyPower commented on issue #242:
URL: 
https://github.com/apache/pulsar-client-python/issues/242#issuecomment-2633037775

   I did some experiments on ubuntu:22.04 today.
   
   ## 1. Install the pre-built DEB packages
   
   ```bash
   curl -O -L 
https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.0/deb-arm64/apache-pulsar-client-dev.deb
   curl -O -L 
https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.0/deb-arm64/apache-pulsar-client.deb
   apt install ./apache-pulsar-client*.deb
   ```
   
   Then building the pulsar-client-python libraries.
   
   ```bash
   cmake -B build -DCMAKE_BUILD_TYPE=Release
   cmake --build build -j8
   mv build/lib_pulsar.so .
   ./setup.py bdist_wheel
   python3 -m pip install 
dist/pulsar_client-3.6.0-cp310-cp310-linux_aarch64.whl --force-reinstall
   python3 -c 'import pulsar; import torch'
   ```
   
   It works well.
   
   ## 2. Build pulsar-client-cpp from source
   
   ```bash
   # With the pulsar-client-cpp-3.7.0 source code
   cmake -B build-cpp -DINTEGRATE_VCPKG=ON -DCMAKE_BUILD_TYPE=Release 
-DBUILD_TESTS=OFF -DBUILD_DYNAMIC_LIB=ON -DBUILD_STATIC_LIB=ON
   cmake --build build-cpp -j8 --target install
   ```
   
   Then repeat the steps in the previous section. Now it will crash with 
"Segmentation fault".


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