image_common icon indicating copy to clipboard operation
image_common copied to clipboard

On Mac, `camera_calibration_parsers_wrapper` cannot be imported in python

Open rmaronson opened this issue 6 years ago • 1 comments

The library camera_calibration_parser_wrapper on Mac is built as camera_calibration_parsers_wrapper.dylib, but python only imports packages with the extension .so.

I believe this can be fixed by setting the suffix explicitly, by e.g.

set_target_properties(${package_name}_wrapper PROPERTIES SUFFIX ".so")

Compare line 97 in the CMakeLists file for tf2_py, https://github.com/ros/geometry2/blob/melodic-devel/tf2_py/CMakeLists.txt. Will test and attach a PR if it works.

rmaronson avatar Sep 08 '18 19:09 rmaronson

I have same issue on windows, i can't seem to find it in the build at all

Curiouspaul1 avatar Aug 18 '20 05:08 Curiouspaul1