christianrauch/apriltag_ros

building on Foxy Fitzroy, Ubuntu 20.04

Closed this issue · 3 comments

b0hne commented

In order to build the node on Foxy i had to change CMakeLists.txt, line 26:

-target_link_libraries(AprilTagNode apriltag::apriltag)
+target_link_libraries(AprilTagNode apriltag)

works fine afterwards. Thank you for your work

apriltag on master uses the apriltag:: namespace since commit AprilRobotics/apriltag@35f4ef2.

If you want to use the release apriltag version 3.1.2, you have to use the stable apriltag_ros version 2.1.0 (or master up to d8d5334). Otherwise, you have to use the current master of both packages.

I assume this issue has been resolved when using the master branch. I am going to close this.

If the problem re-appears, re-open this issue or provide a PR. Thanks.

b0hne commented

Sorry, i haven't revisited the issue for a while. I had installed ros-foxy-apriltag via apt before and that messed up the target_link_libraries command. Thank you for the answer.