From e7b3a7735d5f81f9a829c674eab8cbe5524a23b1 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 5 Apr 2019 20:51:57 -0400 Subject: [PATCH] Parameters.cpp: fixed build without VTK --- corelib/src/Parameters.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/corelib/src/Parameters.cpp b/corelib/src/Parameters.cpp index b72633a2..955c46d0 100644 --- a/corelib/src/Parameters.cpp +++ b/corelib/src/Parameters.cpp @@ -40,7 +40,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "SimpleIni.h" #include #include +#ifndef DISABLE_VTK #include +#endif namespace rtabmap { @@ -570,8 +572,12 @@ ParametersMap Parameters::parseArguments(int argc, char * argv[], bool onlyParam std::cout << str << std::setw(spacing - str.size()) << RTABMAP_VERSION << std::endl; str = "PCL:"; std::cout << str << std::setw(spacing - str.size()) << PCL_VERSION_PRETTY << std::endl; - str = "VTK:"; + str = "With VTK:"; +#ifndef DISABLE_VTK std::cout << str << std::setw(spacing - str.size()) << vtkVersion::GetVTKVersion() << std::endl; +#else + std::cout << str << std::setw(spacing - str.size()) << "false" << std::endl; +#endif str = "OpenCV:"; std::cout << str << std::setw(spacing - str.size()) << CV_VERSION << std::endl; str = "With OpenCV nonfree:";