Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin_make error #27

Open
salahkhan94 opened this issue Apr 10, 2018 · 6 comments
Open

catkin_make error #27

salahkhan94 opened this issue Apr 10, 2018 · 6 comments

Comments

@salahkhan94
Copy link

I was trying to compile glog for 16.04 Ubuntu following is the error I received :
/bin/sh: 1: cannot open /home/sal/catkin_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:793: recipe for target 'glog_catkin/CMakeFiles/glog_src.dir/all' failed make[1]: *** [glog_catkin/CMakeFiles/glog_src.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 8%] Built target std_msgs_generate_messages_nodejs [ 8%] Built target geometry_msgs_generate_messages_nodejs [ 8%] Built target geometry_msgs_generate_messages_eus Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed
I copied and pasted the fix-unused-typedef-warning.patch into the src folder of the catkin_ws and I got this error:
/bin/sh: 1: autoreconf: not found glog_catkin/CMakeFiles/glog_src.dir/build.make:108: recipe for target 'glog_catkin/glog_src-prefix/src/glog_src-stamp/glog_src-configure' failed make[2]: *** [glog_catkin/glog_src-prefix/src/glog_src-stamp/glog_src-configure] Error 127 CMakeFiles/Makefile2:793: recipe for target 'glog_catkin/CMakeFiles/glog_src.dir/all' failed make[1]: *** [glog_catkin/CMakeFiles/glog_src.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 3%] Built target viso2 [ 7%] Built target gflags_src [ 7%] Built target eigen_catkin Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

Gratitude for helping out!

@maximiliangoettgens
Copy link

Same error here - @salahkhan94 did you manage to fix this?

@cbyzju
Copy link

cbyzju commented Apr 18, 2018

me too, anyone knows how to fix the problem?@salahkhan94

@cbyzju
Copy link

cbyzju commented Apr 18, 2018

I reset to the earlier commit: eb23bbb, it can compile well.

@maximiliangoettgens
Copy link

@cbyzju You, Sir, are genius!

@RiverIntheSky
Copy link

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 ~/catkin_ws/src/, but the file is in ~/catkin_ws/src/glog_catkin/. So you should change ${CMAKE_SOURCE_DIR} to ${CMAKE_CURRENT_SOURCE_DIR}

The second problem is that your system lack autoreconf. You should do sudo apt-get install autoconf

@suho0515
Copy link

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 ~/catkin_ws/src/, but the file is in ~/catkin_ws/src/glog_catkin/. So you should change ${CMAKE_SOURCE_DIR} to ${CMAKE_CURRENT_SOURCE_DIR}

The second problem is that your system lack autoreconf. You should do sudo apt-get install autoconf

Thanks @RiverIntheSky , your second method fixed my issue completely! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants