Failing to create catkin workspace
Hey,
I tried to go through this tutorial Tutorial: Using a URDF in Gazebo but I failed in the first steps. I gitcloned the RRbot stuff and tried catkin_make. But no success. After this i tried to set up a complete new catkin workspace, just to make sure there is no error in my catkin workspace. But also with a new and plain catkin workspace it didnt work.
The error i get is here:
schultza@Andreas:~/catkin_ws$ catkin_make
Base path: /home/schultza/catkin_ws
Source space: /home/schultza/catkin_ws/src
Build space: /home/schultza/catkin_ws/build
Devel space: /home/schultza/catkin_ws/devel
Install space: /home/schultza/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/schultza/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/schultza/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/schultza/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.9
-- Using these message generators: gencpp;genlisp;genpy
-- Boost version: 1.54.0
You have called ADD_LIBRARY for library ... without any source files. This typically indicates a problem with your CMakeLists.txt file
CMake Error: File /home/schultza/catkin_ws/src/package.xml does not exist.
CMake Error at /opt/ros/indigo/share/catkin/cmake/stamp.cmake:10 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/opt/ros/indigo/share/catkin/cmake/catkin_package_xml.cmake:61 (stamp)
/opt/ros/indigo/share/catkin/cmake/catkin_package_xml.cmake:39 (_catkin_package_xml)
/opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:95 (catkin_package_xml)
CMakeLists.txt:77 (catkin_package)
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:112 (message):
catkin_package() 'catkin' must be listed as a buildtool dependency in the
package.xml
Call Stack (most recent call first):
/opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
CMakeLists.txt:77 (catkin_package)
-- Configuring incomplete, errors occurred!
See also "/home/schultza/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/schultza/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
Maybe someone of you can help me. Im using ROS-indigo and Gazebo 2.2
Edit#1: Workspace structure
my workspace looks something like this:
catkin_ws
build
devel
install
src
Package A
(In almost every Package)
include
launch
src
worlds
CMakeLists.txt
package.xml
Package B
Package ....
CMakeLists.txt
RemoteSystemTempFiles
Sry for the bad formatting
Edit#2: Creating an empty workspace
schultza@Andreas:~$ source /opt/ros/indigo/setup.bash
schultza@Andreas:~$ mkdir -p ~/catkin_ws2/src
schultza@Andreas:~$ cd ~/catkin_ws2/src/
schultza@Andreas:~/catkin_ws2/src$ catkin_init_workspace
Creating symlink "/home/schultza/catkin_ws2/src/CMakeLists.txt" pointing to "/opt/ros/indigo/share/catkin/cmake/toplevel.cmake"
schultza@Andreas:~/catkin_ws2/src$ cd ~/catkin_ws2
schultza@Andreas:~/catkin_ws2$ catkin_make
Base path: /home/schultza/catkin_ws2
Source space: /home/schultza/catkin_ws2/src
Build space: /home/schultza/catkin_ws2/build
Devel space: /home/schultza/catkin_ws2/devel
Install space: /home/schultza/catkin_ws2/install ...
> CMake Error: File /home/schultza/catkin_ws/src/package.xml does not exist. This is strange: can you show us the layout of your workspace?
sry this didnt work see my main post
Did you follow these steps? http://wiki.ros.org/catkin/Tutorials/create_a_workspace
Yes, as I said i tried to create a complete new workspace (with this tutorial you posted) and the same error occured
So just creating (in a fresh shell) a directory structure like `catkin_ws/src`, then `cd catkin_ws` and `catkin_make` also doesn't work? So basically building an empty ws?
Are you building from within eclipse? The `RemoteSystemTempFiles` seems to suggest you do.
I exactly tried to build an empty ws as you described above and it failed with same error. I tried once to use eclipse but didnt go further with it and stopped to use it, but it wasnt a problem times before
Ok that's strange. Please again create a fresh and empty workspace and post the output of the initial catkin_make.