Open juansuerorobotics opened 2 years ago
in /usr/share/dart/cmake/dart_dartTargets.cmake there is a line 44
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) if(_IMPORT_PREFIX STREQUAL "/") set(_IMPORT_PREFIX "") endif()
add_library(dart SHARED IMPORTED)
set_target_properties(dart PROPERTIES INTERFACE_COMPILE_FEATURES "cxx_std_14" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" INTERFACE_LINK_LIBRARIES "dl;dart-external-odelcpsolver;Eigen3::Eigen;ccd;fcl;assimp;Boost::boost;Boost::system;Boost::filesystem;octomap;Boost::regex" )
that seems to be the responsible lines of code since it mentions both INTERFACE_INCLUDE_DIRECTORIES and /include
i dont get it.
dart interface includes: /usr/include
Properties for TARGET dart: dart.LOCATION = "/usr/lib/x86_64-linux-gnu/libdart.so.6.9.2" dart.INTERFACE_INCLUDE_DIRECTORIES = "/usr/include
dart INTERFACE_LINK_LIBRARIES = dl;dart-external-odelcpsolver;Eigen3::Eigen;ccd;fcl;assimp;Boost::boost;Boost::system;Boost::filesystem;octomap;Boost::regex
No such TARGET "dl" !
Properties for TARGET dart-external-odelcpsolver:
dart-external-odelcpsolver.INTERFACE_INCLUDE_DIRECTORIES =
dart INTERFACE_COMPILE_FEATURES = cxx_std_14 dart INTERFACE_INCLUDE_DIRECTORIES = /usr/include dart INTERFACE_LINK_LIBRARIES = dl;dart-external-odelcpsolver;Eigen3::Eigen;ccd;fcl;assimp;Boost::boost;Boost::system;Boost::filesystem;octomap;Boost::regex dart NAME = dart dart POSITION_INDEPENDENT_CODE = True dart SKIP_BUILD_RPATH = OFF dart SOURCE_DIR = /home/meta/org/debugcmake/src/mypkg dart TYPE = SHARED_LIBRARY
-- Configuring done CMake Error in CMakeLists.txt: Imported target "dart" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
The path was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and references files it does not provide.
@juansuerorobotics were you able to resolve this? It would be really helpful if you could provide the resolution, i'm facing the same issue?
i think it works on ros melodic with ubuntu 1804. if you try to get fancy and run this on noetic and ubuntu 20.04 somethings off
Im getting the following error running catkin_make on ROS1 noetic
CMake Error in gazebo_ros_demos/gazebo_tutorials/CMakeLists.txt: Imported target "dart" includes non-existent path
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
The path was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and references files it does not provide.
i did a text search for INTERFACE_INCLUDE_DIRECTORIES and for /include
and im seeing at line 60 of /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimpTargets.cmake which i think is termed cmake "module" ....
set_target_properties(assimp::assimp PROPERTIES COMPATIBLE_INTERFACE_STRING "assimp_MAJOR_VERSION" INTERFACE_assimp_MAJOR_VERSION "1" INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include" ...... )
at src/gazebo_ros_demos/gazebo_tutorials/CMakeLists.txt
i see find_package(gazebo REQUIRED) target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})
so how do i debug the cmake process? especially since its not even directly running cmake im using a tool that builds cmake called catkin_make?
I dont just want an answer to the issue. im sure the answer is not to use these packages as they are not rated to run against newer versions of ROS. I can see your latest branch is kinetic-devel. thats fine. I need to learn cmake and catkin_make and this is a great way to solve future problems so if you can give me some insight as to the nature of the problem as well as how to debug it for myself also.