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:~/ros_catkin_ws $ sudo apt install tree && tree -L 1 $HOME/ros_catkin_ws/src
Reading package lists... Done
Building dependency tree
Reading state information... Done
tree is already the newest version (1.8.0-1).
The following packages were automatically installed and are no longer required:
libboost-atomic1.58.0 libboost-chrono1.58.0 libboost-context1.58.0 libboost-coroutine1.58.0
libboost-date-time1.58.0 libboost-graph-parallel1.58.0 libboost-graph1.58.0
libboost-locale1.58.0 libboost-log1.58.0 libboost-math1.58.0 libboost-mpi1.58.0
libboost-program-options1.58.0 libboost-python1.58.0 libboost-random1.58.0
libboost-regex1.58.0 libboost-serialization1.58.0 libboost-signals1.58.0 libboost-test1.58.0
libboost-thread1.58.0 libboost-timer1.58.0 libboost-wave1.58.0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
/home/pi/ros_catkin_ws/src
├── actionlib
├── angles
├── bond_core
├── catkin
├── class_loader
├── cmake_modules
├── collada_urdf
├── common_msgs
├── common_tutorials
├── control_msgs
├── diagnostics
├── dynamic_reconfigure
├── eigen_stl_containers
├── executive_smach
├── filters
├── gencpp
├── geneus
├── genlisp
├── genmsg
├── gennodejs
├── genpy
├── geometric_shapes
├── geometry
├── geometry2
├── geometry_tutorials
├── gl_dependency
├── image_common
├── interactive_markers
├── joint_state_publisher
├── kdl_parser
├── laser_geometry
├── media_export
├── message_generation
├── message_runtime
├── metapackages
├── navigation_msgs
├── nodelet_core
├── octomap
├── opencv3
├── orocos_kinematics_dynamics
├── pluginlib
├── python_qt_binding
├── qt_gui_core
├── qwt_dependency
├── random_numbers
├── resource_retriever
├── robot_model
├── robot_state_publisher
├── ros
├── rosbag_migration_rule
├── ros_comm
├── ros_comm_msgs
├── rosconsole_bridge
├── roscpp_core
├── ros_environment
├── roslint
├── roslisp
├── rospack
├── ros_tutorials
├── rqt
├── rqt_action
├── rqt_bag
├── rqt_common_plugins
├── rqt_console
├── rqt_dep
├── rqt_graph
├── rqt_image_view
├── rqt_launch
├── rqt_logger_level
├── rqt_moveit
├── rqt_msg
├── rqt_nav_view
├── rqt_plot
├── rqt_pose_view
├── rqt_publisher
├── rqt_py_console
├── rqt_reconfigure
├── rqt_robot_dashboard
├── rqt_robot_monitor
├── rqt_robot_plugins
├── rqt_robot_steering
├── rqt_runtime_monitor
├── rqt_rviz
├── rqt_service_caller
├── rqt_shell
├── rqt_srv
├── rqt_tf_tree
├── rqt_top
├── rqt_topic
├── rqt_web
├── rviz
├── std_msgs
├── urdf
├── vision_opencv
├── visualization_tutorials
├── webkit_dependency
└── xacro
97 directories, 0 files
RPi OS:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
GCC version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/5/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 5.5.0-8' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version: 5.5.0 20171010 (Raspbian 5.5.0-8)
STEPS Followed:
Setup ROS repositories:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Debian package index update:
sudo apt-get update sudo apt-get upgrade
bootstrap dependencies install:
sudo apt-get install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential cmake
Initializing rosdep:
sudo rosdep init rosdep update
create catkin workspace:
mkdir -p ~/ros_catkin_ws cd ~/ros_catkin_ws
fetching the core packages: 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
Resolve dependencies:
mkdir -p ~/ros_catkin_ws/external_src cd ~/ros_catkin_ws/external_src wget http://sourceforge.net/projects/assimp/files/assimp-3.1/assimp-3.1.1_no_test_models.zip/download -O assimp-3.1.1_no_test_models.zip unzip assimp-3.1.1_no_test_models.zip cd assimp-3.1.1 cmake . make sudo make install
Resolve dependencies with rosdep:
cd ~/ros_catkin_ws rosdep install -y --from-paths src --ignore-src --rosdistro kinetic -r --os=debian:buster
building 'catkin' workspace: (not succeed)
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic
Error Message:
==> Processing plain cmake package: 'opencv3'
==> Building with env: '/opt/ros/kinetic/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/pi/ros_catkin_ws/build_isolated/opencv3/install'
==> make -j4 -l4 in '/home/pi/ros_catkin_ws/build_isolated/opencv3/install'
[ 0%] Built target gen-pkgconfig
[ 5%] Built target carotene_objs
[ 11%] Built target IlmImf
[ 11%] Built target opencv_core_pch_dephelp
[ 11%] Built target opencv_flann_pch_dephelp
[ 17%] Built target libprotobuf
[ 18%] Built target opencv_imgproc_pch_dephelp
[ 18%] Built target opencv_ml_pch_dephelp
[ 18%] Built target opencv_objdetect_pch_dephelp
[ 18%] Built target opencv_phase_unwrapping_pch_dephelp
[ 18%] Built target opencv_plot_pch_dephelp
[ 19%] Built target opencv_photo_pch_dephelp
[ 20%] Built target opencv_reg_pch_dephelp
[ 20%] Built target opencv_surface_matching_pch_dephelp
[ 20%] Built target opencv_dnn_pch_dephelp
[ 21%] Built target opencv_video_pch_dephelp
[ 21%] Built target opencv_freetype_pch_dephelp
[ 22%] Built target opencv_fuzzy_pch_dephelp
[ 22%] Built target opencv_img_hash_pch_dephelp
[ 22%] Built target opencv_imgcodecs_pch_dephelp
[ 22%] Built target opencv_shape_pch_dephelp
[ 22%] Built target opencv_videoio_pch_dephelp
[ 22%] Built target opencv_xobjdetect_pch_dephelp
[ 22%] Built target opencv_highgui_pch_dephelp
[ 22%] Built target opencv_superres_pch_dephelp
[ 22%] Built target opencv_bioinspired_pch_dephelp
[ 22%] Built target opencv_dpm_pch_dephelp
[ 22%] Built target opencv_features2d_pch_dephelp
[ 22%] Built target opencv_line_descriptor_pch_dephelp
[ 22%] Built target opencv_text_pch_dephelp
[ 22%] Built target opencv_saliency_pch_dephelp
[ 22%] Built target opencv_calib3d_pch_dephelp
[ 23%] Built target opencv_ccalib_pch_dephelp
[ 24%] Built target opencv_rgbd_pch_dephelp
[ 24%] Built target opencv_stereo_pch_dephelp
[ 24%] Built target opencv_tracking_pch_dephelp
[ 24%] Built target opencv_structured_light_pch_dephelp
[ 24%] Built target opencv_videostab_pch_dephelp
[ 25%] Built target opencv_xfeatures2d_pch_dephelp
[ 25%] Built target opencv_aruco_pch_dephelp
[ 25%] Built target opencv_ximgproc_pch_dephelp
[ 25%] Built target opencv_bgsegm_pch_dephelp
[ 25%] Built target opencv_face_pch_dephelp
[ 25%] Built target opencv_optflow_pch_dephelp
[ 25%] Built target opencv_stitching_pch_dephelp
[ 26%] Built target tegra_hal
[ 26%] Built target gen_opencv_python_source
[ 26%] Built target pch_Generate_opencv_core
[ 26%] Built target pch_Generate_opencv_flann
[ 26%] Built target pch_Generate_opencv_imgproc
[ 26%] Built target pch_Generate_opencv_ml
[ 27%] Built target pch_Generate_opencv_objdetect
[ 27%] Built target pch_Generate_opencv_phase_unwrapping
[ 27%] Built target pch_Generate_opencv_photo
[ 27%] Built target pch_Generate_opencv_plot
[ 28%] Built target pch_Generate_opencv_surface_matching
[ 28%] Built target pch_Generate_opencv_reg
[ 29%] Built target pch_Generate_opencv_video
[ 29%] Built target pch_Generate_opencv_dnn
[ 29%] Built target pch_Generate_opencv_fuzzy
[ 29%] Built target pch_Generate_opencv_freetype
[ 29%] Built target pch_Generate_opencv_img_hash
[ 29%] Built target pch_Generate_opencv_imgcodecs
[ 29%] Built target pch_Generate_opencv_shape
[ 29%] Built target pch_Generate_opencv_videoio
[ 29%] Built target pch_Generate_opencv_xobjdetect
[ 30%] Built target pch_Generate_opencv_highgui
[ 30%] Built target pch_Generate_opencv_superres
[ 31%] Built target pch_Generate_opencv_bioinspired
[ 32%] Built target pch_Generate_opencv_dpm
[ 32%] Built target pch_Generate_opencv_line_descriptor
[ 32%] Built target pch_Generate_opencv_features2d
[ 32%] Built target pch_Generate_opencv_saliency
[ 32%] Built target pch_Generate_opencv_text
[ 32%] Built target pch_Generate_opencv_ccalib
[ 32%] Built target pch_Generate_opencv_calib3d
[ 32%] Built target pch_Generate_opencv_rgbd
[ 32%] Built target pch_Generate_opencv_stereo
[ 33%] Built target pch_Generate_opencv_tracking
[ 33%] Built target pch_Generate_opencv_structured_light
[ 33%] Built target pch_Generate_opencv_videostab
[ 33%] Built target pch_Generate_opencv_xfeatures2d
[ 33%] Built target pch_Generate_opencv_aruco
[ 33%] Built target pch_Generate_opencv_ximgproc
[ 33%] Built target pch_Generate_opencv_bgsegm
[ 33%] Built target pch_Generate_opencv_face
[ 33%] Built target pch_Generate_opencv_optflow
[ 33%] Built target pch_Generate_opencv_stitching
[ 38%] Built target opencv_core
[ 39%] Built target opencv_flann
[ 40%] Built target opencv_ml
[ 41%] Built target opencv_surface_matching
[ 46%] Built target opencv_imgproc
[ 46%] Built target opencv_plot
[ 46%] Built target opencv_phase_unwrapping
[ 47%] Built target opencv_objdetect
[ 48%] Built target opencv_photo
[ 49%] Built target opencv_reg
[ 50%] Built target opencv_xphoto
[ 51%] Built target opencv_video
[ 51%] Built target opencv_freetype
[ 51%] Built target opencv_fuzzy
[ 52%] Built target opencv_img_hash
[ 57%] Built target opencv_dnn
[ 58%] Built target opencv_shape
[ 60%] Built target opencv_imgcodecs
[ 60%] Built target opencv_xobjdetect
[ 60%] Built target opencv_videoio
[ 61%] Built target opencv_superres
[ 61%] Built target opencv_highgui
[ 61%] Built target opencv_waldboost_detector
[ 62%] Built target opencv_dpm
[ 63%] Built target opencv_bioinspired
[ 64%] Built target opencv_annotation
[ 64%] Built target opencv_visualisation
[ 64%] Built target opencv_version
[ 66%] Built target opencv_features2d
[ 67%] Built target opencv_text
[ 68%] Built target opencv_line_descriptor
[ 68%] Automatic MOC for target opencv_cvv
[ 69%] Built target opencv_saliency
[ 72%] Built target opencv_datasets
[ 75%] Built target opencv_calib3d
[ 75%] Built target opencv_cvv_autogen
[ 75%] Built target opencv_ccalib
[ 78%] Built target opencv_tracking
[ 78%] Built target opencv_rgbd
[ 78%] Built target opencv_stereo
[ 78%] Built target opencv_structured_light
[ 78%] Built target opencv_aruco
[ 80%] Built target opencv_videostab
[ 81%] Built target opencv_bgsegm
[ 83%] Built target opencv_xfeatures2d
[ 83%] Built target opencv_createsamples
[ 85%] Built target opencv_face
[ 88%] Built target opencv_ximgproc
[ 89%] Built target opencv_traincascade
[ 89%] Built target opencv_interactive-calibration
[ 91%] Built target opencv_stitching
[ 93%] Built target opencv_optflow
[100%] Built target opencv_cvv
[100%] Built target opencv_python2
[100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
/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);
^
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:8154: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
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.
After clean rosdep install as suggested without using '-r' option in step 8. I stuck again at package qtguicpp.
here is the log....
==> Processing catkin package: 'qtguicpp' ==> Building with env: '/opt/ros/kinetic/env.sh' Makefile exists, skipping explicit cmake invocation... ==> make cmakecheckbuildsystem in '/home/pi/roscatkinws/buildisolated/qtguicpp' ==> make -j4 -l4 in '/home/pi/roscatkinws/buildisolated/qtguicpp' [ 83%] Built target qtguicpp [ 88%] Compiling generated code for qtguicppsip 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/roscatkinws/develisolated/qtguicpp/lib/python2.7/dist-packages/qtguicpp/libqtguicppsip".so] Error 1 make[2]: *** [src/qtguicppsip/CMakeFiles/libqtguicppsip.dir/build.make:61: /home/pi/roscatkinws/develisolated/qtguicpp/lib/python2.7/dist-packages/qtguicpp/libqtguicppsip.so] Error 2 make[1]: *** [CMakeFiles/Makefile2:380: src/qtguicppsip/CMakeFiles/libqtguicppsip.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 <== Failed to process package 'qtguicpp': Command '['/opt/ros/kinetic/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2
Reproduce this error by running: ==> cd /home/pi/roscatkinws/buildisolated/qtgui_cpp && /opt/ros/kinetic/env.sh make -j4 -l4
Command failed, exiting.
Please Help!
Asked by Ashkr on 2019-10-21 21:48:12 UTC
Answers
/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.
Asked by gvdhoorn on 2019-10-24 04:06:09 UTC
Comments
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.
Asked by gvdhoorn on 2019-10-22 03:11:55 UTC
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/Installing%20ROS%20Kinetic%20on%20the%20Raspberry%20Pi
command i am using is:
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic
Asked by Ashkr on 2019-10-22 03:17:54 UTC
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.
Asked by gvdhoorn on 2019-10-22 03:33:01 UTC
@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':
Asked by Ashkr on 2019-10-22 03:55:03 UTC
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
?Asked by gvdhoorn on 2019-10-22 04:20:08 UTC
@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!
Asked by Ashkr on 2019-10-22 19:48:32 UTC
I tried again to download all the packages (resumed deleted packages) and re-compile, it stuck with this error message:
Command failed, exiting.
Asked by Ashkr on 2019-10-23 00:23:03 UTC
As I wrote earlier:
Asked by gvdhoorn on 2019-10-23 04:57:51 UTC
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.
Asked by gvdhoorn on 2019-10-23 04:59:18 UTC
@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/Installing%20ROS%20Kinetic%20on%20the%20Raspberry%20Pi
Asked by Ashkr on 2019-10-23 20:38:42 UTC
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?Asked by gvdhoorn on 2019-10-24 03:18:59 UTC
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.
Asked by Ashkr on 2019-10-24 03:35:36 UTC
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.
Asked by gvdhoorn on 2019-10-24 04:01:13 UTC
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.
Asked by Ashkr on 2019-10-24 04:06:10 UTC
No need to apologise. Just keep it in mind.
Asked by gvdhoorn on 2019-10-24 04:18:00 UTC
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/
Asked by Ashkr on 2019-10-24 04:58:45 UTC
Again: do not post this in a comment.
Asked by gvdhoorn on 2019-10-24 07:42:59 UTC
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
Asked by Ashkr on 2019-10-24 19:57:57 UTC
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.Asked by gvdhoorn on 2019-10-25 03:35:27 UTC
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
Asked by Ashkr on 2019-10-25 04:12:19 UTC
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?
Asked by gvdhoorn on 2019-10-25 04:14:22 UTC
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.Asked by gvdhoorn on 2019-10-25 04:16:40 UTC
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!
Asked by Ashkr on 2019-10-25 04:20:41 UTC
Thanks for your suggestion to solve this issue, I am trying rebuilding it now.
Asked by Ashkr on 2019-10-25 04:24:33 UTC
Sorry for this ignorance but I will keep in mind this regulation from now on. Please dont mind it.
Asked by Ashkr on 2019-10-25 06:40:14 UTC
@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.
Asked by Ashkr on 2019-10-25 10:44:28 UTC
Thanks for your help on the issue for the package qt_gui_cpp error by providing this link ros-visualization/qt_gui_core#175.
I fixed it and proceeding with build it but again I stuck at package 'tf2' error. Please suggest the solution. Thanks. Error log details are here: https://pastebin.com/VHh60ESG
Asked by Ashkr on 2019-10-26 06:01:47 UTC
@gvdhoorn: I request you to please help me to resolve the issues..
Asked by Ashkr on 2019-10-29 01:44:35 UTC