catkin_make fails on windows with velodyne drivers

asked 2021-01-21 01:11:00 -0500

hmrbcnt gravatar image

Hey guys, I'm pretty new to ROS and I'm supposed to integrate an IMU and VLP-16 into one node. But the first problem I've experienced is the installation of the ROS velodyne drivers.

Here are the steps I've taken: First, I go into my workspace folder, catkin_ws, using the shortcut made by using the following installation instructions: http://wiki.ros.org/Installation/Windows

Inside the folder, I create a src folder then run the following commands:

rosinstall_generator velodyne --deps --exclude RPP --tar --flat > pkg.rosinstall

which successfully creates a pkg.rosinstall file. Then, I enter the ff:

vcs import --force src < pkg.rosinstall

which unpacks a couple of tarballs into the src folder. Then I do the following:

rosdep update
rosdep install --from-paths src --ignore-src -r -y

Rosdep update works fine, but the second command is where things start getting funky. It says that

c:\catkin_ws>rosdep install --from-paths src --ignore-src -r -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
velodyne_driver: No definition of [libpcap] for OS [windows]
Continuing to install resolvable dependencies...

I just manually install npcap in my Windows, then add its path variable.

But when I do catkin_make, I get the following error:

-- Build files have been written to: C:/catkin_ws/build
####
#### Running command: "ninja -j8 -l8" in "c:\catkin_ws\build"
####
[1/44] Building CXX object CMakeFiles/Project__setup_util....ect__setup_util.py_exec_install_python/_setup_util.cpp.obj
FAILED: CMakeFiles/Project__setup_util.py_exec_install_python.dir/catkin_generated/add_python_executable/Project__setup_util.py_exec_install_python/_setup_util.cpp.obj
C:\MinGW\bin\c++.exe -DNOMINMAX -DROS_BUILD_SHARED_LIBS=1 -DWIN32_LEAN_AND_MEAN -D_USE_MATH_DEFINES  -O2 -g -DNDEBUG   /D _VARIADIC_MAX=10 -MD -MT CMakeFiles/Project__setup_util.py_exec_install_python.dir/catkin_generated/add_python_executable/Project__setup_util.py_exec_install_python/_setup_util.cpp.obj -MF CMakeFiles\Project__setup_util.py_exec_install_python.dir\catkin_generated\add_python_executable\Project__setup_util.py_exec_install_python\_setup_util.cpp.obj.d -o CMakeFiles/Project__setup_util.py_exec_install_python.dir/catkin_generated/add_python_executable/Project__setup_util.py_exec_install_python/_setup_util.cpp.obj -c catkin_generated/add_python_executable/Project__setup_util.py_exec_install_python/_setup_util.cpp
c++.exe: error: /D: No such file or directory
c++.exe: error: _VARIADIC_MAX=10: No such file or directory
[2/44] Generating dynamic reconfigure files from cfg/Velod...packages/velodyne_laserscan/cfg/VelodyneLaserScanConfig.py
Generating reconfiguration files for VelodyneLaserScan in velodyne_laserscan
Wrote header file in C:/catkin_ws/devel/include/velodyne_laserscan\VelodyneLaserScanConfig.h
[3/44] Generating dynamic reconfigure files from cfg/Trans...te-packages/velodyne_pointcloud/cfg/TransformNodeConfig.py
Generating reconfiguration files for TransformNode in velodyne_pointcloud
Wrote header file in C:/catkin_ws/devel/include/velodyne_pointcloud\TransformNodeConfig.h
ninja: build stopped: subcommand failed.
Invoking "ninja -j8 -l8" failed

I'm totally lost as to what I can do to make this work, and any help would be appreciated. Thanks!

edit retag flag offensive close merge delete