ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Hi, when i run catkin_make i have an error with nodelet

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

fatima gravatar image

updated 2015-12-07 21:46:51 -0500

this is result of catkin_make :

Base path: /home/fatima/catkin_ws1
Source space: /home/fatima/catkin_ws1/src
Build space: /home/fatima/catkin_ws1/build
Devel space: /home/fatima/catkin_ws1/devel
Install space: /home/fatima/catkin_ws1/install
####
#### Running command: "make cmake_check_build_system" in "/home/fatima/catkin_ws1/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/fatima/catkin_ws1/devel
-- Using CMAKE_PREFIX_PATH: /home/fatima/catkin_ws1/devel;/opt/ros/indigo
-- This workspace overlays: /home/fatima/catkin_ws1/devel;/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/fatima/catkin_ws1/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.16
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner2_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner2_tutorials'
-- ==> add_subdirectory(beginner2_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
-- beginner2_tutorials: 1 messages, 1 services
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:217 (message):
  catkin_package() DEPENDS on the catkin package 'nodelet' which must
  therefore be listed as a run dependency in the package.xml
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
  beginner2_tutorials/CMakeLists.txt:13 (catkin_package)


-- Configuring incomplete, errors occurred!
See also "/home/fatima/catkin_ws1/build/CMakeFiles/CMakeOutput.log".
See also "/home/fatima/catkin_ws1/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
fatima@fatima-K55VD:~/catkin_ws1$ ^C
fatima@fatima-K55VD:~/catkin_ws1$ catkin_make
Base path: /home/fatima/catkin_ws1
Source space: /home/fatima/catkin_ws1/src
Build space: /home/fatima/catkin_ws1/build
Devel space: /home/fatima/catkin_ws1/devel
Install space: /home/fatima/catkin_ws1/install
####
#### Running command: "make cmake_check_build_system" in "/home/fatima/catkin_ws1/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/fatima/catkin_ws1/devel
-- Using CMAKE_PREFIX_PATH: /home/fatima/catkin_ws1/devel;/opt/ros/indigo
-- This workspace overlays: /home/fatima/catkin_ws1/devel;/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/fatima/catkin_ws1/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.16
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner2_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner2_tutorials'
-- ==> add_subdirectory(beginner2_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
-- beginner2_tutorials: 1 messages, 1 services
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:217 (message):
  catkin_package() DEPENDS on the catkin package 'nodelet' which must
  therefore be listed as a run dependency in the package.xml
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
  beginner2_tutorials/CMakeLists.txt:13 (catkin_package)


-- Configuring incomplete, errors occurred!
See also "/home/fatima/catkin_ws1/build/CMakeFiles/CMakeOutput.log".
See also "/home/fatima/catkin_ws1/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

i think as Akif told i should bring it to the package.xml but how? i dont know

its my result when i run catkin_make again :

Base path: /home/fatima/~catkin_ws1 Source space: /home/fatima/~catkin_ws1/src Build space ... (more)

edit retag flag offensive close merge delete

Comments

We need to see the dependencies section of you package.xml, please.

joq gravatar image joq  ( 2015-12-05 17:30:47 -0500 )edit

hi sorry for these days late i have an problem , now i run catkin_make after a few days in root catkin and i receive this result , i edited my last question

fatima gravatar image fatima  ( 2015-12-07 21:39:30 -0500 )edit

i dont know is it true or not?

fatima gravatar image fatima  ( 2015-12-07 21:39:59 -0500 )edit

@fatima, did you get any errors when you remove nodelet dependency from your CMakeLists.txt as @joq suggested?

Akif gravatar image Akif  ( 2015-12-08 02:08:24 -0500 )edit

hi akif, no after a few days when i run catkin_make again i hadnt any error without nodelet error i was surprised i edited my answer and put the result above but yet i have the same problem i couldnt run $ rosrun beginner_tutorials talker so i dont know is the catkin_make run true or not!!!!

fatima gravatar image fatima  ( 2015-12-08 08:25:09 -0500 )edit

@fatima, in your question it is written that the package name is beginner2_tutorials not beginner_tutorials as you try. Can you check it?

Akif gravatar image Akif  ( 2015-12-08 08:44:12 -0500 )edit

yes i did that and my result is :

fatima@fatima-K55VD:~/catkin_ws1$ rosrun beginner2_tutorials talker
[rosrun] Couldn't find executable named talker below /home/fatima/catkin_ws1/src/beginner2_tutorials
fatima gravatar image fatima  ( 2015-12-08 09:59:19 -0500 )edit

i ask new question at link so thank you so much for your help

fatima gravatar image fatima  ( 2015-12-08 10:17:21 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-12-05 17:35:21 -0500

joq gravatar image

Why did you list nodelet as a CATKIN_DEPENDS in your CMakeLists.txt?

The tutorial does not do that. Try removing it.

Maybe you should start over, copying from the tutorial exactly.

edit flag offensive delete link more
0

answered 2015-12-11 08:53:37 -0500

fatima gravatar image

i added nodelet as a CATKIN_DEPENDS in my CMakeLists.txt as wrong so i should remove it . and have done that , all my mistake was i havent done making srv and msg files and catkin_make wasnt run true. after correct this problem my problem has been solved.

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 1,113 times

Last updated: Dec 11 '15