ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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 image gvdhoorn  ( 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 image Ashkr  ( 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 image gvdhoorn  ( 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 image Ashkr  ( 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 image gvdhoorn  ( 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 image Ashkr  ( 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 image Ashkr  ( 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 image gvdhoorn  ( 2019-10-23 04:57:51 -0600 )edit

As to:

cc1plus: warning: unrecognized command line option ‘-Wno-implicit-fallthrough’

that would appear to be discussed here.

GCC 7 is shipped with only with recent Ubuntu and Debian versions. OpenCV 3 -- as shipped with ROS Kinetic -- should not require that, nor use those flags. Are you sure you have the correct versions of those packages on your system / in your workspace?


As to your problem: it would probably be good to provide a clear, concise and exact description of what you are doing, versions of the software involved (ie: which OS? Which version? Version of compiler? ROS? etc etc) and to show exact copies of error messages. And the commands you execute. Step. By. Step.

If you can't/won't do that, I (and others) cannot help you.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-23 04:59:18 -0600 )edit

@gvdhoorn: Thanks for your comment. I mentioned the details of OS and GCC in the original question text. please check!

In brief:

OS: Raspbian GNU/Linux 10(buster)

gcc version: 5.5.0

I followed up the tutorial to setup ROS on RPi3 described here: (described step by step in original question post; please check. http://wiki.ros.org/ROSberryPi/Instal...

Ashkr gravatar image Ashkr  ( 2019-10-23 20:38:42 -0600 )edit

Is the error about the unrecognized command line option the only error? What you copied here appears to be only the last part of the error message. The actual errors are not included.

Could you post more of the compiler output? Perhaps use pastebin first to post everything, then we can selectively copy-paste it into your question afterwards.

Also: you don't get the Could not find a package configuration file provided by "tf" error (and others) any more?

gvdhoorn gravatar image gvdhoorn  ( 2019-10-24 03:18:59 -0600 )edit

I defined full details of opencv3 package error in question post. please check that. Thanks!

The error is now related to opencv3 package. Since as i mentioned before that i was facing these issues and i didnt find any solution for that so i was deleting the error occurred packages one by one from /ros_catkin_ws/src/ and trying to rebuild again.....but not succeed.

but now i re-downloaded all the packages as mentioned in steps i followed, and i am at the place when i had faced first error message related to opencv3 ros package.

Now the installation has full of all packages and when i try to build it, i encounter this error message.

Once if i resolve this opencv3 package related error, i can go further build procedure and then i can check about the "tf" package error.

Ashkr gravatar image Ashkr  ( 2019-10-24 03:35:36 -0600 )edit

Please Help!

please stop adding this to your question every time.

We already know you are looking for help. Otherwise you would not be posting here.

There is no need to keep adding it.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-24 04:01:13 -0600 )edit

I just added the detailed 'error message log' and as you mentioned I should define it in question post instead of "add comment section".,so i added there. sorry for inconvenience. I won't add it any more.

Ashkr gravatar image Ashkr  ( 2019-10-24 04:06:10 -0600 )edit

No need to apologise. Just keep it in mind.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-24 04:18:00 -0600 )edit

Thanks for suggesting solution for error occurred while building opencv3. I successfully built opencv3 package now. sorry as I mentioned in my question, there are more package errors i faced.... Now in continuation, build process stuck qt_gui_cpp ==> make -j4 -l4 in '/home/pi/ros_catkin_ws/build_isolated/qt_gui_cpp' [ 83%] Built target qt_gui_cpp [ 88%] Compiling generated code for qt_gui_cpp_sip Python bindings... make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. /usr/bin/ld: cannot find -l-lpthread collect2: error: ld returned 1 exit status make[3]: * [Makefile:38: "/home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip".so] Error 1 make[2]: [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/build.make:61: /home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip.so] Error 2 make[1]: ** [CMakeFiles/Makefile2:380: src/qt_gui_cpp_sip/CMakeFile/

Ashkr gravatar image Ashkr  ( 2019-10-24 04:58:45 -0600 )edit

Again: do not post this in a comment.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-24 07:42:59 -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

Question Tools

1 follower

Stats

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

Seen: 2,073 times

Last updated: Oct 25 '19