ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.21k stars 1.38k forks source link

[Error]libsm_python.so: undefined symbol: _ZN5boost6python15instance_holder8allocateEP7_objectmmm #630

Closed myself-wutong closed 1 year ago

myself-wutong commented 1 year ago

hello,I am attempting to install this package on ubuntu20.04. But I encountered an error during runtime: /home/work/kalibr_workspace/devel/lib/python3/dist-packages/sm/libsm_python.so: undefined symbol: _ZN5boost6python15instance_holder8allocateEP7_objectmmm

This link states that this is caused by cmake not finding the correct Python: https://stackoverflow.com/questions/70582192/boostpython-undefined-symbol-zn5boost6python15instance-holder8allocateep7-ob I tried to solve the problem using this method but failed. Is there a solution to the problem

goldbattle commented 1 year ago

This is likely a python version issue, so I would check what version of python you have python --version and see what one the cmake is building against. If you can't get it to compile, you can always run the docker.

On Mon, Jul 10, 2023 at 5:10 AM myself-wutong @.***> wrote:

hello,I am attempting to install this package on ubuntu20.04. But I encountered an error during runtime: /home/work/kalibr_workspace/devel/lib/python3/dist-packages/sm/libsm_python.so: undefined symbol: _ZN5boost6python15instance_holder8allocateEP7_objectmmm

This link states that this is caused by cmake not finding the correct Python: https://stackoverflow.com/questions/70582192/boostpython-undefined-symbol-zn5boost6python15instance-holder8allocateep7-ob I tried to solve the problem using this method but failed. Is there a solution to the problem

— Reply to this email directly, view it on GitHub https://github.com/ethz-asl/kalibr/issues/630, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYRGWP7UVXGMOASQ6J3XPPWLXANCNFSM6AAAAAA2EOH77Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

myself-wutong commented 1 year ago

This is likely a python version issue, so I would check what version of python you have python --version and see what one the cmake is building against. If you can't get it to compile, you can always run the docker. On Mon, Jul 10, 2023 at 5:10 AM myself-wutong @.> wrote: hello,I am attempting to install this package on ubuntu20.04. But I encountered an error during runtime: /home/work/kalibr_workspace/devel/lib/python3/dist-packages/sm/libsm_python.so: undefined symbol: _ZN5boost6python15instance_holder8allocateEP7_objectmmm This link states that this is caused by cmake not finding the correct Python: https://stackoverflow.com/questions/70582192/boostpython-undefined-symbol-zn5boost6python15instance-holder8allocateep7-ob I tried to solve the problem using this method but failed. Is there a solution to the problem — Reply to this email directly, view it on GitHub <#630>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYRGWP7UVXGMOASQ6J3XPPWLXANCNFSM6AAAAAA2EOH77Q . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you, I have reconfigured a new virtual machine environment and only configured the required dependencies. The compilation and operation on the virtual machine are very smooth, and I think it should be caused by some version conflicts between Python and CMake