How to use PCL with Qt GUI

What is Qt?

Qt is a cross-platform application development frameworks for C++.
You can create applications that operate in multi environments without rewriting the source code that use functions such as GUI, Networks.

PCL with Qt GUI

The tutorial for using PCL with Qt has published in official site.
You can create rich GUI application by using Qt.

How to Build Tutorial?

However, This tutorial doesn’t work on the latest environments.
I will publish that how to build this sample program using the latest development environments.

Development Environment

I confirmed it on the following development environments.

  • Visual Studio 2015
  • PCL 1.8.0
  • VTK 7.1.0
  • Qt 5.8.0
  • CMake 3.6.1 (or later)

Build VTK with Qt (QVTK) and Generate QVTKWidgetPlugin

The VTK with Qt functions enabled is required for PCL with Qt.
In general, This is called QVTK.

You need install Qt and build QVTK.
And, You need generate QVTKWidgetPlugin and register to Qt Designer.
Please refer to following document.

Build PCL with QVTK

Then, You need build PCL using QVTK that created above step.
Please refer to following document.

At this step, set QVTK path to VTK_DIR, and check WITH_QT option in CMake congfiguration.
Incidentally, You can use 3rd-Party libraries (Boost, Eigen, FLANN, QHull, OpenNI2) other than VTK that included in PCL All-in-one Installer.

Build Sample Program

Next, You will build sample program of tutorial.

1. Fix Sample Program

You can download sample program from PCL repository.
But, This source program is written for the old environments (Qt4).
You need fix this source program.

You can download sample program that has been fixed from the following.

The fix is as follows.
All CMakeLists.txt has been re-written.
Qt Creators project file has re-written Qt major version to 5.

  • CMakeLists.txt#ALL
  • 	cmake_minimum_required( VERSION 3.6 )
    	
    	# Create Project
    	project( pcl_visualizer )
    		
    	# Set StartUp Project
    	set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "pcl_visualizer" )
    		
    	# Find PCL Package
    	set( PCL_ROOT $ENV{PCL_ROOT} )
    	find_package( PCL 1.8.0 REQUIRED )
    	
    	# Find VTK Package
    	# VTK_DIR is QVTK directory
    	set( VTK_DIR "$ENV{PCL_ROOT}/3rdParty/VTK" )
    	find_package( VTK REQUIRED )
    	
    	# Find Qt Package
    	# QTDIR is Qt directory
    	set( QTDIR $ENV{QTDIR} )
    	set( CMAKE_PREFIX_PATH ${QTDIR} )
    	find_package( Qt5Widgets REQUIRED )
    	
    	# Set Automatic MOC
    	set( CMAKE_INCLUDE_CURRENT_DIR ON )
    	set( CMAKE_AUTOMOC ON )
    	
    	# Generate MOC Code and UI Header
    	qt5_wrap_cpp( MOC pclviewer.h )
    	qt5_wrap_ui( UI_HEADER pclviewer.ui )
    
    	# Add Executable
    	add_executable( pcl_visualizer main.cpp pclviewer.h pclviewer.cpp pclviewer.ui )
    	
    	# Additional Include Directories
    	include_directories( ${PCL_INCLUDE_DIRS} )
    	include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
    	include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
    	
    	# Load VTK Settings
    	include( ${VTK_USE_FILE} )
    	
    	# Preprocessor Definitions
    	add_definitions( ${PCL_DEFINITIONS} )
    
    	# Additional Library Directories
    	link_directories( ${PCL_LIBRARY_DIRS} )
    	
    	# Additional Dependencies
    	target_link_libraries( pcl_visualizer ${PCL_LIBRARIES} ${VTK_LIBRARIES} Qt5::Widgets )
    	
  • pcl_visualizer.pro#L9
  • 	greaterThan(QT_MAJOR_VERSION, 5): QT += widgets
    	

2. Open Qt Creator Project

Launch Qt Creator and open the project file (qt_visualizer/sample/src/pcl_visualizer.pro).
Press [Configure Project] button.

Configure Project

3. Build Settings

Press [Projects] button to open the Build Settings.
You need setting as follows.

3-1. Edit Build Configuration

Select the build configuration (Debug or Release) from the pull-down menu in “Edit build configuration”.

3-2. Set Build Directory

Specify build directory (../build) in “General” > “Build directory”.
This build directory must be at the same depth as the source code directory.
It is specification of Qt Creator.

├──build
└──src
   ├── CMakeLists.txt
   ├── main.cpp
   ├── pclviewer.cpp
   ├── pclviewer.h
   ├── pclviewer.ui
   └── pcl_visualizer.pro
3-3. Set Build Steps

Set build steps to “Build Steps”.
First, delete all existing build steps.

Add two “Custom Process Step” from pull down menu.
The 1st build step is CMake commands to create project.
The 2nd build step is MSBuild commands to build project.

CMake

Command cmake
Arguments -G “Visual Studio 14 2015 Win64” ../src
(or -G “Visual Studio 14 2015” ../src)
Working directory %{buildDir}/../build
MSBuild

Command msbuild
Arguments pcl_visualizer.vcxproj /p:configuration=release
(or pcl_visualizer.vcxproj /p:configuration=debug)
Working directory %{buildDir}/../build

Build Steps for Debug
Build Steps for Release

4. Build Project

Select build configuration (Debug or Release).
Then, Build project by pressing [Build Project] button.

Edit Build Configuration
Build Project

5. Execution

Press [Run] button to execute sample program.
It is displayed as follows.

Run Sample Program


