Ask Your Question

CMake Error in Netbeans (double-check your ROS_PACKAGE_PATH)

asked 2012-03-06 00:00:05 -0500

Florian gravatar image

updated 2014-01-28 17:11:35 -0500

ngrennan gravatar image

I've installed Netbeans 7.1.1 as sudoer in Ubuntu 11.10. Just as it is described in the Wiki at

However, everytime I try to build my own package which is a identical copy of the tutorial from, I get the output:

mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
[rosbuild] Building package hha
CMake Error at /opt/ros/electric/ros/core/rosbuild/private.cmake:110 (message):
  [rosbuild] rospack found package "hha" at "", but the current directory is
  "/home/<***>/workspace/ros/hha".  You should double-check your
  ROS_PACKAGE_PATH to ensure that packages are found in the correct
  precedence order.
Call Stack (most recent call first):
  /opt/ros/electric/ros/core/rosbuild/public.cmake:180 (_rosbuild_check_package_location)
  CMakeLists.txt:12 (rosbuild_init)

-- Configuring incomplete, errors occurred!
make: *** [all] Fehler 1

BUILD FAILED (exit value 2, total time: 157ms)

What is going on? If I execute 'make' in a terminal, everything works fine! :-/

Also, I get the following correctly identified path of 'rospack find hha'

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-28 10:39:45 -0500

Mani gravatar image

The problem is due to the changes made to Netbeans configuration files' location from 6.x to 7.x. Please add source /opt/ros/electric/setup.bash to netbeans.conf based on the information given here:

and here:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-06 00:00:05 -0500

Seen: 1,158 times

Last updated: Sep 28 '12