catkin_make error in melodic [closed]
hi, i was working on HECTOR-SLAM. i am unable to figure out what this error is about but it was working completely fine in my system just before when i uninstalled ros and reinstalled it and catkin_make gets stuck at 98% giving this error:
[
98%] Building CXX object navigation/move_base/CMakeFiles/move_base.dir/src/move_base.cpp.o
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
from /home/catkin_ws/src/navigation/move_base/include/move_base/move_base.h:43,
from /home/catkin_ws/src/navigation/move_base/src/move_base.cpp:38:
/home/catkin_ws/src/navigation/move_base/src/move_base.cpp: In member function ‘void move_base::MoveBase::executeCb(const MoveBaseGoalConstPtr&)’:
/opt/ros/melodic/include/ros/console.h:348:176: error: no matching function for call to ‘print(NULL, void*&, ros::console::Level&, const char [66], int, const char [65], ros::Duration)’
::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro
‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
#define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
#define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
^~~~~~~
/home/catkin_ws/src/navigation/move_base/src/move_base.cpp:779:7: note: in expansion of macro ‘ROS_INFO’
ROS_INFO(r.cycleTime());
^
/opt/ros/melodic/include/ros/console.h:158:22: note: candidate: void ros::console::print(ros::console::FilterBase*, void*, ros::console::Level, const char*, int, const char*, const char*, ...)
ROSCONSOLE_DECL void print(FilterBase* filter, void* logger, Level level,
^~~~~
/opt/ros/melodic/include/ros/console.h:158:22: note: no known conversion for argument 7 from ‘ros::Duration’ to ‘const char*’
/opt/ros/melodic/include/ros/console.h:162:22: note: candidate: void ros::console::print(ros::console::FilterBase*, void*, ros::console::Level, const stringstream&, const char*, int, const char*)
ROSCONSOLE_DECL void print(FilterBase* filter, void* logger, Level level,
^~~~~
/opt/ros/melodic/include/ros/console.h:162:22: note: no known conversion for argument 4 from ‘const char [66]’ to ‘const stringstream& {aka const std::__cxx11::basic_stringstream<char>&}’
navigation/move_base/CMakeFiles/move_base.dir/build.make:81: recipe for target 'navigation/move_base/CMakeFiles/move_base.dir/src/move_base.cpp.o' failed
make[2]: *** [navigation/move_base/CMakeFiles/move_base.dir/src/move_base.cpp.o] Error 1
CMakeFiles/Makefile2:18021: recipe for target 'navigation/move_base/CMakeFiles/move_base.dir/all' failed
make[1]: *** [navigation/move_base/CMakeFiles/move_base.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
the problem is with respect to move_base.cpp in my directory and console.h in ros.
i am using INTEL NUC for this and i also tried cloning these directories to Jetson Xavier installed with ros-melodic but i am facing same problem.
@Vignesh@siddharthcb please edit the question with the relevant details:
we need this information to be able to support.
move_base
is a widely used package, which suggest that it is rather an issue with your specific setup than inmove_base
. Thanks.so there was a problem while catkin_make in both nuc and jetson. i solved it. thanks for your response.