Invoking "make -j12 -l12" failed trying to catkin_make

asked 2020-04-09 03:30:14 -0600

saintdere gravatar image

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

Evgeny gravatar image

Hello, when running the catkin_make command I encounter the following error:

: recipe for target '/home/yueqi/catkin_ws/devel/include/create_node/TurtleBotConfig.h' failed
make[2]: *** [/home/yueqi/catkin_ws/devel/include/create_node/TurtleBotConfig.h] 
Error 1 : CMakeFiles/Makefile2:9588: recipe for target 'turtlebot/turtlebot_create/create_node/CMakeFiles/create_node_gencfg.dir/all' failed
make[1]: *** [turtlebot/turtlebot_create/create_node/CMakeFiles/create_node_gencfg.dir/all] 
Error 2 :
make[1]: *** Waiting for unfinished jobs....
[  1%] Built target actionlib_generate_messages_cpp
[  1%] Built target actionlib_generate_messages_lisp
[  1%] Built target actionlib_generate_messages_eus
[  1%] Built target tf_generate_messages_lisp
[  1%] Built target tf2_msgs_generate_messages_eus
[  1%] Built target actionlib_generate_messages_nodejs
[  1%] Built target tf2_msgs_generate_messages_lisp
[  1%] Built target tf2_msgs_generate_messages_py
[  1%] Built target tf_generate_messages_nodejs
[  1%] Built target tf_generate_messages_cpp
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j12 -l12" failed`

I am running ROS Melodic on Ubuntu 18.04. Any help would be appreciated. Thank you!

edit retag flag offensive close merge delete

Comments

1

Hi @saintdere.

Is this somehow related?

Weasfas gravatar image Weasfas  ( 2020-04-09 07:11:02 -0600 )edit

Hi, I'm not getting the same error as the user so I don't think I'll be able to apply the solution to my problem. But thank you regardless.

saintdere gravatar image saintdere  ( 2020-04-14 02:36:08 -0600 )edit
1

Well at this point you can try to clean or generate a new catkin_ws and compile again. Maybe you did not set up the ROS enviroment variables properly or source your bash when compile. If you are unable to find the source of the problem maybe doing a fresh install helps you or try to reproduce it in a virtual enviroment to see if it is a problem related to your machine.

Weasfas gravatar image Weasfas  ( 2020-04-14 05:31:55 -0600 )edit

How do I clean the catkin workspace?

saintdere gravatar image saintdere  ( 2020-04-21 03:05:32 -0600 )edit

@saintdere, either you delete your devel and build folders in your workspace and perform a catkin_make again or you generate a new workspace in a different drive location. I do not know the exqact reason of that error but in my opinion it can be several things:

  1. Package dependency broken, since ytou do not have a dependent package to build the project.
  2. Bad set up in the CMakeLists, maybe you did not include the message_generation dependency and the messages bindings are not able to compile.
  3. Your compile version in the catkin_workspace are compiled version of an older catkin_make, this is olve by cleaning the wrokspace.

Also, you can double check in the project dependencies if you have every dependent package.

Weasfas gravatar image Weasfas  ( 2020-04-21 03:44:06 -0600 )edit