Ask Your Question
0

failed to process package tf2_py etc....

asked 2019-10-21 21:48:12 -0600

Ashkr gravatar image

updated 2019-10-25 04:40:05 -0600

I am setting up ROS kinetic on RPi3. I am facing up some errors like

failed to process package...
tf2_py
opencv3
pluginlib
qt/gui_core
qt_gui_cpp
geometry2/tf
rqt_gui_cpp

please help to resove these packages errors.... Thanks!

==> Processing catkin package: 'interactive_markers'
==> Creating build directory: 'build_isolated/interactive_markers'
==> Building with env: '/opt/ros/kinetic/env.sh'
==> cmake /home/pi/ros_catkin_ws/src/interactive_markers -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/interactive_markers -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/pi/ros_catkin_ws/build_isolated/interactive_markers'
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/pi/ros_catkin_ws/devel_isolated/interactive_markers
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python (found version "2.7.16")
-- 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/pi/ros_catkin_ws/build_isolated/interactive_markers/test_results
-- Found gtest: gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.18
-- BUILD_SHARED_LIBS is on
-- Could NOT find tf (missing: tf_DIR)
-- Could not find the required component 'tf'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "tf" with any of
  the following names:

    tfConfig.cmake
    tf-config.cmake

  Add the installation prefix of "tf" to CMAKE_PREFIX_PATH or set "tf_DIR" to
  a directory containing one of the above files.  If "tf" provides a separate
  development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pi/ros_catkin_ws/build_isolated/interactive_markers/CMakeFiles/CMakeOutput.log".
See also "/home/pi/ros_catkin_ws/build_isolated/interactive_markers/CMakeFiles/CMakeError.log".
<== Failed to process package 'interactive_markers':
  Command '['/opt/ros/kinetic/env.sh', 'cmake', '/home/pi/ros_catkin_ws/src/interactive_markers', '-DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/interactive_markers', '-DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/interactive_markers && /opt/ros/kinetic/env.sh cmake /home/pi/ros_catkin_ws/src/interactive_markers -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/interactive_markers -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'

Command failed, exiting.
pi@raspberrypi:~/ros_catkin_ws $ sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

Output of command: tree -L 1 $HOME/ros_catkin_ws/src:

pi@raspberrypi ...
(more)
edit retag flag offensive close merge delete

Comments

I am facing up some errors like [..]

Without more information on your setup, which commands you've used, how you've created and populated your workspace, a verbatim copy of the exact error messages, links to any guides or tutorials you've followed we're not going to be able to help.

Please be considerate of the time and effort that goes into helping you. We don't have a crystal ball, we don't see what you see and there are literally hundreds of different possible causes for each and every problem you encounter.

gvdhoorn gravatar imagegvdhoorn ( 2019-10-22 03:11:55 -0600 )edit

yes @gvdhoorn, i understand your saying well. well, i simply followed all the steps as detailed here without missing anything.... http://wiki.ros.org/ROSberryPi/Instal...

command i am using is: sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

Ashkr gravatar imageAshkr ( 2019-10-22 03:17:54 -0600 )edit

So, where are the copies of the error messages?

Don't post that in a comment. Edit your original question text with that new information. Use the edit button/link.

And stating that you've "simply followed all the steps" is not sufficient. Many problems can be caused by blindly copy-pasting commands, or by not following instructions correctly.

gvdhoorn gravatar imagegvdhoorn ( 2019-10-22 03:33:01 -0600 )edit

@gvdhoorn: yes, i do so. but there is no mistake in copying the commands from the mentioned link since i have checked it carefully before applying. Also i am facing this issue since long time and searched to find the solution, but didnt get the solution. so i removed that particular package from ~/ros_catkin_ws/src/ and recompiled it. now i am stuck at error <== Failed to process package 'interactive_markers':

Ashkr gravatar imageAshkr ( 2019-10-22 03:55:03 -0600 )edit

How did you download all the sources for the packages you need to build?

Because the error message seems to indicate that you don't have everything that is required in your workspace. tf is a core package that should be downloaded in the Create a catkin Workspace step (section 3.1) of the tutorial you link.

Can you show us the output of sudo apt install tree && tree -L 1 $HOME/ros_catkin_ws/src?

gvdhoorn gravatar imagegvdhoorn ( 2019-10-22 04:20:08 -0600 )edit

@gvdhoorn: I used this for download: Desktop: ROS, rqt, rviz, and robot-generic libraries

$ rosinstall_generator desktop --rosdistro kinetic --deps --wet-only --tar > kinetic-desktop-wet.rosinstall $ wstool init src kinetic-desktop-wet.rosinstall

How can i share the output of the command you asked for, since when i paste the output in "add comment" is says: "This content is forbidden"

Please suggest!

Ashkr gravatar imageAshkr ( 2019-10-22 19:48:32 -0600 )edit

I tried again to download all the packages (resumed deleted packages) and re-compile, it stuck with this error message:

At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-implicit-fallthrough’
make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:63: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:8425: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX shared module ../../lib/cv2.so
[100%] Built target opencv_python2
make: *** [Makefile:163: all] Error 2


<== Failed to process package 'opencv3':
  Command '['/opt/ros/kinetic/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2


Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/opencv3 && /opt/ros/kinetic/env.sh make -j4 -l4

Command failed, exiting.

Ashkr gravatar imageAshkr ( 2019-10-23 00:23:03 -0600 )edit

Please suggest!

As I wrote earlier:

Don't post that in a comment. Edit your original question text with that new information. Use the edit button/link.

gvdhoorn gravatar imagegvdhoorn ( 2019-10-23 04:57:51 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-10-24 04:06:09 -0600

gvdhoorn gravatar image

updated 2019-10-24 04:18:58 -0600

/home/pi/ros_catkin_ws/src/opencv3/modules/python/src2/cv2.cpp: In function ‘bool pyopencv_to(PyObject*, T&, const char*) [with T = cv::String; PyObject = _object]’:
/home/pi/ros_catkin_ws/src/opencv3/modules/python/src2/cv2.cpp:885:34: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     char* str = PyString_AsString(obj);
                                  ^

This is the actual error. And that would seem to be a problem in OpenCV. It's not related to ROS or you building your workspace.

See opencv/opencv#15110 fi for a similar issue. Note the absence of ROS there.

To get passed this -- as a workaround -- you could do what the last comment in that issue suggests (ie: change char* str to const char* str). But note that it's really just a workaround.

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: 2019-10-21 21:48:12 -0600

Seen: 76 times

Last updated: Oct 25