ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Is it possible to make a menu within a catkin build?

asked 2015-05-22 22:05:08 -0500

Nap gravatar image

I'ld like to be able choose my build options during the catkin_make process. I know it can be done using a bash script, but I'm wondering if it can be done within catkin?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-22 23:09:59 -0500

ahendrix gravatar image

You can do this by adding cmake configuration variables to your cmakelists, like this: http://stackoverflow.com/questions/72...

Note that these won't (and shouldn't) prompt you for input at build time; instead, you can set the value of these variables using the -D flag to catkin_make (or cmake):

catkin_make -DMY_VARIABLE=42
edit flag offensive delete link more

Comments

Thanks, I'm already doing that. But I wanted to make it a little easier so the users wouldn't need to remember/type the variables.

Nap gravatar image Nap  ( 2015-05-23 02:26:24 -0500 )edit

Making the build system interactive for every run is probably more annoying than useful. I haven't tried the -i option to cmake, but perhaps it's appropriate in this scenario? http://www.cmake.org/runningcmake/

ahendrix gravatar image ahendrix  ( 2015-05-24 02:31:20 -0500 )edit

The -i option has been removed from cmake as of version 3 onwards.

Nap gravatar image Nap  ( 2015-05-28 02:26:05 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-05-22 22:05:08 -0500

Seen: 106 times

Last updated: May 22 '15