Closed sgvandijk closed 2 months ago
This appears to be an error with jsoncpp
. That export of library dependences with PCL is correct and shouldn't be reverted as far as I can tell.
@sgvandijk Did you solve your problem ? I encountered the same problem and I am still trying to fix it !
I am trying to build both
pcl_conversions
andros2_ouster
from source. Mainly because I work with Humble, and the following fix has not made it into the Humble release yet: https://github.com/ros-perception/perception_pcl/pull/384 meaning that installingros-humble-pcl-conversions
pulls in 1.2GB of stuff. For the same reason I also do the same forros2_ouster
.However, the build of
ros2_ouster
fails with the following error:I am submitting this as an issue here rather than at
ros2_ouster
, because reverting https://github.com/ros-perception/perception_pcl/pull/392 results in a successful build. I.e., changing:back to
I am not 100% exactly what happens, but I assume that
PCL
exports theJsonCpp::JsonCpp
target, which conflicts with the target being created byfind_package(jsonccp REQUIRED)
inros2_ouster
'sCMakeLists.txt
. I think the wayros2_ouster
finds and links tojsoncpp
is reasonable/correct, so I feel that the issue then lies withpcl_conversions
or PCL itself. But happy to file this somewhere else if that seems more appropriate.To reproduce:
With a ROS2 Humble installation: