Ask Your Question
0

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

asked 2019-02-01 04:06:54 -0500

cluue gravatar image

updated 2019-02-01 05:58:56 -0500

jayess gravatar image

Hello ROS Community,

I am currently trying to get the ROS_quadrotor_simulator from Wil Selby running on my machine. I am following the wiki from his github ( https://github.com/wilselby/ROS_quadr... ).

When i try to run catkin make after I got the glog_catkin and catkin_simple package i get the following error:

Invoking "make -j12 -l12" failed

I am running all this on Ubuntu 18.04 and the ROS melodic distro.

I appreciate any help on that. Thanks alot!

Update - thats the full error i get:

####
#### Running command: "make -j12 -l12" in "/home/thorsten/test_ws/build"
####
[ 12%] Performing patch step for 'glog_src'
/bin/sh: 1: cannot open /home/thorsten/test_ws/src/fix-unused-typedef-warning.patch: No such file
glog_catkin/CMakeFiles/glog_src.dir/build.make:101: recipe for target 'glog_catkin/glog_src-prefix/src/glog_src-stamp/glog_src-patch' failed
make[2]: *** [glog_catkin/glog_src-prefix/src/glog_src-stamp/glog_src-patch] Error 2
CMakeFiles/Makefile2:481: recipe for target 'glog_catkin/CMakeFiles/glog_src.dir/all' failed
make[1]: *** [glog_catkin/CMakeFiles/glog_src.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j12 -l12" failed
edit retag flag offensive close merge delete

Comments

Can you please update your question with a copy and paste of the full error?

jayess gravatar imagejayess ( 2019-02-01 04:41:08 -0500 )edit

I updated the question @jayess

cluue gravatar imagecluue ( 2019-02-01 05:59:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-02-01 06:15:52 -0500

mgruhler gravatar image

This issue has been reported upstream, but so far no fix has been commited.

However, the solution is also shown in the issue:

The first problem is that in line 15 PATCH_COMMAND patch -p0 < ${CMAKE_SOURCE_DIR}/fix-unused-typedef-warning.patch the directory to find fix-unused-typedef-warning.patch is set to ${CMAKE_SOURCE_DIR}, which is ~/test_ws/src/ [in your case], but the file is in ~/catkin_ws/src/glog_catkin/ in your case]. So you should change ${CMAKE_SOURCE_DIR} to ${CMAKE_CURRENT_SOURCE_DIR}

edit flag offensive delete link more

Comments

Great, I changed it in the CMakeList of the glog_catkin package and it worked! Thanks alot!

cluue gravatar imagecluue ( 2019-02-01 06:26:06 -0500 )edit

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: 2019-02-01 04:06:54 -0500

Seen: 412 times

Last updated: Feb 01