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

No executable file is generated after catkin_make

asked 2016-02-12 03:24:14 -0500

percy_liu gravatar image

updated 2016-02-12 07:34:32 -0500

I was trying to use c++ to publish a Twist message. I added a couple of sentences introduced in wiki tutorials.

include_directories(include ${catkin_INCLUDE_DIRS})

add_executable(test src/test.cpp)
target_link_libraries(test ${catkin_LIBRARIES})
add_dependencies(test beginner_tutorials_generate_message_cpp)

But after running catkin_make, there was no executable file generated. I do not know how to solve this problem. I am using ROS Indigo running on Ubuntu 14.04.

edit retag flag offensive close merge delete


catkin_ws is not a command. Did you do a catkin_make? Please follow the tutorials closely and try to understand what is done where...

mgruhler gravatar image mgruhler  ( 2016-02-12 03:27:45 -0500 )edit

So sorry. I meant to write catkin_make not catkin_ws.

percy_liu gravatar image percy_liu  ( 2016-02-12 03:50:02 -0500 )edit

the executable file should be in the devel folder, did you check there? Any errors in catkin_make?

mgruhler gravatar image mgruhler  ( 2016-02-12 04:10:07 -0500 )edit

I checked devel folder and didn't find the executable file. When I run catkin_make, no error reported. There should be a message like "Build Target test". Actually, there was not.

percy_liu gravatar image percy_liu  ( 2016-02-12 04:35:45 -0500 )edit

Do you see the +++ processing catkin package: and ==> add_subdirectory outputs when you do catkin_make? Try a clean build (i.e. remove build and devel folder first). Does roscd <YOURPACKAGE> work?

mgruhler gravatar image mgruhler  ( 2016-02-12 04:43:02 -0500 )edit

Please add any commands that you run and their outputs.

dornhege gravatar image dornhege  ( 2016-02-12 04:50:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-19 14:10:41 -0500

alee gravatar image

You might need to add catkin_package() underneath those lines in your CMakeLists.txt. Check .

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-02-12 03:24:14 -0500

Seen: 3,339 times

Last updated: Feb 12 '16