Building a ROS Stack fails because package_source.py cannot be found [closed]

asked 2013-04-28 20:34:02 -0500

rhololkeolke gravatar image

I'm running ROS Fuerte on Ubuntu 12.04 and I'm trying to create a stack. I have already created a stack.xml file. I am now trying to make it possible to build the stack using rosbuild. I found http://ros.org/wiki/StackBuildFiles (this page) on the ROS wiki.

I created the CMakeLists.txt and the Makefile by copying the files on that page. However, when I run make package_source I get an error because the package_source.py file cannot be found.

Here is the full output of my error

cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/ros_workspace/my_package/examples/build
#cd build && make 
/opt/ros/fuerte/share/ros/core/rosbuild/bin/package_source.py /home/user/ros_workspace/my_package/examples
make: /opt/ros/fuerte/share/ros/core/rosbuild/bin/package_source.py: Command not found
make: *** [package_source] Error 127

I also looked at some of the stacks listed on the ros website and they seemed to have the same CMakelist and Makefile as my package.

Any ideas why this was not installed when I installed ROS? Am I using out of date instructions or am I doing something wrong? All I want to be able to do is automatically build all of the packages in a stack.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-04-27 01:39:39.704697