[ros-users] [FreeBSD] compiler command line gets mangled in rxtools ?

Brian Gerkey gerkey at willowgarage.com
Fri May 28 16:35:14 UTC 2010


On Fri, May 28, 2010 at 9:29 AM, René Ladan <rene at freebsd.org> wrote:
> The luxrender port of FreeBSD (http://www.freshports.org/graphics/luxrender/)
> indeed suffers from the same semicolon problem, there they just patch the
> offending file(s) after they are generated. This is done in the port
> Makefile itself
> (comparable to a Ubuntu package source I think). From
> graphics/luxrender/Makefile:
>
> ------8<--------
>
> post-configure:
> # Fix CXX_FLAGS in generated files
>        @${REINPLACE_CMD} -e \
>                's,-pthread;-D_THREAD_SAFE,-pthread -D_THREAD_SAFE,' \
>                        ${WRKSRC}/CMakeFiles/lux.dir/flags.make \
>                        ${WRKSRC}/CMakeFiles/luxconsole.dir/flags.make \
>                        ${WRKSRC}/CMakeFiles/luxconsole.dir/link.txt \
>                        ${WRKSRC}/CMakeFiles/luxmerger.dir/flags.make \
>                        ${WRKSRC}/CMakeFiles/luxmerger.dir/link.txt \
>                        ${WRKSRC}/CMakeFiles/luxrender.dir/flags.make \
>                        ${WRKSRC}/CMakeFiles/luxrender.dir/link.txt
>
> ------8<--------
>
> Would it be possible to use a similar trick for ROS (e.g. run 'make
> configure' to
> configure everything like detecting installed software and letting
> CMake do its job,
> and then run 'make' to compile everything using the generated Makefiles) ?

hi Rene,

Wow, that's not a very pretty solution, but I suppose that it will
work.  You could try it out by changing rxtools/Makefile to be a copy
of mk/cmake.mk, with appropriate modifications to insert the sed step
between running 'cmake' and 'make'.

It'd be better to find the root cause and fix CMake itself...

	brian.



More information about the ros-users mailing list