Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Non-existent path when building kinesis_video_streamer #62

Open
atyshka opened this issue Feb 3, 2021 · 3 comments
Open

Non-existent path when building kinesis_video_streamer #62

atyshka opened this issue Feb 3, 2021 · 3 comments

Comments

@atyshka
Copy link

atyshka commented Feb 3, 2021

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:

  • 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.

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
Copy link
Author

atyshka commented Feb 3, 2021

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

@atyshka
Copy link
Author

atyshka commented Feb 3, 2021

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
Copy link

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")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants