tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Linking issue when building repository alongside debian release

Open marip8 opened this issue 3 years ago • 1 comments

Recently I have been trying to build the master branch of tesseract while the distributed version is also installed on my system. However, the build fails where API changes have been made, presumably because catkin is linking the tesseract packages in my workspace against the distributed versions in the /opt/ros/noetic folder rather than the freshly built equivalents in my workspace. If I uninstall the distributed version of tesseract, my workspace build succeeds.

My expectation was that catkin would know to look in the workspace for CMake dependencies before resorting to the /opt and usr directories. Is the way that we are exporting, installing or linking the tesseract packages with ros_industrial_cmake_boilerplate causing this error?

marip8 avatar Sep 27 '21 19:09 marip8

This issue is the two places where the following were added to solve windows ros build issues. I am going to wrap them with windows compiler def to solve the linux issue.

include_directories(BEFORE ${FCL_INCLUDE_DIRS})
link_directories(BEFORE ${FCL_LIBRARY_DIRS})

Levi-Armstrong avatar Nov 16 '21 00:11 Levi-Armstrong