Closed danieldugas closed 6 years ago
I've reproduced this error on another 16.04 machine.
Thanks @danieldugas for the deep digging. The gtsam_catkin's CMakeLists.txt & gtsam-extra.cmake were incomplete such that they didn't export the ${CATKIN_DEVEL_PREFIX}/include
as include folder despite this being the place where it gets installed to.
The libpointmatcher "sideeffect" was to rightfully export this include folder because it is also installing to it.
By lucky coincidence @eggerk recently solved this with the already merged PR #26 (as a cleanup component). Hence, current master should behave nicer in this respect. However, it also comes with a new catkin dependency (https://github.com/ethz-asl/metis_catkin).
Thanks @HannesSommer , it is indeed fixed!
I indeed had looked at the feature/install branch during my digging, but noticing the extra dependency and unsure as to which direction the branch was headed, I opted to remain on master. Cheers!
Great! Thanks for feeding back :).
Note: This is a really strange one and I'm still looking at possible ways I might have done something wrong. Still, after this much testing It seems like an issue might be in order.
Environment:
Behavior:
fatal error: gtsam/nonlinear/ISAM2.h: No such file or directory
Steps taken:
include_directories(include ${catkin_INCLUDE_DIRS})
is also there and headers for other packages are being found correctly.test_proj/CMakeLists.txt:
test_proj/package.xml:
test_proj/test_proj.cpp:
after cloning gtsam_catkin and catkin_simple to the workspace, the same error is shown:
fatal error: gtsam/nonlinear/ISAM2.h: No such file or directory
and clone libpointmatcher to the workspace.
Compilation is then successful. I also applied the same fix to my own project and also immediately observed successful compilation. Any thoughts?