ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Are you aiming specifically at rosmake (i.e. not make in a ROS package)?
The normal make with CMake is colored from CMake and to get colored warnings and errors from g++ I use colorgcc. Symlink /usr/bin/colorgcc to c++ in a directory at the front of your path (e.g. $HOME/bin/c++).
2 | No.2 Revision |
Are you aiming specifically at rosmake (i.e. not make in a ROS package)?
The normal make with CMake is colored from CMake and to get colored warnings and errors from g++ I use colorgcc. Symlink /usr/bin/colorgcc to c++ in colorgcc.
sudo apt-get install colorgcc
export PATH=$HOME/bin:$PATH
. Prefereably put that line in your .bashrc or similar, so you only have to do this onceIn that directory create symlinks to colorgcc, i.e.:
~/bin$ ln -s /usr/bin/colorgcc c++ ~/bin$ ln -s /usr/bin/colorgcc g++ ~/bin$ ln -s /usr/bin/colorgcc gcc ~/bin$ ln -s /usr/bin/colorgcc cc
For CMake only the first line is required.
3 | No.3 Revision |
Are you aiming specifically at rosmake (i.e. not make in a ROS package)?
The normal make with CMake is colored from CMake and to get colored warnings and errors from g++ I use colorgcc.
sudo apt-get install colorgcc
export PATH=$HOME/bin:$PATH
. Prefereably put that line in your .bashrc or similar, so you only have to do this once~/bin$ ln -s /usr/bin/colorgcc c++ ~/bin$ ln -s /usr/bin/colorgcc g++ ~/bin$ ln -s /usr/bin/colorgcc gcc ~/bin$ ln -s /usr/bin/colorgcc
For CMake only the first line is required.