failed to process package tf2_py etc....
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 ...
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.
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
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: 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':
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: 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!
I tried again to download all the packages (resumed deleted packages) and re-compile, it stuck with this error message:
Command failed, exiting.
As I wrote earlier:
As to:
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: 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...
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?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.
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.
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.
No need to apologise. Just keep it in mind.
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/
Again: do not post this in a comment.