compile gmapping with debug options [closed]

asked 2013-05-15 11:54:11 -0500

updated 2013-05-20 14:43:33 -0500

Hi everyone

I'm trying to recompile the gmapping node with the debug options in order to perform some analysis with valgrind but I need to compile all the code in debug mode.

On all the nodes I used until today (with rosbuild, since gmapping is not catkinized yet) to compile in debug mode I use the common way based on ROS_BUILD_TYPE:

# Set the build type.  Options are:
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
#  Debug          : w/ debug symbols, w/o optimization
#  Release        : w/o debug symbols, w/ optimization
#  RelWithDebInfo : w/ debug symbols, w/ optimization
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries


I tried also with the CMakeList of gmapping but it does not work.. I think the issue is hidden in this following line of the CMakeList

# Build GMapping
execute_process(COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} make -f Makefile.gmapping RESULT_VARIABLE _make_failed)

does anyone have an idea? thx, byeee!


update 05/21/2013 I opened an issue at github and thanks to hershwg first (draft) solution is ready. check it out here: As soon as I'll have time to close the issue I'll put an answer here.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-06-07 20:12:51.358444


It is happy if you posted the answer here!

kaviranga gravatar image kaviranga  ( 2016-08-14 06:57:13 -0500 )edit

Gmapping has been catkinize so you should write the answer and close this question.

dgangwar gravatar image dgangwar  ( 2017-05-09 00:23:52 -0500 )edit