ros-tooling / cross_compile

A tool to build ROS and ROS2 workspaces for various targets
Apache License 2.0
188 stars 60 forks source link

Poco dependencies libz and libpcre not found #11

Closed lmayencourt closed 5 years ago

lmayencourt commented 5 years ago

The packages depending on the Poco libraries fails if the pre-built binaries of Poco are used: The PocoFoundationTargets.cmake file coming with the pre-built binaries have an hard-coded paths to /usr/lib/<arch>/libz.so and /usr/lib/<arch>/libpcre.so which makes the cross-compilation to fail.

The current workaround use symbolic links to the libz and libpcre libraries on /usr/lib/<arch>/ pointing to the actual libraries on the target filesystem.

A ongoing PR on the Poco project should fix this issue: https://github.com/pocoproject/poco/pull/2599

Bjoe commented 5 years ago

https://github.com/pocoproject/poco/pull/2679 and https://github.com/pocoproject/poco/pull/2599 is merged now. This should fix your issue here :-).

filiperinaldi commented 5 years ago

Thanks @Bjoe and @lmayencourt. We will remove the workaround in https://github.com/ros2/cross_compile/blob/3e6200560e512d6d7bb313d380fa6982d8bdaab7/entry_point.sh#L38 once the fixes are available on the next Poco release.