Cannot build ros package that uses pcl_visualization

asked 2021-07-05 13:06:56 -0500

DyuAdi gravatar image

updated 2022-05-23 09:01:17 -0500

lucasw gravatar image

Hi, I'm currently using ROS Melodic on Windows 10. I've installed PCL 1.11.1 which works fine on it's own (without ros). In my ros package pcl is a dependency; in particular the visualization tools. When I try to build the package using catkin_make, I get the following error:

Running command: "nmake" in "C:\Users\Dyuman\catkin_ws\build"

Microsoft (R) Program Maintenance Utility Version 14.28.29915.0
Copyright (C) Microsoft Corporation.  All rights reserved.

[ 14%] Built target Project__setup_util.py_exec_install_python
[ 21%] Building CXX object mkv2pcd/CMakeFiles/mkv2pcd.dir/src/mkv2pcd.cpp.obj
mkv2pcd.cpp
C:\opt\ros\melodic\x64\include\boost-1_66\boost/iostreams/positioning.hpp(96): warning C4996: 'std::fpos<_Mbstatet>::seekpos': warning STL4019: The member std::fpos::seekpos() is non-Standard, and is preserved only for compatibility with workarounds for old versions of Visual C++. It will be removed in a future release, and in this release always returns 0. Please use standards-conforming mechanisms to manipulate fpos, such as conversions to and from streamoff, or an integral type, instead. If you are receiving this message while compiling Boost.IOStreams, a fix has been submitted upstream to make Boost use standards-conforming mechanisms, as it does for other compilers. You can define _SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING to acknowledge that you have received this warning, or define _REMOVE_FPOS_SEEKPOS to remove std::fpos::seekpos entirely.
C:\opt\ros\melodic\x64\include\pcl-1.8\pcl/visualization/impl/pcl_visualizer.hpp(1431): error C2039: 'ImmediateModeRenderingOff': is not a member of 'vtkMapper'
C:\Program Files\PCL 1.11.1\3rdParty\VTK\include\vtk-8.2\vtkMapper.h(80): note: see declaration of 'vtkMapper'
C:\opt\ros\melodic\x64\include\pcl-1.8\pcl/visualization/pcl_visualizer.h(920): note: see reference to function template instantiation 'bool pcl::visualization::PCLVisualizer::updatePointCloud<pcl::PointXYZ>(const boost::shared_ptr<const pcl::PointCloud<pcl::PointXYZ>> &,const std::string &)' being compiled
C:\opt\ros\melodic\x64\include\pcl-1.8\pcl/visualization/impl/pcl_visualizer.hpp(1543): error C2039: 'ImmediateModeRenderingOff': is not a member of 'vtkMapper'
C:\Program Files\PCL 1.11.1\3rdParty\VTK\include\vtk-8.2\vtkMapper.h(80): note: see declaration of 'vtkMapper'
C:\opt\ros\melodic\x64\include\pcl-1.8\pcl/visualization/pcl_visualizer.h(933): note: see reference to function template instantiation 'bool pcl::visualization::PCLVisualizer::updatePointCloud<pcl::PointXYZRGB>(const boost::shared_ptr<const pcl::PointCloud<pcl::PointXYZRGB>> &,const pcl::visualization::PointCloudColorHandler<PointT> &,const std::string &)' being compiled
        with
        [
            PointT=pcl::PointXYZRGB
        ]
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
Invoking "nmake" failed

Here is my CMakeLists.txt:

cmake_minimum_required(VERSION 3.0.2)
project(mkv2pcd)

find_package(PCL 1.2 REQUIRED)
find_package(catkin REQUIRED ...
(more)
edit retag flag offensive close merge delete