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.
Thank you so much for suggesting solution for error occurred while building opencv3. I successfully built opencv3 package now.
sorry but as I mentioned in my question, there are more package errors i faced.... Now in continuation, build process stuck qt_gui_cpp. Please help!
https://pastebin.com/6RCWZ8gg
You should've updated your original question text with these new errors.
Were there any errors reported when you executed step 8 (ie: using
rosdep
to install dependencies)?Try re-running these commands:
Note: I've removed the
-r
option, which will causerosdep
to stop on any error.Pay special attention to the output. Do not ignore errors or warnings. There is no point in running
catkin_make_isolated
ifrosdep
does not successfully complete.There were no errors reported while running the step 8 earlier.
I am running now the same step 8 without '-r' option as you suggested.
It ran without errors. for your reference last few logs is.......
Preparing to unpack .../7-libogre-1.9-dev_1.9.0+dfsg1-12_armhf.deb ...
Unpacking libogre-1.9-dev (1.9.0+dfsg1-12) ...
Setting up libjxr0:armhf (1.1-6) ...
Setting up libraw19:armhf (0.19.2-2) ...
Setting up libzzip-0-13:armhf (0.13.62-3.2) ...
Setting up libboost-system1.62.0:armhf (1.62.0+dfsg-10+b3) ...
Setting up libfreeimage3:armhf (3.18.0+ds2-1) ...
Setting up libboost-thread1.62.0:armhf (1.62.0+dfsg-10+b3) ...
Setting up libogre-1.9.0v5:armhf (1.9.0+dfsg1-12) ...
Setting up libogre-1.9-dev (1.9.0+dfsg1-12) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
All required rosdeps installed successfully
This is going to sound a bit rude, so apologies in advance, but: I've now asked you 3 times to not post large updates like this in comments, but to append it to your original question text.
Why do you ignore that request?
the fact that you still have
rosdep
installing dependencies suggests to me that this was not done properly before.It's even installing
libboost-thread
, which is a pretty low-level dependency, and should always be installed by any initial run ofrosdep install ..
for a workspace built from sources.I would make sure that
rosdep
now cleanly exits, telling you that all system dependencies have been checked and are present, and then try rebuilding your workspace.I am sorry, may i please know what is the criteria/limit to be posted in 'question' or 'in add comment'. As per my it just 10 lines of log, seems not much detailed contents so i posted here. Anyway, as i understood, any of the code line message, error...should be posted in 'question post' and any of the text /discuss comments on that should be kept in 'add comment' block. Please confirm me if this is okay OR correct me if i understood wrong. Thanks!
Thanks for your suggestion to solve this issue, I am trying rebuilding it now.
Sorry for this ignorance but I will keep in mind this regulation from now on. Please dont mind it.
@gvdhoorn: Sir, I didnt mean to disappoint you at all since you are really helping me in a better way. but since i am newbie to this and dont know much about it. please allow me to correct my self and better post the comments and questions on this community well. I am looking for your kind help. Thank you and sorry. Please.