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

Revision history [back]

click to hide/show revision 1
initial version

You don't tell us what doesn't work, but assuming that you're getting complaints from catkin_make that it can't find certain ROS pkgs or that catkin_make itself can't be found: do you source /path/to/the/catkin_ws/devel/setup.bash (or equivalent for /opt/ros/$distro/setup.bash) before invoking catkin_make?

You don't tell us what doesn't work, but assuming that you're getting complaints from catkin_make that it can't find certain ROS pkgs or that catkin_make itself can't be found: do you source /path/to/the/catkin_ws/devel/setup.bash (or equivalent for /opt/ros/$distro/setup.bash) before invoking catkin_make?


Edit:

I think catkin_make itself cannot be found. I have this in my ~/.bashrc:

source /opt/ros/kinetic/setup.bash
source /home/felix/sailing/bord-pc/devel/setup.bash
export BOARD_PC_WORKSPACE=/home/felix/sailing/bord-pc

And is your $HOME/.bashrc used by whatever/who-ever is running the git server? If not, your .bashrc will not have any influence.

You don't tell us what doesn't work, but assuming that you're getting complaints from catkin_make that it can't find certain ROS pkgs or that catkin_make itself can't be found: do you source /path/to/the/catkin_ws/devel/setup.bash (or equivalent for /opt/ros/$distro/setup.bash) before invoking catkin_make?


Edit:

I think catkin_make itself cannot be found. I have this in my ~/.bashrc:

source /opt/ros/kinetic/setup.bash
source /home/felix/sailing/bord-pc/devel/setup.bash
export BOARD_PC_WORKSPACE=/home/felix/sailing/bord-pc

And is your $HOME/.bashrc used by whatever/who-ever is running the git server? If not, your .bashrc will not have any influence.


Edit2: So you have a pre-push hook that is run locally?

seems I missed that. Ignore all the server stuff then.

But the question remains: if the bash session this is run in is non-interactive, your .bashrc will not be seen.

Can you print the contents of $PATH in the hook?