Ask Your Question
0

Assertion failed: check for file existence

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

CTYang gravatar image

updated 2017-07-31 02:05:40 -0500

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 -0500

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 -0500

pbeeson gravatar image

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 887 times

Last updated: Jan 20 '18