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

Assertion failed: check for file existence

asked 2017-07-30 23:44:02 -0600

CTYang gravatar image

updated 2022-01-22 16:16:35 -0600

Evgeny gravatar image

I already follow the MAVROS install tutorial in there:

https://dev.px4.io/en/ros/mavros_inst...

When I type command $catkin build ,

I get cmake error like follow:

Errors <<   image_transport_tutorial:cmake /home/paris/catkin_ws/logs/image_transport_tutorial/build.cmake.log
CMake Error at /opt/ros/kinetic/share/catkin/cmake/assert.cmake:17 (message):
Assertion failed: check for file existence, but filename
(RT_LIBRARY-NOTFOUND) unset.  Message: RT Library

Call stack(most recent call first):
    /opt/ros/kinetic/share/catkin/cmake/tools/rt.cmake:42 (assert_file_exists)
    /opt/ros/kinetic/share/catkin/cmake/old.cmake :147(include)
    /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake :20(include)
    Cmakelists.txt: 4 (find_package)

Before, if the code in src file don't include the image_transport related libraries, I can run $catkin build without any error.

Wonder that what will cause this problem because I can't find any solution in the internet.Tks for help!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-11-26 16:07:32 -0600

tfoote gravatar image

Cmake is detecting that you're missing the RT_LIBRARY which is expected to be installed on your system.

edit flag offensive delete link more
0

answered 2018-01-20 13:53:32 -0600

pbeeson gravatar image

updated 2018-01-20 13:57:42 -0600

I've had this happen for specific workspaces, where it works for a package in one workspace and not the other -- same CMakefile. Often removing .catkin_tools in the workspace where its not working and rebuilding makes this go away.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-07-30 23:44:02 -0600

Seen: 1,445 times

Last updated: Jan 20 '18