26 thoughts on “How to use PCL with Qt GUI”

  1. Thank you so much Sugiura!
    I was trying to compile this example for more or less two weeks. Yesterday, I found your tutorial and finally it is working.

  2. Hello Tsukasa,
    Thank you very much.
    I have followed your tutorials about build PCL 1.8.0 with source code (I need PCAP), and it works really well. Now I want to add QT to PCL. My question is about the version of VTK: I use VTK 7.0.0, is it necessary to use VTK 7.1.0, or VTK 7.0.0 is OK? And how to do if I need to change the version of VTK for PCL with QT.
    Thank you!
    Jim

  3. I was wondering how you would do it from scratch ( without cloning from the repo).
    Some questions I had:
    1. Where is the .pro file coming from?
    2. Should I create a new project from Qt creator and then make my directories and CMakeLists.txt?
    3. Or can I create a project with all my directories and CMakeLists.txt and then import it to Qt Creator?

    1. Hi Jay,

      I don’t know how to create a new project to use PCL using Qt Creator.
      I recommend you start develop based on sample project.
      If you want more information, I recommend you post to users forum or Qt forum.

      Q1. Where is the .pro file coming from?
      A1. It is project file of Qt Crteator. It is generated when creating a project using Qt Creator.

      Q2. Should I create a new project from Qt creator and then make my directories and CMakeLists.txt?
      A2. I don’t know, because I have never done it.

      Q3. Or can I create a project with all my directories and CMakeLists.txt and then import it to Qt Creator?
      A3. I don’t know, because I have never done it.

  4. I run it and I get the following error in Debug mode:

    QWidget: Must construct a QApplication before a QWidget

    and the following errors in Release mode:

    ERROR: In C:\VTK-8.0.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx, line 653
    vtkWin32OpenGLRenderWindow (0000000002A79780): failed to get wglChoosePixelFormatARB
    
    ERROR: In C:\VTK-8.0.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx, line 737
    vtkWin32OpenGLRenderWindow (0000000002A79780): failed to get valid pixel format.
    
    ERROR: In C:\VTK-8.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 816
    vtkWin32OpenGLRenderWindow (0000000002A79780): GLEW could not be initialized.
    

    Thank you for any help in advance.

    1. Hi Sanjin P.,

      I don’t know the cause of this error.
      Did you set VTK_RENDERING_BACKEND to OpenGL (default is OpenGL2) when configuring QVTK using CMake?

    2. I left it as OpenGL2, I will try to configure VTK again. Thank you.

  5. Hi Tsukasa,

    I am trying to build PCL 1.8.1 with VTK 8.0.0 + Qt 5.9.1 and I keep getting the following example mismatch errors in Visual Studio 2015:

    Error   LNK2038 mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in image_viewer.obj    pcl_pcd_image_viewer    C:\PCL\PCL-1.8.1\build\visualization\tools\vtkRenderingGL2PSOpenGL2-8.0.lib(vtkRenderingGL2PSOpenGL2ObjectFactory.obj)  1
    
    Error   LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in obj_rec_ransac_model_opps.obj   pcl_obj_rec_ransac_model_opps   C:\PCL\PCL-1.8.1\build\tools\vtkRenderingCore-8.0.lib(vtkRenderWindowInteractor.obj)    1
    

    I tried adding the following entries in CMake:

    _ITERATOR_DEBUG_LEVEL 0
    _HAS_ITERATOR_DEBUGGING 0
    

    It seems to have worked during one of the installation, but currently, I am unable to get rid of the errors during the installation. Are you building VTK in debug and release mode in Visual Studio. Are you building PCL in both debug and release modes in Visual Studio?
    Any hints on how to install PCL with VTK + Qt would be greatly appreciated.

    Sanjin P.

    1. Hi Sanjin Pajo,

      You may be linking VTK libraries that built with different settings.
      Perhaps, QVTK that was linked PCL, and QVTK that trying to link to your program are different VTK_RENDERING_BACKEND.
      Probably, I think it is your operation mistake.

      I have no more information other than written in this article.
      If you want more information, I recommend post to users forum.

    2. Hi Tsukasa,

      Thank you for replying, I am trying to follow the examples you have provided links for. I’ve noticed that there are inconsistencies in assigning CMake values depending on the version of the VTK, PCL and Qt. For example OPENGL_gl_LIBRARY in PCL and VTK or Modules entries across different versions of VTK. I am trying to follow the instructions to install PCL 1.8.1, that includes VTK 8.0.0 with Qt 5 and I keep getting either mismatch or rendering errors and it is hard to find the right setting or any information on what those settings mean.

      Sanjin P.

    3. Hi Sanjin Pajo,

      I think it is your operation mistake (or you’re misunderstood something), because I confirmed that can build with that combination.
      Sorry, I have no more ideas to resolve your problem. Unfortunately, I can’t further support.

    4. Hi Tsukasa,

      Thank you for the help provided. The link you have provided in the tutorial provides instructions on how to build PCL 1.8.0 without the Qt, and VTK 7.1 with Qt 5.8. It would be great if the full CMakeLists files were included in the tutorials. That way, mistakes in setting the CMake entries could be easily found.

      Sanjin P.

    5. Hi Sanjin Pajo,

      Yes. It shows how to build PCL with general configuration.
      Therefor, If you want to other configuration, You need to read it with replacing.
      I shows the part of replacement in this section.
      It is sufficient information to build PCL with QVTK.

  6. Hi,

    I the last step when using QT creater and building the sample program, I get the following error:
    error: C1083: Cannot open include file: ‘QVTKWidget.h’: No such file or directory [C:\qt_visualizer-master\sample\build\pcl_visualizer.vcxproj]

    I know that ‘QVTKWidget.h’ is present in ‘C:\Program Files (x86)\PCL\3rdParty\VTK\include\vtk-7.1’ but I do not know how to include it in the QT creater project.

    1. Hi Ali,

      It is a possible that VTK (PCL\3rdParty\VTK) is not QVTK.
      If vtkRenderingQt library is not included in your VTK library directory (PCL\3rdParty\lib), It is not QVTK.

      If you want to use PCL with Qt, You need build PCL with QVTK.
      Please confirm that again.

  7. Hello Tsukasa,

    Thanks for your guide. I’m having some troubles when running the project in Qt. For some reason, I’m getting “The program has unexpectedly finished” in Qt after I launch the program.

    The building process didn’t throw any warning or error:

    15:44:38: Running steps for project pcl_visualizer...
    15:44:38: Starting: "C:\P3D\Programs\Software\CMake-3.9.4\bin\cmake.exe" -G "Visual Studio 14 2015 Win64" ../src
    (or -G "Visual Studio 14 2015" ../src)
    -- Boost version: 1.61.0
    -- Found the following Boost libraries:
    --   system
    --   filesystem
    --   thread
    --   date_time
    --   iostreams
    --   serialization
    --   chrono
    --   atomic
    --   regex
    -- Could NOT find openni (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIRS) 
    ** WARNING ** io features related to openni will be disabled
    -- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) 
    ** WARNING ** io features related to openni2 will be disabled
    -- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
    ** WARNING ** io features related to ensenso will be disabled
    -- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
    ** WARNING ** io features related to davidSDK will be disabled
    -- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
    -- Could NOT find RSSDK (missing: _RSSDK_LIBRARIES) 
    ** WARNING ** io features related to dssdk will be disabled
    ** WARNING ** io features related to rssdk will be disabled
    ** WARNING ** io features related to pcap will be disabled
    ** WARNING ** io features related to png will be disabled
    -- Could NOT find openni (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIRS) 
    ** WARNING ** visualization features related to openni will be disabled
    -- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) 
    ** WARNING ** visualization features related to openni2 will be disabled
    -- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
    ** WARNING ** visualization features related to ensenso will be disabled
    -- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
    ** WARNING ** visualization features related to davidSDK will be disabled
    -- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
    -- Could NOT find RSSDK (missing: _RSSDK_LIBRARIES) 
    ** WARNING ** visualization features related to dssdk will be disabled
    ** WARNING ** visualization features related to rssdk will be disabled
    -- looking for PCL_COMMON
    -- looking for PCL_OCTREE
    -- looking for PCL_IO
    -- looking for PCL_KDTREE
    -- looking for PCL_SEARCH
    -- looking for PCL_SAMPLE_CONSENSUS
    -- looking for PCL_FILTERS
    -- looking for PCL_2D
    -- looking for PCL_GEOMETRY
    -- looking for PCL_FEATURES
    -- looking for PCL_ML
    -- looking for PCL_SEGMENTATION
    -- looking for PCL_VISUALIZATION
    -- looking for PCL_SURFACE
    -- looking for PCL_REGISTRATION
    -- looking for PCL_KEYPOINTS
    -- looking for PCL_TRACKING
    -- looking for PCL_RECOGNITION
    -- looking for PCL_STEREO
    -- looking for PCL_OUTOFCORE
    -- looking for PCL_PEOPLE
    -- Found PCL: optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_system-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_system-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_filesystem-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_filesystem-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_thread-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_thread-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_date_time-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_date_time-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_iostreams-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_iostreams-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_serialization-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_serialization-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_chrono-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_chrono-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_atomic-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_atomic-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_regex-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_regex-vc140-mt-gd-1_61.lib;C:/Program Files/PCL/lib/pcl_common_release.lib;C:/Program Files/PCL/lib/pcl_octree_release.lib;vtkChartsCore;vtkCommonColor;vtkCommonCore;vtksys;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkCommonExecutionModel;vtkFiltersGeneral;vtkCommonComputationalGeometry;vtkFiltersCore;vtkInfovisCore;vtkFiltersExtraction;vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkRenderingContext2D;vtkRenderingCore;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingFreeType;vtkfreetype;vtkzlib;vtkDICOMParser;vtkDomainsChemistry;vtkIOLegacy;vtkIOCore;vtkIOXMLParser;vtkexpat;vtkFiltersAMR;vtkIOXML;vtkParallelCore;vtkFiltersFlowPaths;vtkFiltersGeneric;vtkFiltersHybrid;vtkImagingSources;vtkFiltersHyperTree;vtkFiltersImaging;vtkImagingGeneral;vtkFiltersModeling;vtkFiltersParallel;vtkFiltersParallelImaging;vtkFiltersPoints;vtkFiltersProgrammable;vtkFiltersSMP;vtkFiltersSelection;vtkFiltersTexture;vtkFiltersVerdict;verdict;vtkGUISupportQt;vtkInteractionStyle;vtkRenderingOpenGL;vtkIOImage;vtkmetaio;vtkjpeg;vtkpng;vtktiff;vtkImagingHybrid;vtkGUISupportQtOpenGL;vtkGUISupportQtSQL;vtkIOSQL;vtksqlite;vtkGeovisCore;vtkInfovisLayout;vtkInteractionWidgets;vtkImagingColor;vtkRenderingAnnotation;vtkRenderingVolume;vtkViewsCore;vtkproj4;vtkIOAMR;vtkhdf5_hl;vtkhdf5;vtkIOEnSight;vtkIOExodus;vtkexoIIc;vtkNetCDF;vtkNetCDF_cxx;vtkIOExport;vtkRenderingGL2PS;vtkRenderingContextOpenGL;vtkgl2ps;vtkIOGeometry;vtkIOImport;vtkIOInfovis;vtklibxml2;vtkIOLSDyna;vtkIOMINC;vtkIOMovie;vtkoggtheora;vtkIONetCDF;vtkIOPLY;vtkIOParallel;vtkjsoncpp;vtkIOParallelXML;vtkIOTecplotTable;vtkIOVideo;vtkImagingMath;vtkImagingMorphological;vtkImagingStatistics;vtkImagingStencil;vtkInteractionImage;vtkRenderingImage;vtkRenderingLIC;vtkRenderingLOD;vtkRenderingLabel;vtkRenderingQt;vtkRenderingVolumeOpenGL;vtkViewsContext2D;vtkViewsInfovis;vtkViewsQt;C:/Program Files/PCL/lib/pcl_io_release.lib;optimized;C:/Program Files/PCL/3rdParty/FLANN/lib/flann_cpp_s.lib;debug;C:/Program Files/PCL/3rdParty/FLANN/lib/flann_cpp_s.lib;C:/Program Files/PCL/lib/pcl_kdtree_release.lib;C:/Program Files/PCL/lib/pcl_search_release.lib;C:/Program Files/PCL/lib/pcl_sample_consensus_release.lib;C:/Program Files/PCL/lib/pcl_filters_release.lib;C:/Program Files/PCL/lib/pcl_features_release.lib;C:/Program Files/PCL/lib/pcl_ml_release.lib;C:/Program Files/PCL/lib/pcl_segmentation_release.lib;C:/Program Files/PCL/lib/pcl_visualization_release.lib;optimized;C:/Program Files/PCL/3rdParty/Qhull/lib/qhullstatic.lib;debug;C:/Program Files/PCL/3rdParty/Qhull/lib/qhullstatic.lib;C:/Program Files/PCL/lib/pcl_surface_release.lib;C:/Program Files/PCL/lib/pcl_registration_release.lib;C:/Program Files/PCL/lib/pcl_keypoints_release.lib;C:/Program Files/PCL/lib/pcl_tracking_release.lib;C:/Program Files/PCL/lib/pcl_recognition_release.lib;C:/Program Files/PCL/lib/pcl_stereo_release.lib;C:/Program Files/PCL/lib/pcl_outofcore_release.lib;C:/Program Files/PCL/lib/pcl_people_release.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_system-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_system-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_filesystem-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_filesystem-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_thread-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_thread-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_date_time-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_date_time-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_iostreams-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_iostreams-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_serialization-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_serialization-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_chrono-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_chrono-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_atomic-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_atomic-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_regex-vc140-mt-1_61.lib;debug;C:/Program Files/PCL/3rdParty/Boost/lib/libboost_regex-vc140-mt-gd-1_61.lib;optimized;C:/Program Files/PCL/3rdParty/Qhull/lib/qhullstatic.lib;debug;C:/Program Files/PCL/3rdParty/Qhull/lib/qhullstatic.lib;optimized;C:/Program Files/PCL/3rdParty/FLANN/lib/flann_cpp_s.lib;debug;C:/Program Files/PCL/3rdParty/FLANN/lib/flann_cpp_s.lib;vtkChartsCore;vtkCommonColor;vtkCommonCore;vtksys;vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkCommonExecutionModel;vtkFiltersGeneral;vtkCommonComputationalGeometry;vtkFiltersCore;vtkInfovisCore;vtkFiltersExtraction;vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkRenderingContext2D;vtkRenderingCore;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingFreeType;vtkfreetype;vtkzlib;vtkDICOMParser;vtkDomainsChemistry;vtkIOLegacy;vtkIOCore;vtkIOXMLParser;vtkexpat;vtkFiltersAMR;vtkIOXML;vtkParallelCore;vtkFiltersFlowPaths;vtkFiltersGeneric;vtkFiltersHybrid;vtkImagingSources;vtkFiltersHyperTree;vtkFiltersImaging;vtkImagingGeneral;vtkFiltersModeling;vtkFiltersParallel;vtkFiltersParallelImaging;vtkFiltersPoints;vtkFiltersProgrammable;vtkFiltersSMP;vtkFiltersSelection;vtkFiltersTexture;vtkFiltersVerdict;verdict;vtkGUISupportQt;vtkInteractionStyle;vtkRenderingOpenGL;vtkIOImage;vtkmetaio;vtkjpeg;vtkpng;vtktiff;vtkImagingHybrid;vtkGUISupportQtOpenGL;vtkGUISupportQtSQL;vtkIOSQL;vtksqlite;vtkGeovisCore;vtkInfovisLayout;vtkInteractionWidgets;vtkImagingColor;vtkRenderingAnnotation;vtkRenderingVolume;vtkViewsCore;vtkproj4;vtkIOAMR;vtkhdf5_hl;vtkhdf5;vtkIOEnSight;vtkIOExodus;vtkexoIIc;vtkNetCDF;vtkNetCDF_cxx;vtkIOExport;vtkRenderingGL2PS;vtkRenderingContextOpenGL;vtkgl2ps;vtkIOGeometry;vtkIOImport;vtkIOInfovis;vtklibxml2;vtkIOLSDyna;vtkIOMINC;vtkIOMovie;vtkoggtheora;vtkIONetCDF;vtkIOPLY;vtkIOParallel;vtkjsoncpp;vtkIOParallelXML;vtkIOTecplotTable;vtkIOVideo;vtkImagingMath;vtkImagingMorphological;vtkImagingStatistics;vtkImagingStencil;vtkInteractionImage;vtkRenderingImage;vtkRenderingLIC;vtkRenderingLOD;vtkRenderingLabel;vtkRenderingQt;vtkRenderingVolumeOpenGL;vtkViewsContext2D;vtkViewsInfovis;vtkViewsQt (Required is at least version "1.8.0") 
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/P3D/Code/p3d-util/build
    15:44:39: The process "C:\P3D\Programs\Software\CMake-3.9.4\bin\cmake.exe" exited normally.
    15:44:39: Starting: "C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.exe" pcl_visualizer.vcxproj /p:configuration=release
    (or pcl_visualizer.vcxproj /p:configuration=debug)
    Microsoft (R) Build Engine version 14.0.25420.1
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    Build started 10/18/2017 3:44:39 PM.
    Project "C:\P3D\Code\p3d-util\build\pcl_visualizer.vcxproj" on node 1 (default targets).
    Project "C:\P3D\Code\p3d-util\build\pcl_visualizer.vcxproj" (1) is building "C:\P3D\Code\p3d-util\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
    InitializeBuildStatus:
      Creating "x64\release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    CustomBuild:
      All outputs are up-to-date.
    FinalizeBuildStatus:
      Deleting file "x64\release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
      Touching "x64\release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
    Done Building Project "C:\P3D\Code\p3d-util\build\ZERO_CHECK.vcxproj" (default targets).
    InitializeBuildStatus:
      Creating "pcl_visualizer.dir\Release\pcl_visualizer.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    PreBuildEvent:
      Description: Automatic MOC for target pcl_visualizer
      setlocal
      cd C:\P3D\Code\p3d-util\build
      if %errorlevel% neq 0 goto :cmEnd
      C:
      if %errorlevel% neq 0 goto :cmEnd
      C:\P3D\Programs\Software\CMake-3.9.4\bin\cmake.exe -E cmake_autogen C:/P3D/Code/p3d-util/build/CMakeFiles/pcl_visualizer_autogen.dir Release
      if %errorlevel% neq 0 goto :cmEnd
      :cmEnd
      endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
      :cmErrorLevel
      exit /b %1
      :cmDone
      if %errorlevel% neq 0 goto :VCEnd
      :VCEnd
      Generating MOC source EWIEGA46WW/moc_pclviewer.cpp
    CustomBuild:
      All outputs are up-to-date.
    ClCompile:
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\P3D\Code\p3d-util\build" /I"C:\P3D\Code\p3d-util\src" /I"C:\P3D\Code\p3d-util\build\pcl_visualizer_autogen\include" /I"C:\Program Files\VTK\include\vtk-7.1" /I"C:\Program Files\PCL\include\pcl-1.8" /I"C:\Program Files\PCL\3rdParty\Eigen\eigen3" /I"C:\Program Files\PCL\3rdParty\Boost\include\boost-1_61" /I"C:\Program Files\PCL\3rdParty\FLANN\include" /I"C:\Program Files\PCL\3rdParty\Qhull\include" /I"C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\include" /I"C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\include\QtWidgets" /I"C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\include\QtGui" /I"C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\include\QtANGLE" /I"C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\include\QtCore" /I"C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64.\mkspecs\win32-msvc2015" /I"C:\Program Files\VTK\include" /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D <strong>SSSE3</strong> /D <strong>SSE2</strong> /D <strong>SSE</strong> /D "vtkRenderingContext2D_AUTOINIT=1(vtkRenderingContextOpenGL)" /D "vtkRenderingCore_INCLUDE=\"C:/P3D/Code/p3d-util/build/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL.h\"" /D "vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL)" /D BOOST_ALL_NO_LIB /D DISABLE_OPENNI /D DISABLE_OPENNI2 /D DISABLE_ENSENSO /D DISABLE_DAVIDSDK /D DISABLE_DSSDK /D DISABLE_RSSDK /D DISABLE_PCAP /D DISABLE_PNG /D FLANN_STATIC /D QT_WIDGETS_LIB /D QT_GUI_LIB /D QT_CORE_LIB /D QT_NO_DEBUG /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"pcl_visualizer.dir\Release\" /Fd"pcl_visualizer.dir\Release\vc140.pdb" /Gd /TP /errorReport:queue "C:\P3D\Code\p3d-util\src\main.cpp" "C:\P3D\Code\p3d-util\src\pclviewer.cpp" "C:\P3D\Code\p3d-util\build\pcl_visualizer_autogen\mocs_compilation.cpp"
      main.cpp
      pclviewer.cpp
      mocs_compilation.cpp
      Generating Code...
    Link:
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\P3D\Code\p3d-util\build\Release\pcl_visualizer.exe" /INCREMENTAL:NO /NOLOGO "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_system-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_filesystem-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_thread-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_date_time-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_iostreams-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_serialization-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_chrono-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_atomic-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_regex-vc140-mt-1_61.lib" "C:\Program Files\PCL\lib\pcl_common_release.lib" "C:\Program Files\PCL\lib\pcl_octree_release.lib" "C:\Program Files\VTK\lib\vtksqlite-7.1.lib" "C:\Program Files\PCL\lib\pcl_io_release.lib" "C:\Program Files\PCL\3rdParty\FLANN\lib\flann_cpp_s.lib" "C:\Program Files\PCL\lib\pcl_kdtree_release.lib" "C:\Program Files\PCL\lib\pcl_search_release.lib" "C:\Program Files\PCL\lib\pcl_sample_consensus_release.lib" "C:\Program Files\PCL\lib\pcl_filters_release.lib" "C:\Program Files\PCL\lib\pcl_features_release.lib" "C:\Program Files\PCL\lib\pcl_ml_release.lib" "C:\Program Files\PCL\lib\pcl_segmentation_release.lib" "C:\Program Files\PCL\lib\pcl_visualization_release.lib" "C:\Program Files\PCL\3rdParty\Qhull\lib\qhullstatic.lib" "C:\Program Files\PCL\lib\pcl_surface_release.lib" "C:\Program Files\PCL\lib\pcl_registration_release.lib" "C:\Program Files\PCL\lib\pcl_keypoints_release.lib" "C:\Program Files\PCL\lib\pcl_tracking_release.lib" "C:\Program Files\PCL\lib\pcl_recognition_release.lib" "C:\Program Files\PCL\lib\pcl_stereo_release.lib" "C:\Program Files\PCL\lib\pcl_outofcore_release.lib" "C:\Program Files\PCL\lib\pcl_people_release.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_system-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_filesystem-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_thread-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_date_time-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_iostreams-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_serialization-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_chrono-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_atomic-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Boost\lib\libboost_regex-vc140-mt-1_61.lib" "C:\Program Files\PCL\3rdParty\Qhull\lib\qhullstatic.lib" "C:\Program Files\PCL\3rdParty\FLANN\lib\flann_cpp_s.lib" "C:\Program Files\VTK\lib\vtksqlite-7.1.lib" "C:\Program Files\VTK\lib\vtkDomainsChemistry-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersFlowPaths-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersGeneric-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersHyperTree-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersParallelImaging-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersPoints-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersProgrammable-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersSMP-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersSelection-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersVerdict-7.1.lib" "C:\Program Files\VTK\lib\vtkverdict-7.1.lib" "C:\Program Files\VTK\lib\vtkGUISupportQtOpenGL-7.1.lib" "C:\Program Files\VTK\lib\vtkGUISupportQtSQL-7.1.lib" "C:\Program Files\VTK\lib\vtkIOSQL-7.1.lib" "C:\Program Files\VTK\lib\vtksqlite-7.1.lib" "C:\Program Files\VTK\lib\vtkGeovisCore-7.1.lib" "C:\Program Files\VTK\lib\vtkproj4-7.1.lib" "C:\Program Files\VTK\lib\vtkIOAMR-7.1.lib" "C:\Program Files\VTK\lib\vtkIOEnSight-7.1.lib" "C:\Program Files\VTK\lib\vtkIOExodus-7.1.lib" "C:\Program Files\VTK\lib\vtkIOExport-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingGL2PS-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingContextOpenGL-7.1.lib" "C:\Program Files\VTK\lib\vtkgl2ps-7.1.lib" "C:\Program Files\VTK\lib\vtkIOImport-7.1.lib" "C:\Program Files\VTK\lib\vtkIOInfovis-7.1.lib" "C:\Program Files\VTK\lib\vtklibxml2-7.1.lib" "C:\Program Files\VTK\lib\vtkIOLSDyna-7.1.lib" "C:\Program Files\VTK\lib\vtkIOMINC-7.1.lib" "C:\Program Files\VTK\lib\vtkIOMovie-7.1.lib" "C:\Program Files\VTK\lib\vtkoggtheora-7.1.lib" "C:\Program Files\VTK\lib\vtkIOPLY-7.1.lib" "C:\Program Files\VTK\lib\vtkIOParallel-7.1.lib" "C:\Program Files\VTK\lib\vtkjsoncpp-7.1.lib" "C:\Program Files\VTK\lib\vtkIOParallelXML-7.1.lib" "C:\Program Files\VTK\lib\vtkIOTecplotTable-7.1.lib" "C:\Program Files\VTK\lib\vtkIOVideo-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingMath-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingMorphological-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingStatistics-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingStencil-7.1.lib" "C:\Program Files\VTK\lib\vtkInteractionImage-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingImage-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingLIC-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingLOD-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingQt-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingVolumeOpenGL-7.1.lib" "C:\Program Files\VTK\lib\vtkViewsContext2D-7.1.lib" "C:\Program Files\VTK\lib\vtkViewsQt-7.1.lib" "C:\Program Files\PCL\lib\pcl_common_release.lib" "C:\Program Files\PCL\lib\pcl_octree_release.lib" "C:\Program Files\PCL\lib\pcl_io_release.lib" "C:\Program Files\PCL\lib\pcl_kdtree_release.lib" "C:\Program Files\PCL\lib\pcl_search_release.lib" "C:\Program Files\PCL\lib\pcl_sample_consensus_release.lib" "C:\Program Files\PCL\lib\pcl_filters_release.lib" "C:\Program Files\PCL\lib\pcl_features_release.lib" "C:\Program Files\PCL\lib\pcl_ml_release.lib" "C:\Program Files\PCL\lib\pcl_segmentation_release.lib" "C:\Program Files\PCL\lib\pcl_visualization_release.lib" "C:\Program Files\PCL\lib\pcl_surface_release.lib" "C:\Program Files\PCL\lib\pcl_registration_release.lib" "C:\Program Files\PCL\lib\pcl_keypoints_release.lib" "C:\Program Files\PCL\lib\pcl_tracking_release.lib" "C:\Program Files\PCL\lib\pcl_recognition_release.lib" "C:\Program Files\PCL\lib\pcl_stereo_release.lib" "C:\Program Files\PCL\lib\pcl_outofcore_release.lib" "C:\Program Files\PCL\lib\pcl_people_release.lib" "C:\Program Files\VTK\lib\vtkFiltersAMR-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersParallel-7.1.lib" "C:\Program Files\VTK\lib\vtkexoIIc-7.1.lib" "C:\Program Files\VTK\lib\vtkIOGeometry-7.1.lib" "C:\Program Files\VTK\lib\vtkIONetCDF-7.1.lib" "C:\Program Files\VTK\lib\vtkNetCDF_cxx-7.1.lib" "C:\Program Files\VTK\lib\vtkNetCDF-7.1.lib" "C:\Program Files\VTK\lib\vtkhdf5_hl-7.1.lib" "C:\Program Files\VTK\lib\vtkhdf5-7.1.lib" "C:\Program Files\VTK\lib\vtkParallelCore-7.1.lib" "C:\Program Files\VTK\lib\vtkIOLegacy-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersTexture-7.1.lib" "C:\Program Files\VTK\lib\vtkGUISupportQt-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingOpenGL-7.1.lib" "C:\Program Files\VTK\lib\vtkViewsInfovis-7.1.lib" "C:\Program Files\VTK\lib\vtkChartsCore-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingContext2D-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersImaging-7.1.lib" "C:\Program Files\VTK\lib\vtkInfovisLayout-7.1.lib" "C:\Program Files\VTK\lib\vtkInfovisCore-7.1.lib" "C:\Program Files\VTK\lib\vtkViewsCore-7.1.lib" "C:\Program Files\VTK\lib\vtkInteractionWidgets-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersHybrid-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingGeneral-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingSources-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersModeling-7.1.lib" "C:\Program Files\VTK\lib\vtkInteractionStyle-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersExtraction-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersStatistics-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingFourier-7.1.lib" "C:\Program Files\VTK\lib\vtkalglib-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingHybrid-7.1.lib" "C:\Program Files\VTK\lib\vtkIOImage-7.1.lib" "C:\Program Files\VTK\lib\vtkDICOMParser-7.1.lib" "C:\Program Files\VTK\lib\vtkmetaio-7.1.lib" comctl32.lib wsock32.lib "C:\Program Files\VTK\lib\vtkpng-7.1.lib" "C:\Program Files\VTK\lib\vtktiff-7.1.lib" "C:\Program Files\VTK\lib\vtkjpeg-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingAnnotation-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingColor-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingVolume-7.1.lib" "C:\Program Files\VTK\lib\vtkImagingCore-7.1.lib" "C:\Program Files\VTK\lib\vtkIOXML-7.1.lib" "C:\Program Files\VTK\lib\vtkIOXMLParser-7.1.lib" "C:\Program Files\VTK\lib\vtkIOCore-7.1.lib" "C:\Program Files\VTK\lib\vtkexpat-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingLabel-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingFreeType-7.1.lib" "C:\Program Files\VTK\lib\vtkRenderingCore-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonColor-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersGeometry-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersSources-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersGeneral-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonComputationalGeometry-7.1.lib" "C:\Program Files\VTK\lib\vtkFiltersCore-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonExecutionModel-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonDataModel-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonTransforms-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonMisc-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonMath-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonSystem-7.1.lib" "C:\Program Files\VTK\lib\vtkCommonCore-7.1.lib" "C:\Program Files\VTK\lib\vtksys-7.1.lib" ws2_32.lib Psapi.lib "C:\Program Files\VTK\lib\vtkfreetype-7.1.lib" "C:\Program Files\VTK\lib\vtkzlib-7.1.lib" "C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\lib\Qt5Widgets.lib" "C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\lib\Qt5Gui.lib" "C:\P3D\Programs\Software\Qt-5.8.0\5.8\msvc2015_64\lib\Qt5Core.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/P3D/Code/p3d-util/build/Release/pcl_visualizer.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/P3D/Code/p3d-util/build/Release/pcl_visualizer.lib" /MACHINE:X64  /machine:x64 pcl_visualizer.dir\Release\main.obj
      pcl_visualizer.dir\Release\pclviewer.obj
      pcl_visualizer.dir\Release\mocs_compilation.obj
      pcl_visualizer.vcxproj -> C:\P3D\Code\p3d-util\build\Release\pcl_visualizer.exe
    FinalizeBuildStatus:
      Deleting file "pcl_visualizer.dir\Release\pcl_visualizer.tlog\unsuccessfulbuild".
      Touching "pcl_visualizer.dir\Release\pcl_visualizer.tlog\pcl_visualizer.lastbuildstate".
    Done Building Project "C:\P3D\Code\p3d-util\build\pcl_visualizer.vcxproj" (default targets).
    
    Build succeeded.
        0 Warning(s)
        0 Error(s)
    
    Time Elapsed 00:00:23.64
    15:45:03: The process "C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.exe" exited normally.
    15:45:03: Elapsed time: 00:25.
    
    1. I finally got this to work!!! Thanks so much for your work man <3

  8. I have been able to compile and run s according to your tutorial in Release mode from qt creator IDE. However, in Debug mode when trying to run it in the debugger (cdb under qt creator) I get an exception:

    The inferior stopped because it triggered an exception:
    Stopped in thread 0 by: execution at 0x7fff95818238, code 0xc0000005: read access violation at 0x0, flags 0x0 (first chance)

    It stops on line 296 of pcl_visualizer.hpp when execuiting this code:
    polydata->SetPoints (points);

    I have both normal vtkxxx.dll ‘s and vtkxxx-gd.dll ‘s in the C:\Program Files\VTK\bin directory (in the same directory).

    (When I try to run the debug version pcl_visualizer.exe from command line it says the code execution cannot proceed because Qt5Widgetsd.dll was not found. It also complains that it cant find Qt5guid.dll and Qt5cored.dll

    When i try to run the release version from the command line it crashes.

    However as mentioned inside qtcreator the release version runs ok)

    Please give some suggestions. Is there a dll mixup problem?

    1. Hi Mike,

      I tried qt_visualizer tutorial with latest version PCL (and 3rdParty, Qt), but it works successfully.
      Probably, I think you have wrong some settings.

  9. hi Tsukasa Sugiura
    i building pcl.
    in entry FlANN_LIBRARY
    i can not find flann_cpp_s.lib in flann/lib. it just have flann_cpp_s-gd.lib.
    what should i choose? thanks

    1. Hi tourist,

      Probably, You built FLANN with only debug configuration.
      You need build FLANN with debug configuration (flann_cpp_s-gd.lib) and release configuration (flann_cpp_s.lib).

  10. Hello Tsukasa,
    when i build QVTK(VTK7+Qt5) with Visual Studio i dont see the following
    Ungrouped Entries at the cmake. Should I add them?

    QT_QMAKE_EXECUTABLE C:/Qt/Qt5.8.0/5.8/msvc2015_64/bin/qmake.exe (or C:/Qt/Qt5.8.0/5.8/msvc2015/bin/qmake.exe)
    Qt5_DIR C:/Qt/Qt5.8.0/5.8/msvc2015_64/lib/cmake/Qt5 (or C:/Qt/Qt5.8.0/5.8/msvc2015/lib/cmake/Qt5)
    Qt5Core_DIR C:/Qt/Qt5.8.0/5.8/msvc2015_64/lib/cmake/Qt5Core (or C:/Qt/Qt5.8.0/5.8/msvc2015/lib/cmake/Qt5Core)
    Qt5Gui_DIR C:/Qt/Qt5.8.0/5.8/msvc2015_64/lib/cmake/Qt5Gui (or C:/Qt/Qt5.8.0/5.8/msvc2015/lib/cmake/Qt5Gui)
    Qt5OpenGL_DIR C:/Qt/Qt5.8.0/5.8/msvc2015_64/lib/cmake/Qt5OpenGL (or C:/Qt/Qt5.8.0/5.8/msvc2015/lib/cmake/Qt5OpenGL)
    Qt5Sql_DIR C:/Qt/Qt5.8.0/5.8/msvc2015_64/lib/cmake/Qt5Sql (or C:/Qt/Qt5.8.0/5.8/msvc2015/lib/cmake/Qt5Sql)
    Qt5Widgets_DIR C:/Qt/Qt5.8.0/5.8/msvc2015_64/lib/cmake/Qt5Widgets (or C:/Qt/Qt5.8.0/5.8/msvc2015/lib/cmake/Qt5Widgets)

    and also In the VTK I cant see the following:
    VTK_QT_VERSION 5
    should I add it too?

    Many thanks

    1. Hi Lucas,

      I can’t determine the cause, because the information provided from you is inadequate.
      The general mistakes that I can think, and advices to solve it are as follows.

      • Please check VTK_Group_Qt. And, Press [Configure] button to display Qt related settings.
      • Please confirm that the Generator specified in CMake is compatible with the libraries.
        (If you want to build for x64, Please specify generator “Visual Studio XX 20YY Win64” in CMake.)
  11. Hello Tsukasa Sugiura,
    I just started building this pcvisualizer example and found certain errors from the custom steps you mentioned. I am not able to understand those and hence would like to know whether I’ve missed any steps.

    Following is the error.

    15:20:53: Running steps for project pcl_visualizer...
    15:20:53: Starting: "C:\Program Files\CMake\bin\cmake.exe" ../src
    -- Boost version: 1.64.0
    -- Found the following Boost libraries:
    --   system
    --   filesystem
    --   thread
    --   date_time
    --   iostreams
    --   serialization
    --   chrono
    --   atomic
    --   regex
    -- Could NOT find openni (missing: OPENNI_LIBRARY) 
    ** WARNING ** io features related to openni will be disabled
    -- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
    ** WARNING ** io features related to ensenso will be disabled
    -- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
    ** WARNING ** io features related to davidSDK will be disabled
    -- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
    ** WARNING ** io features related to dssdk will be disabled
    -- Could NOT find RSSDK (missing: _RSSDK_LIBRARIES) 
    ** WARNING ** io features related to rssdk will be disabled
    ** WARNING ** io features related to pcap will be disabled
    ** WARNING ** io features related to png will be disabled
    CMake Warning at C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:497 (find_package):
      Could not find a configuration file for package "VTK" that is compatible
      with requested version "".
    
    The following configuration files were considered but not accepted:
    
    <code>C:/Program Files/PCL 1.8.1/3rdParty/VTK/lib/cmake/vtk-8.0/VTKConfig.cmake, version: 8.0.0 (64bit)
    </code>
    
    Call Stack (most recent call first):
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:652 (find_VTK)
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:841 (find_external_library)
      CMakeLists.txt:11 (find_package)
    
    ** WARNING ** io features related to vtk will be disabled
    CMake Warning at C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:497 (find_package):
      Could not find a configuration file for package "VTK" that is compatible
      with requested version "".
    
    The following configuration files were considered but not accepted:
    
    <code>C:/Program Files/PCL 1.8.1/3rdParty/VTK/lib/cmake/vtk-8.0/VTKConfig.cmake, version: 8.0.0 (64bit)
    </code>
    
    Call Stack (most recent call first):
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:652 (find_VTK)
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:841 (find_external_library)
      CMakeLists.txt:11 (find_package)
    
    ** WARNING ** 2d features related to vtk will be disabled
    -- Could NOT find openni (missing: OPENNI_LIBRARY) 
    ** WARNING ** visualization features related to openni will be disabled
    -- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
    ** WARNING ** visualization features related to ensenso will be disabled
    -- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
    ** WARNING ** visualization features related to davidSDK will be disabled
    -- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
    ** WARNING ** visualization features related to dssdk will be disabled
    -- Could NOT find RSSDK (missing: _RSSDK_LIBRARIES) 
    ** WARNING ** visualization features related to rssdk will be disabled
    CMake Warning at C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:497 (find_package):
      Could not find a configuration file for package "VTK" that is compatible
      with requested version "".
    
    The following configuration files were considered but not accepted:
    
    <code>C:/Program Files/PCL 1.8.1/3rdParty/VTK/lib/cmake/vtk-8.0/VTKConfig.cmake, version: 8.0.0 (64bit)
    </code>
    
    Call Stack (most recent call first):
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:652 (find_VTK)
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:844 (find_external_library)
      CMakeLists.txt:11 (find_package)
    
    CMake Error at C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:44 (message):
      visualization is required but vtk was not found
    Call Stack (most recent call first):
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:683 (pcl_report_not_found)
      C:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:844 (find_external_library)
      CMakeLists.txt:11 (find_package)
    
    -- Configuring incomplete, errors occurred!
    See also "D:/uvmoreworkspace/workpocs/PCL1.8.1/PCLVisualiser/qt_visualizer-master/sample/build/CMakeFiles/CMakeOutput.log".
    See also "D:/uvmoreworkspace/workpocs/PCL1.8.1/PCLVisualiser/qt_visualizer-master/sample/build/CMakeFiles/CMakeError.log".
    15:20:57: The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1.
    Error while building/deploying project pcl_visualizer (kit: Qt 5.7.0 (msvc2015_64))
    When executing step "Custom Process Step"
    
    1. Hi Uday More,

      If you want to use PCL with Qt, You can’t use pre-built PCL that installed using PCL All-in-one Installer.
      You need to build PCL and QVTK from source code yourself.
      Do you read these sections (Build QVTK, Build PCL)?

Leave a Reply

Your email address will not be published. Required fields are marked *