CMake Error when rebuild package 'vrpn_client_ros'

asked 2020-12-10 05:39:39 -0500

kaiwill gravatar image

Hello all:

I am new to ROS and I needed some help/guidance. I would like to install vrpn_client_ros to communication between ROS and Optitrack.
My platform is Raspberry Pi Zero W+ Raspbian buster+ ROS Kinetic.
I install it according to the website http://wiki.ros.org/ROSberryPi/Instal...

cd ~/ros_catkin_ws
rosinstall_generator ros_comm vrpn_client_ros --rosdistro kinetic --deps --wet-only --tar > kinetic-custom_ros.rosinstall
wstool merge -t src kinetic-custom_ros.rosinstall
wstool update -t src
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y -r --os=debian:buster

But when I rebuild the workspace,

sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

it came to errors like this:

CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find VRPN (missing: CMAKE_HAVE_THREADS_LIBRARY)
Call Stack (most recent call first): /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /opt/ros/kinetic/share/vrpn/cmake/VRPNConfig.cmake:130 (find_package_handle_standard_args) CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/pi/ros_catkin_ws/build_isolated/vrpn_client_ros/CMakeFiles/CMakeOutput.log". See also "/home/pi/ros_catkin_ws/build_isolated/vrpn_client_ros/CMakeFiles/CMakeError.log".
<== Failed to process package 'vrpn_client_ros': Command '['/opt/ros/kinetic/env.sh', 'cmake', '/home/pi/ros_catkin_ws/src/vrpn_client_ros', '-DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/vrpn_client_ros', '-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/vrpn_client_ros && /opt/ros/kinetic/env.sh cmake /home/pi/ros_catkin_ws/src/vrpn_client_ros -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/vrpn_client_ros -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'

How can I fix it? thanks a lot.

edit retag flag offensive close merge delete