Invoking "make -j12 -l12" failed trying to catkin_make
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!
Hi @saintdere.
Is this somehow related?
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.
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.How do I clean the catkin workspace?
@saintdere, either you delete your
devel
andbuild
folders in your workspace and perform acatkin_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:Also, you can double check in the project dependencies if you have every dependent package.