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

Revision history [back]

I got the same issue ... before this error, on warnings the compiler said something about "Target "gtest" has EXCLUDE_FROM_ALL" and I thought that someone is telling to exclude and the error said this lib may be included!!

So for a rapid test I got into the

cd ~/ros_catkin_ws/src/catkin/cmake/test

and edited the gtest.cmake

sudo nano gtest.cmake

Commenting this line (#) to avoid the exclusion of this files:

if(ARG_EXCLUDE_FROM_ALL)
    #set_target_properties(${target} PROPERTIES EXCLUDE_FROM_ALL TRUE)
endif()

and comment too

#set_target_properties(gtest gtest_main PROPERTIES EXCLUDE_FROM_ALL 1)

Save the file and try again

After that, the compiler compile the gtest and worked fine

Its not a definitive solution, but works well, it helps!!

Another aproach is to remove the gtest compile, but not tested it yet

Thanks

(PS: in this tutorial they remove the ros_lisp (--exclude roslisp) because the "dependency sbcl is not available in the Raspbian" ... but I have included and the dependency is ok by now!!)