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

The easiest way to use console_bridge is to install it from binary packages (sudo apt-get install ros-groovy-console-bridge).

If you want to build it from source, note that console_bridge is NOT a catkin project, but rather a pure CMake project. You should keep it separate from a catkin workspace, build it with CMake, "make install" it somewhere, and then make sure that when you build code against it, that it can be find_packaged() by CMake (i.e. console_bridge's .cmake file needs to be in CMAKE_PREFIX_PATH).

Hope that helps, let me know if you need clarification.

The easiest way to use console_bridge is to install it from binary packages (sudo apt-get install ros-groovy-console-bridge).

If you want to build it from source, note that console_bridge is NOT a catkin project, but rather a pure CMake project. You should keep it separate from a catkin workspace, build it with CMake, "make install" it somewhere, and then make sure that when you build code against it, that it can be find_packaged() by CMake (i.e. console_bridge's console_bridge and it's .cmake file needs need to be in CMAKE_PREFIX_PATH).findable through CMAKE_PREFIX_PATH environment variable).

Hope that helps, let me know if you need clarification.

The easiest way to use console_bridge is to install it from binary packages (sudo apt-get install ros-groovy-console-bridge).

If you want to build it from source, note that console_bridge is NOT a catkin project, but rather a pure CMake project. You should keep it separate from a catkin workspace, build it with CMake, "make install" it somewhere, and then make sure that when you build code against it, that it can be find_packaged() by CMake (i.e. console_bridge and it's .cmake file need to be findable through CMAKE_PREFIX_PATH environment variable).

Hope that helps, let me know if you need clarification.

Edit: mkdir cb_ws cd cb_ws git clone https://github.com/ros/console_bridge cd cb_ws mkdir build cd build cmake -CMAKE_INSTALL_PREFIX=../install ../console_bridge make install

This will create a folder called install within the folder cb_ws.

Inside the install folder you'll see: include/ lib/ share/

Within "share" you'll see the generated file console_bridge.cmake. This is what cmake uses to figure out where console_bridge is installed (which is cb_ws/install). Your CMAKE_PREFIX_PATH variable needs to point to the folder that contains this file so taht CMake can find it and determine -I flags (in this case cb_ws/install/include), -L flags (in this case cb_ws/install/lib) and -l flags (in this case libconsole_bridge.so which to the compiler will be "-lconsole_bridge").

The easiest way to use console_bridge is to install it from binary packages (sudo apt-get install ros-groovy-console-bridge).

If you want to build it from source, note that console_bridge is NOT a catkin project, but rather a pure CMake project. You should keep it separate from a catkin workspace, build it with CMake, "make install" it somewhere, and then make sure that when you build code against it, that it can be find_packaged() by CMake (i.e. console_bridge and it's .cmake file need to be findable through CMAKE_PREFIX_PATH environment variable).

Hope that helps, let me know if you need clarification.

Edit: mkdir cb_ws cb_ws
cd cb_ws cb_ws
git clone https://github.com/ros/console_bridge https://github.com/ros/console_bridge
cd cb_ws cb_ws
mkdir build build
cd build build
cmake -CMAKE_INSTALL_PREFIX=../install ../console_bridge ../console_bridge
make install

This will create a folder called install within the folder cb_ws.

Inside the install folder you'll see: include/ lib/ share/

Within "share" you'll see the generated file console_bridge.cmake. This is what cmake uses to figure out where console_bridge is installed (which is cb_ws/install). Your CMAKE_PREFIX_PATH variable needs to point to the folder that contains this file so taht CMake can find it and determine -I flags (in this case cb_ws/install/include), -L flags (in this case cb_ws/install/lib) and -l flags (in this case libconsole_bridge.so which to the compiler will be "-lconsole_bridge").

click to hide/show revision 5
fixing commands

The easiest way to use console_bridge is to install it from binary packages (sudo apt-get install ros-groovy-console-bridge).

If you want to build it from source, note that console_bridge is NOT a catkin project, but rather a pure CMake project. You should keep it separate from a catkin workspace, build it with CMake, "make install" it somewhere, and then make sure that when you build code against it, that it can be find_packaged() by CMake (i.e. console_bridge and it's .cmake file need to be findable through CMAKE_PREFIX_PATH environment variable).

Hope that helps, let me know if you need clarification.

Edit: mkdir cb_ws
cd cb_ws
git clone https://github.com/ros/console_bridge
cd cb_ws
mkdir build
cd build
cmake -CMAKE_INSTALL_PREFIX=../install -DCMAKE_INSTALL_PREFIX=../install ../console_bridge
make install

This will create a folder called install within the folder cb_ws.

Inside the install folder you'll see: include/ lib/ share/

Within "share" you'll see the generated file console_bridge.cmake. This is what cmake uses to figure out where console_bridge is installed (which is cb_ws/install). Your CMAKE_PREFIX_PATH variable needs to point to the folder that contains this file so taht CMake can find it and determine -I flags (in this case cb_ws/install/include), -L flags (in this case cb_ws/install/lib) and -l flags (in this case libconsole_bridge.so which to the compiler will be "-lconsole_bridge").