CMake Bugs
Table of Content
undefined symbol
Error Message:
Traceback (most recent call last):
File "test_vis.py", line 3 in <module>
from cpp.build import pcl
ImportError: /xxx/pcl.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN12PointMatcherIfE12ICPChainBase10setDefaultEv
Cause: the built module is not linked to the necessary libraries.
Solution: add
pybind11_add_module(pcl, pcl.cpp)
target_link_libraries(pcl PRIVATE ${MY_LIBRARIES})