ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ament_export_libraries error - IMPORTED_LOCATION is not allowed

asked 2021-02-19 08:25:33 -0500

mathsan gravatar image

Hello!

I'm trying to build from source on Foxy (Ubuntu) a package from AWS (cloudwatchmetrics-ros2) that are only supported on Dashing. I am currently experience an error with a CMakeLists file that are giving this feedback in the ament_export_libraries() function as described below:

CMake Error at /opt/ros/foxy/share/ament_cmake_export_libraries/cmake/ament_export_libraries.cmake:83 (get_target_property): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "IMPORTED_LOCATION" is not allowed. Call Stack (most recent call first): CMakeLists.txt:126 (ament_export_libraries)

CMake Error at /opt/ros/foxy/share/ament_cmake_export_libraries/cmake/ament_export_libraries.cmake:90 (get_target_property): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "IMPORTED_LOCATION__imported_configurations-NOTFOUND" is not allowed. Call Stack (most recent call first): CMakeLists.txt:126 (ament_export_libraries)

Do you guys know what this property is supposed to do? I look into the CMake docs, but I did not found anything useful.

edit retag flag offensive close merge delete

Comments

Is it still an issue for you?

kak13 gravatar image kak13  ( 2021-04-01 22:01:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-17 12:29:04 -0500

j0eBee gravatar image

I spend a good 3 days looking into this issue. I solved it by commenting out that line in the CMakeLists.txt with the ament_export_libraries. It doesn't seem to have any negative implications.

Another tip is that for all the dependencies of cloudwatchmetrics-ros2 you will need to build from the release-latest branch. The utils-common dependency is broken for foxy. I found a fork that fixed the issue there https://github.com/GITAI/aws-utils-co....

I do hope this helps. (Any anyone else who might be facing this issue)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-02-19 08:25:33 -0500

Seen: 288 times

Last updated: Feb 19 '21