aws-robotics / kinesisvideo-common

ROS packages for facilitating the use of AWS cloud services.
Apache License 2.0
4 stars 15 forks source link

Non-existent path when building kinesis_video_streamer #62

Open atyshka opened 3 years ago

atyshka commented 3 years ago

When attempting to build kinesis video streamer from source, this package is built as a dependency. The compilation of this package works fine, but when the build gets to kinesis_video_streamer I have the following error:

CMake Error in CMakeLists.txt: Imported target "kinesis_manager" includes non-existent path

"/home/alex/noetic_ws/build_isolated/kinesis_manager/devel/../../../include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

It seems that the package is making some assumptions about the directory structure? Not sure why this is happening on my machine but the buildfarm works fine. For reference I'm using ros noetic but that shouldn't be affecting anything with CMake finding things

atyshka commented 3 years ago

For the record that path is pointing to an include directory in the root of my workspace which makes no sense...

atyshka commented 3 years ago

kinesis_manager/kinesis_managerConfig.cmake seems to be the problematic portion, with line 2:

set(kinesis_manager_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include")

CMAKE_CURRENT_LIST_DIR is home/alex/noetic_ws/build_isolated/kinesis_manager/devel, but going up 3 levels take me to the root of the workspace which makes no sense. What is the intended behaviour of this line?

Also worth mentioning that the readme directions are for colcon, whereas I am using catkin_make_isolated on ros1

pavloblindnology commented 3 years ago

Maybe the reason is because of different build tool used? There is another file looked for in CMAKE_CURRENT_LIST_DIR folder, which may help to find the right folder for include

include("${CMAKE_CURRENT_LIST_DIR}/kinesis_manager-targets.cmake")