werner291
werner291
Seems related to this portion in the file it's complaining about: ``` if(NOT "/home/werner/catkin_test/src/collada_urdf/collada_urdf/include;/usr/../include/include;/usr/include/collada-dom2.4/1.5;/usr/include/collada-dom2.4;/usr/include " STREQUAL " ") set(collada_urdf_INCLUDE_DIRS "") set(_include_dirs "/home/werner/catkin_test/src/collada_urdf/collada_urdf/include;/usr/../include/include;/usr/include/collada-dom2.4/1.5;/usr/include/collada-dom2.4;/usr/include") if(NOT "https://github.com/ros/collada_urdf/issues " STREQUAL " ") set(_report "Check...
Actually, this seems to be the offending line: `set(_include_dirs "/home/werner/catkin_test/src/collada_urdf/collada_urdf/include;/usr/../include/include;/usr/include/collada-dom2.4/1.5;/usr/include/collada-dom2.4;/usr/include") if(NOT "https://github.com/ros/collada_urdf/issues " STREQUAL " ")` Now to find out where that's coming from...
...which in turn comes from here: https://github.com/ros/catkin/blob/noetic-devel/cmake/templates/pkgConfig.cmake.in#L96
Looks like some package named `ASSIMP` is drawing in the non-existing directory `/usr/../include/include`. Tested by inserting the line: `message(WARNING "Dependency: ${depend} DEPENDS ON DIRECTORIES ${${depend_name}_INCLUDE_DIRS}")` in the file `collada_urdfConfig.cmake` wherever...
Notably, catkin also produced this warning: ``` Starting >>> collada_urdf ________________________________________________________________________________________________________ Warnings
CMakeCache indeed shows the nonsensical include path: `ASSIMP_INCLUDE_DIRS:INTERNAL=/usr/../include/include`
This appears to be the offending part of the `CMakeLists.txt` ``` message(ERROR "Assimp: ${ASSIMP_INCLUDE_DIRS}") # Outputs /usr/include if ( NOT ASSIMP_FOUND ) find_package(Assimp QUIET) if ( NOT ASSIMP_FOUND ) find_package(PkgConfig...
Dammit... CMake is case-sensitive: it should be `assimp_FOUND`, not `ASSIMP_FOUND`!
Yup. Tested it with a project that depends on collada_urdf; it compiles fine once i make the change.
Aha! That's easy enough... Would indeed be easier if this was automatic (that's kinda the power of nix shell). Still though, awesome job on making this gigantic software contraption run...