Ask Your Question
0

-- Configuring incomplete, errors occurred!

asked 2015-12-14 11:35:41 -0500

Asaad Irfan gravatar image

I have used catkin_make successfully in the past but now whenever i try to use catkin_make i get the following error( as you can see i just created this directory named "delete", but catkin_make is still not working (with this directory or any other directory newly or previously created)):

asaad@VAIO:~$ mkdir -p ~/delete/src
asaad@VAIO:~$ cd delete/src/
asaad@VAIO:~/delete/src$ catkin_init_workspace n
usage: catkin_init_workspace [-h] [workspace]
catkin_init_workspace: error: Workspace "/home/asaad/delete/src/n" does not exist
asaad@VAIO:~/delete/src$ catkin_init_workspace 
Creating symlink "/home/asaad/delete/src/CMakeLists.txt" pointing to "/opt/ros/hydro/share/catkin/cmake/toplevel.cmake"
asaad@VAIO:~/delete/src$ cd ~/delete/
asaad@VAIO:~/delete$ catkin_make
Base path: /home/asaad/delete
Source space: /home/asaad/delete/src
Build space: /home/asaad/delete/build
Devel space: /home/asaad/delete/devel
Install space: /home/asaad/delete/install
####
#### Running command: "cmake /home/asaad/delete/src -DCATKIN_DEVEL_PREFIX=/home/asaad/delete/devel -DCMAKE_INSTALL_PREFIX=/home/asaad/delete/install" in "/home/asaad/delete/build"
####
-- 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
-- Using CATKIN_DEVEL_PREFIX: /home/asaad/delete/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/hydro
-- This workspace overlays: /opt/ros/hydro
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/asaad/delete/build/test_results
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.90
-- Found Git: /usr/bin/git 
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   python
--   thread
--   system
-- Found PythonLibs: /usr/lib/libpython2.7.so 
CMake Error: File /home/asaad/delete/src/package.xml does not exist.
CMake Error at /opt/ros/hydro/share/catkin/cmake/stamp.cmake:10 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /opt/ros/hydro/share/catkin/cmake/catkin_package_xml.cmake:61 (stamp)
  /opt/ros/hydro/share/catkin/cmake/catkin_package_xml.cmake:39 (_catkin_package_xml)
  /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:95 (catkin_package_xml)
  CMakeLists.txt:6 (catkin_package)


CMake Error at /opt/ros/hydro/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/hydro/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
  CMakeLists.txt:6 (catkin_package)


-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
asaad@VAIO:~/delete$
edit retag flag offensive close merge delete

Comments

i think catkin_init_workspace failed, create everything new, perhaps with another name?

inflo gravatar image inflo  ( 2015-12-14 12:52:03 -0500 )edit

i created a new directory named "del" and the same error occurred.

Asaad Irfan gravatar image Asaad Irfan  ( 2015-12-14 23:28:41 -0500 )edit

Asaad Irfan,

I am actually receiving the same error. Did you ever resolve it?

Thank you for any help you are able to give, as well as your time and attention to this matter. Have a great rest of the week.

Very Respectfully, CMobley7

CMobley7 gravatar image CMobley7  ( 2016-01-21 13:17:12 -0500 )edit

CMobley, i reinstalled ROS because i couldnt find any other way round.

Asaad Irfan gravatar image Asaad Irfan  ( 2016-02-09 02:27:04 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-12-15 10:50:49 -0500

joq gravatar image

Instead of catkin_init_workspace n you should use simply:

catkin_init_workspace

See: http://wiki.ros.org/catkin/Tutorials/...

edit flag offensive delete link more
0

answered 2015-12-15 00:05:01 -0500

Nouman Tahir gravatar image

There should be a package.xml in src folder, if you could find it there then you may not be running the catkin_make in workspace root directory or the file may be broken... If you could not find package.xml then your workspace is not properly initialized, try initializing again. It may be possible that there is a problem with catkin_create_workspace, refreshing ROS could be solution.

edit flag offensive delete link more
0

answered 2016-02-10 13:15:00 -0500

CMobley7 gravatar image

Asaad Irfan,

Thanks for the reply. In my case, this error appeared to be caused by a missing or corrupted file in catkin. So, instead of uninstalling ROS completely, we removed and reinstall catkin. After which, everything worked as expected.

Very Respectfully, CMobley7

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

1 follower

Stats

Asked: 2015-12-14 11:35:41 -0500

Seen: 3,550 times

Last updated: Feb 10 '16