Rk_GuiTool软件开发环境配置
软件版本:
本文使用了QT5.12 VTK8.1.0 PCL1.9.1 boost1.68.0 VS2017 Cmake3.22.1配置开发环境
1.安装PCL1.9.1
注意事项:
1.安装路径尽量不要出现空格(QT可能会出现不识别空格路径的情况),建议路径:C:PCL1.9.1
2.PCL安装时会提示安装OpenNI2,安装路径可以选择PCL的第三方库,即C:\PCL1.9.1\3rdParty\OpenNI2
2.编译VTK8.1.0
1.cmake编译生成intsll sln工程文件
2.vs2017编译
debug模式下,右击ALLBUILD,点击生成,等待,然后右击INSTALL,点击生成;
release模式同上。
注意事项:
1.debug文件加尾标以区分release
2.勾选GROUP_QT
3.不要勾选TESING(这个需要VTKDATA文件)
4.勾选opengl
3.安装vs qt tools
4.vs2017配置
打开属性管理器,分别在debug和release下创建属性表,然后对属性表进行配置,其中大部分配置相同只有依赖项的导入不同,以debug为例介绍
1.VC++目录->包含目录
C:\PCL1.9.1\3rdParty\OpenNI2\Include;
C:\PCL1.9.1\include\pcl-1.9;
C:\PCL1.9.1\3rdParty\VTK\include\vtk-8.1;
C:\PCL1.9.1\3rdParty\Qhull\include;
C:\PCL1.9.1\3rdParty\FLANN\include;
C:\PCL1.9.1\3rdParty\Eigen\eigen3;
C:\PCL1.9.1\3rdParty\Boost\include\boost-1_68;
2.VC++目录->库目录
C:\PCL1.9.1\3rdParty\Qhull\lib;
C:\PCL1.9.1\3rdParty\FLANN\lib;
C:\PCL1.9.1\3rdParty\Boost\lib;
C:\PCL1.9.1\lib;
C:\PCL1.9.1\3rdParty\OpenNI2\Lib;
C:\PCL1.9.1\3rdParty\VTK\lib;
3.C/C++->预处理器->预处理器定义
CRT_SECURE_NO_WARNINGS;
SCL_SECURE_NO_WARNINGS;
_SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING;
4.连接器->输入->附加依赖项
注意事项:建议重新获取文件名(批量获取代码和分离debug和release代码放在文末)
1.debug文件
pcl_common_debug.lib pcl_features_debug.lib pcl_filters_debug.lib pcl_io_debug.lib pcl_io_ply_release.lib pcl_kdtree_debug.lib pcl_keypoints_debug.lib pcl_ml_debug.lib pcl_octree_debug.lib pcl_outofcore_debug.lib pcl_people_debug.lib pcl_recognition_debug.lib pcl_registration_debug.lib pcl_sample_consensus_debug.lib pcl_search_debug.lib pcl_segmentation_debug.lib pcl_stereo_debug.lib pcl_surface_debug.lib pcl_tracking_debug.lib pcl_visualization_debug.lib pcl_common_debug.lib pcl_features_debug.lib pcl_filters_debug.lib pcl_io_debug.lib pcl_io_ply_release.lib pcl_kdtree_debug.lib pcl_keypoints_debug.lib pcl_ml_debug.lib pcl_octree_debug.lib pcl_outofcore_debug.lib pcl_people_debug.lib pcl_recognition_debug.lib pcl_registration_debug.lib pcl_sample_consensus_debug.lib pcl_search_debug.lib pcl_segmentation_debug.lib pcl_stereo_debug.lib pcl_surface_debug.lib pcl_tracking_debug.lib pcl_visualization_debug.lib
vtkalglib-8.1-gd.lib vtkChartsCore-8.1-gd.lib vtkCommonColor-8.1-gd.lib vtkCommonComputationalGeometry-8.1-gd.lib vtkCommonCore-8.1-gd.lib vtkCommonDataModel-8.1-gd.lib vtkCommonExecutionModel-8.1-gd.lib vtkCommonMath-8.1-gd.lib vtkCommonMisc-8.1-gd.lib vtkCommonSystem-8.1-gd.lib vtkCommonTransforms-8.1-gd.lib vtkDICOMParser-8.1-gd.lib vtkDomainsChemistry-8.1-gd.lib vtkDomainsChemistryOpenGL2-8.1-gd.lib vtkexoIIc-8.1-gd.lib vtkexpat-8.1-gd.lib vtkFiltersAMR-8.1-gd.lib vtkFiltersCore-8.1-gd.lib vtkFiltersExtraction-8.1-gd.lib vtkFiltersFlowPaths-8.1-gd.lib vtkFiltersGeneral-8.1-gd.lib vtkFiltersGeneric-8.1-gd.lib vtkFiltersGeometry-8.1-gd.lib vtkFiltersHybrid-8.1-gd.lib vtkFiltersHyperTree-8.1-gd.lib vtkFiltersImaging-8.1-gd.lib vtkFiltersModeling-8.1-gd.lib vtkFiltersParallel-8.1-gd.lib vtkFiltersParallelImaging-8.1-gd.lib vtkFiltersPoints-8.1-gd.lib vtkFiltersProgrammable-8.1-gd.lib vtkFiltersSelection-8.1-gd.lib vtkFiltersSMP-8.1-gd.lib vtkFiltersSources-8.1-gd.lib vtkFiltersStatistics-8.1-gd.lib vtkFiltersTexture-8.1-gd.lib vtkFiltersTopology-8.1-gd.lib vtkFiltersVerdict-8.1-gd.lib vtkfreetype-8.1-gd.lib vtkGeovisCore-8.1-gd.lib vtkgl2ps-8.1-gd.lib vtkglew-8.1-gd.lib vtkGUISupportQt-8.1-gd.lib vtkGUISupportQtSQL-8.1-gd.lib vtkhdf5-8.1-gd.lib vtkhdf5_hl-8.1-gd.lib vtkImagingColor-8.1-gd.lib vtkImagingCore-8.1-gd.lib vtkImagingFourier-8.1-gd.lib vtkImagingGeneral-8.1-gd.lib vtkImagingHybrid-8.1-gd.lib vtkImagingMath-8.1-gd.lib vtkImagingMorphological-8.1-gd.lib vtkImagingSources-8.1-gd.lib vtkImagingStatistics-8.1-gd.lib vtkImagingStencil-8.1-gd.lib vtkInfovisCore-8.1-gd.lib vtkInfovisLayout-8.1-gd.lib vtkInteractionImage-8.1-gd.lib vtkInteractionStyle-8.1-gd.lib vtkInteractionWidgets-8.1-gd.lib vtkIOAMR-8.1-gd.lib vtkIOCore-8.1-gd.lib vtkIOEnSight-8.1-gd.lib vtkIOExodus-8.1-gd.lib vtkIOExport-8.1-gd.lib vtkIOExportOpenGL2-8.1-gd.lib vtkIOGeometry-8.1-gd.lib vtkIOImage-8.1-gd.lib vtkIOImport-8.1-gd.lib vtkIOInfovis-8.1-gd.lib vtkIOLegacy-8.1-gd.lib vtkIOLSDyna-8.1-gd.lib vtkIOMINC-8.1-gd.lib vtkIOMovie-8.1-gd.lib vtkIONetCDF-8.1-gd.lib vtkIOParallel-8.1-gd.lib vtkIOParallelXML-8.1-gd.lib vtkIOPLY-8.1-gd.lib vtkIOSQL-8.1-gd.lib vtkIOTecplotTable-8.1-gd.lib vtkIOVideo-8.1-gd.lib vtkIOXML-8.1-gd.lib vtkIOXMLParser-8.1-gd.lib vtkjpeg-8.1-gd.lib vtkjsoncpp-8.1-gd.lib vtklibharu-8.1-gd.lib vtklibxml2-8.1-gd.lib vtklz4-8.1-gd.lib vtkmetaio-8.1-gd.lib vtkNetCDF-8.1-gd.lib vtknetcdfcpp-8.1-gd.lib vtkoggtheora-8.1-gd.lib vtkParallelCore-8.1-gd.lib vtkpng-8.1-gd.lib vtkproj4-8.1-gd.lib vtkRenderingAnnotation-8.1-gd.lib vtkRenderingContext2D-8.1-gd.lib vtkRenderingContextOpenGL2-8.1-gd.lib vtkRenderingCore-8.1-gd.lib vtkRenderingFreeType-8.1-gd.lib vtkRenderingGL2PSOpenGL2-8.1-gd.lib vtkRenderingImage-8.1-gd.lib vtkRenderingLabel-8.1-gd.lib vtkRenderingLOD-8.1-gd.lib vtkRenderingOpenGL2-8.1-gd.lib vtkRenderingQt-8.1-gd.lib vtkRenderingVolume-8.1-gd.lib vtkRenderingVolumeOpenGL2-8.1-gd.lib vtksqlite-8.1-gd.lib vtksys-8.1-gd.lib vtktiff-8.1-gd.lib vtkverdict-8.1-gd.lib vtkViewsContext2D-8.1-gd.lib vtkViewsCore-8.1-gd.lib vtkViewsInfovis-8.1-gd.lib vtkViewsQt-8.1-gd.lib vtkzlib-8.1-gd.lib vtkalglib-8.1-gd.lib vtkChartsCore-8.1-gd.lib vtkCommonColor-8.1-gd.lib vtkCommonComputationalGeometry-8.1-gd.lib vtkCommonCore-8.1-gd.lib vtkCommonDataModel-8.1-gd.lib vtkCommonExecutionModel-8.1-gd.lib vtkCommonMath-8.1-gd.lib vtkCommonMisc-8.1-gd.lib vtkCommonSystem-8.1-gd.lib vtkCommonTransforms-8.1-gd.lib vtkDICOMParser-8.1-gd.lib vtkDomainsChemistry-8.1-gd.lib vtkDomainsChemistryOpenGL2-8.1-gd.lib vtkexoIIc-8.1-gd.lib vtkexpat-8.1-gd.lib vtkFiltersAMR-8.1-gd.lib vtkFiltersCore-8.1-gd.lib vtkFiltersExtraction-8.1-gd.lib vtkFiltersFlowPaths-8.1-gd.lib vtkFiltersGeneral-8.1-gd.lib vtkFiltersGeneric-8.1-gd.lib vtkFiltersGeometry-8.1-gd.lib vtkFiltersHybrid-8.1-gd.lib vtkFiltersHyperTree-8.1-gd.lib vtkFiltersImaging-8.1-gd.lib vtkFiltersModeling-8.1-gd.lib vtkFiltersParallel-8.1-gd.lib vtkFiltersParallelImaging-8.1-gd.lib vtkFiltersPoints-8.1-gd.lib vtkFiltersProgrammable-8.1-gd.lib vtkFiltersSelection-8.1-gd.lib vtkFiltersSMP-8.1-gd.lib vtkFiltersSources-8.1-gd.lib vtkFiltersStatistics-8.1-gd.lib vtkFiltersTexture-8.1-gd.lib vtkFiltersTopology-8.1-gd.lib vtkFiltersVerdict-8.1-gd.lib vtkfreetype-8.1-gd.lib vtkGeovisCore-8.1-gd.lib vtkgl2ps-8.1-gd.lib vtkglew-8.1-gd.lib vtkGUISupportQt-8.1-gd.lib vtkGUISupportQtSQL-8.1-gd.lib vtkhdf5-8.1-gd.lib vtkhdf5_hl-8.1-gd.lib vtkImagingColor-8.1-gd.lib vtkImagingCore-8.1-gd.lib vtkImagingFourier-8.1-gd.lib vtkImagingGeneral-8.1-gd.lib vtkImagingHybrid-8.1-gd.lib vtkImagingMath-8.1-gd.lib vtkImagingMorphological-8.1-gd.lib vtkImagingSources-8.1-gd.lib vtkImagingStatistics-8.1-gd.lib vtkImagingStencil-8.1-gd.lib vtkInfovisCore-8.1-gd.lib vtkInfovisLayout-8.1-gd.lib vtkInteractionImage-8.1-gd.lib vtkInteractionStyle-8.1-gd.lib vtkInteractionWidgets-8.1-gd.lib vtkIOAMR-8.1-gd.lib vtkIOCore-8.1-gd.lib vtkIOEnSight-8.1-gd.lib vtkIOExodus-8.1-gd.lib vtkIOExport-8.1-gd.lib vtkIOExportOpenGL2-8.1-gd.lib vtkIOGeometry-8.1-gd.lib vtkIOImage-8.1-gd.lib vtkIOImport-8.1-gd.lib vtkIOInfovis-8.1-gd.lib vtkIOLegacy-8.1-gd.lib vtkIOLSDyna-8.1-gd.lib vtkIOMINC-8.1-gd.lib vtkIOMovie-8.1-gd.lib vtkIONetCDF-8.1-gd.lib vtkIOParallel-8.1-gd.lib vtkIOParallelXML-8.1-gd.lib vtkIOPLY-8.1-gd.lib vtkIOSQL-8.1-gd.lib vtkIOTecplotTable-8.1-gd.lib vtkIOVideo-8.1-gd.lib vtkIOXML-8.1-gd.lib vtkIOXMLParser-8.1-gd.lib vtkjpeg-8.1-gd.lib vtkjsoncpp-8.1-gd.lib vtklibharu-8.1-gd.lib vtklibxml2-8.1-gd.lib vtklz4-8.1-gd.lib vtkmetaio-8.1-gd.lib vtkNetCDF-8.1-gd.lib vtknetcdfcpp-8.1-gd.lib vtkoggtheora-8.1-gd.lib vtkParallelCore-8.1-gd.lib vtkpng-8.1-gd.lib vtkproj4-8.1-gd.lib vtkRenderingAnnotation-8.1-gd.lib vtkRenderingContext2D-8.1-gd.lib vtkRenderingContextOpenGL2-8.1-gd.lib vtkRenderingCore-8.1-gd.lib vtkRenderingFreeType-8.1-gd.lib vtkRenderingGL2PSOpenGL2-8.1-gd.lib vtkRenderingImage-8.1-gd.lib vtkRenderingLabel-8.1-gd.lib vtkRenderingLOD-8.1-gd.lib vtkRenderingOpenGL2-8.1-gd.lib vtkRenderingQt-8.1-gd.lib vtkRenderingVolume-8.1-gd.lib vtkRenderingVolumeOpenGL2-8.1-gd.lib vtksqlite-8.1-gd.lib vtksys-8.1-gd.lib vtktiff-8.1-gd.lib vtkverdict-8.1-gd.lib vtkViewsContext2D-8.1-gd.lib vtkViewsCore-8.1-gd.lib vtkViewsInfovis-8.1-gd.lib vtkViewsQt-8.1-gd.lib vtkzlib-8.1-gd.lib
2.release文件下
pcl_common_release.lib pcl_features_release.lib pcl_filters_release.lib pcl_io_ply_debug.lib pcl_io_release.lib pcl_kdtree_release.lib pcl_keypoints_release.lib pcl_ml_release.lib pcl_octree_release.lib pcl_outofcore_release.lib pcl_people_release.lib pcl_recognition_release.lib pcl_registration_release.lib pcl_sample_consensus_release.lib pcl_search_release.lib pcl_segmentation_release.lib pcl_stereo_release.lib pcl_surface_release.lib pcl_tracking_release.lib pcl_visualization_release.lib pcl_common_release.lib pcl_features_release.lib pcl_filters_release.lib pcl_io_ply_debug.lib pcl_io_release.lib pcl_kdtree_release.lib pcl_keypoints_release.lib pcl_ml_release.lib pcl_octree_release.lib pcl_outofcore_release.lib pcl_people_release.lib pcl_recognition_release.lib pcl_registration_release.lib pcl_sample_consensus_release.lib pcl_search_release.lib pcl_segmentation_release.lib pcl_stereo_release.lib pcl_surface_release.lib pcl_tracking_release.lib pcl_visualization_release.lib
vtkalglib-8.1.lib vtkChartsCore-8.1.lib vtkCommonColor-8.1.lib vtkCommonComputationalGeometry-8.1.lib vtkCommonCore-8.1.lib vtkCommonDataModel-8.1.lib vtkCommonExecutionModel-8.1.lib vtkCommonMath-8.1.lib vtkCommonMisc-8.1.lib vtkCommonSystem-8.1.lib vtkCommonTransforms-8.1.lib vtkDICOMParser-8.1.lib vtkDomainsChemistry-8.1.lib vtkDomainsChemistryOpenGL2-8.1.lib vtkexoIIc-8.1.lib vtkexpat-8.1.lib vtkFiltersAMR-8.1.lib vtkFiltersCore-8.1.lib vtkFiltersExtraction-8.1.lib vtkFiltersFlowPaths-8.1.lib vtkFiltersGeneral-8.1.lib vtkFiltersGeneric-8.1.lib vtkFiltersGeometry-8.1.lib vtkFiltersHybrid-8.1.lib vtkFiltersHyperTree-8.1.lib vtkFiltersImaging-8.1.lib vtkFiltersModeling-8.1.lib vtkFiltersParallel-8.1.lib vtkFiltersParallelImaging-8.1.lib vtkFiltersPoints-8.1.lib vtkFiltersProgrammable-8.1.lib vtkFiltersSelection-8.1.lib vtkFiltersSMP-8.1.lib vtkFiltersSources-8.1.lib vtkFiltersStatistics-8.1.lib vtkFiltersTexture-8.1.lib vtkFiltersTopology-8.1.lib vtkFiltersVerdict-8.1.lib vtkfreetype-8.1.lib vtkGeovisCore-8.1.lib vtkgl2ps-8.1.lib vtkglew-8.1.lib vtkGUISupportQt-8.1.lib vtkGUISupportQtSQL-8.1.lib vtkhdf5-8.1.lib vtkhdf5_hl-8.1.lib vtkImagingColor-8.1.lib vtkImagingCore-8.1.lib vtkImagingFourier-8.1.lib vtkImagingGeneral-8.1.lib vtkImagingHybrid-8.1.lib vtkImagingMath-8.1.lib vtkImagingMorphological-8.1.lib vtkImagingSources-8.1.lib vtkImagingStatistics-8.1.lib vtkImagingStencil-8.1.lib vtkInfovisCore-8.1.lib vtkInfovisLayout-8.1.lib vtkInteractionImage-8.1.lib vtkInteractionStyle-8.1.lib vtkInteractionWidgets-8.1.lib vtkIOAMR-8.1.lib vtkIOCore-8.1.lib vtkIOEnSight-8.1.lib vtkIOExodus-8.1.lib vtkIOExport-8.1.lib vtkIOExportOpenGL2-8.1.lib vtkIOGeometry-8.1.lib vtkIOImage-8.1.lib vtkIOImport-8.1.lib vtkIOInfovis-8.1.lib vtkIOLegacy-8.1.lib vtkIOLSDyna-8.1.lib vtkIOMINC-8.1.lib vtkIOMovie-8.1.lib vtkIONetCDF-8.1.lib vtkIOParallel-8.1.lib vtkIOParallelXML-8.1.lib vtkIOPLY-8.1.lib vtkIOSQL-8.1.lib vtkIOTecplotTable-8.1.lib vtkIOVideo-8.1.lib vtkIOXML-8.1.lib vtkIOXMLParser-8.1.lib vtkjpeg-8.1.lib vtkjsoncpp-8.1.lib vtklibharu-8.1.lib vtklibxml2-8.1.lib vtklz4-8.1.lib vtkmetaio-8.1.lib vtkNetCDF-8.1.lib vtknetcdfcpp-8.1.lib vtkoggtheora-8.1.lib vtkParallelCore-8.1.lib vtkpng-8.1.lib vtkproj4-8.1.lib vtkRenderingAnnotation-8.1.lib vtkRenderingContext2D-8.1.lib vtkRenderingContextOpenGL2-8.1.lib vtkRenderingCore-8.1.lib vtkRenderingFreeType-8.1.lib vtkRenderingGL2PSOpenGL2-8.1.lib vtkRenderingImage-8.1.lib vtkRenderingLabel-8.1.lib vtkRenderingLOD-8.1.lib vtkRenderingOpenGL2-8.1.lib vtkRenderingQt-8.1.lib vtkRenderingVolume-8.1.lib vtkRenderingVolumeOpenGL2-8.1.lib vtksqlite-8.1.lib vtksys-8.1.lib vtktiff-8.1.lib vtkverdict-8.1.lib vtkViewsContext2D-8.1.lib vtkViewsCore-8.1.lib vtkViewsInfovis-8.1.lib vtkViewsQt-8.1.lib vtkzlib-8.1.lib vtkalglib-8.1.lib vtkChartsCore-8.1.lib vtkCommonColor-8.1.lib vtkCommonComputationalGeometry-8.1.lib vtkCommonCore-8.1.lib vtkCommonDataModel-8.1.lib vtkCommonExecutionModel-8.1.lib vtkCommonMath-8.1.lib vtkCommonMisc-8.1.lib vtkCommonSystem-8.1.lib vtkCommonTransforms-8.1.lib vtkDICOMParser-8.1.lib vtkDomainsChemistry-8.1.lib vtkDomainsChemistryOpenGL2-8.1.lib vtkexoIIc-8.1.lib vtkexpat-8.1.lib vtkFiltersAMR-8.1.lib vtkFiltersCore-8.1.lib vtkFiltersExtraction-8.1.lib vtkFiltersFlowPaths-8.1.lib vtkFiltersGeneral-8.1.lib vtkFiltersGeneric-8.1.lib vtkFiltersGeometry-8.1.lib vtkFiltersHybrid-8.1.lib vtkFiltersHyperTree-8.1.lib vtkFiltersImaging-8.1.lib vtkFiltersModeling-8.1.lib vtkFiltersParallel-8.1.lib vtkFiltersParallelImaging-8.1.lib vtkFiltersPoints-8.1.lib vtkFiltersProgrammable-8.1.lib vtkFiltersSelection-8.1.lib vtkFiltersSMP-8.1.lib vtkFiltersSources-8.1.lib vtkFiltersStatistics-8.1.lib vtkFiltersTexture-8.1.lib vtkFiltersTopology-8.1.lib vtkFiltersVerdict-8.1.lib vtkfreetype-8.1.lib vtkGeovisCore-8.1.lib vtkgl2ps-8.1.lib vtkglew-8.1.lib vtkGUISupportQt-8.1.lib vtkGUISupportQtSQL-8.1.lib vtkhdf5-8.1.lib vtkhdf5_hl-8.1.lib vtkImagingColor-8.1.lib vtkImagingCore-8.1.lib vtkImagingFourier-8.1.lib vtkImagingGeneral-8.1.lib vtkImagingHybrid-8.1.lib vtkImagingMath-8.1.lib vtkImagingMorphological-8.1.lib vtkImagingSources-8.1.lib vtkImagingStatistics-8.1.lib vtkImagingStencil-8.1.lib vtkInfovisCore-8.1.lib vtkInfovisLayout-8.1.lib vtkInteractionImage-8.1.lib vtkInteractionStyle-8.1.lib vtkInteractionWidgets-8.1.lib vtkIOAMR-8.1.lib vtkIOCore-8.1.lib vtkIOEnSight-8.1.lib vtkIOExodus-8.1.lib vtkIOExport-8.1.lib vtkIOExportOpenGL2-8.1.lib vtkIOGeometry-8.1.lib vtkIOImage-8.1.lib vtkIOImport-8.1.lib vtkIOInfovis-8.1.lib vtkIOLegacy-8.1.lib vtkIOLSDyna-8.1.lib vtkIOMINC-8.1.lib vtkIOMovie-8.1.lib vtkIONetCDF-8.1.lib vtkIOParallel-8.1.lib vtkIOParallelXML-8.1.lib vtkIOPLY-8.1.lib vtkIOSQL-8.1.lib vtkIOTecplotTable-8.1.lib vtkIOVideo-8.1.lib vtkIOXML-8.1.lib vtkIOXMLParser-8.1.lib vtkjpeg-8.1.lib vtkjsoncpp-8.1.lib vtklibharu-8.1.lib vtklibxml2-8.1.lib vtklz4-8.1.lib vtkmetaio-8.1.lib vtkNetCDF-8.1.lib vtknetcdfcpp-8.1.lib vtkoggtheora-8.1.lib vtkParallelCore-8.1.lib vtkpng-8.1.lib vtkproj4-8.1.lib vtkRenderingAnnotation-8.1.lib vtkRenderingContext2D-8.1.lib vtkRenderingContextOpenGL2-8.1.lib vtkRenderingCore-8.1.lib vtkRenderingFreeType-8.1.lib vtkRenderingGL2PSOpenGL2-8.1.lib vtkRenderingImage-8.1.lib vtkRenderingLabel-8.1.lib vtkRenderingLOD-8.1.lib vtkRenderingOpenGL2-8.1.lib vtkRenderingQt-8.1.lib vtkRenderingVolume-8.1.lib vtkRenderingVolumeOpenGL2-8.1.lib vtksqlite-8.1.lib vtksys-8.1.lib vtktiff-8.1.lib vtkverdict-8.1.lib vtkViewsContext2D-8.1.lib vtkViewsCore-8.1.lib vtkViewsInfovis-8.1.lib vtkViewsQt-8.1.lib vtkzlib-8.1.lib
5.安装boost1.68.0
cd到解压文件夹,运行bootstrap.bat,执行编译命令,如下:
#boost编译命令
bjam --build-type=complete toolset=msvc-14.1 --with-date_time --stagedir="./vc2017"
msvc-14.1对应vs2017;
--stagedir为创建一个文件夹;
出现的问题以及解决方案
1.QT提示没有QVTKWidget.h
进入QT designer 将QWidget提升为QVTKWidget
2.缺少vtkIOEeportOpenGL
cmake编译时vtk_RENDERING_BACKEND的值设为OpenGL(默认为OpenGL)
3.
代码
批量获取代码
DIR *.* /B >0.TXT
debug和release分离代码
#include <iostream> #include <string> #include <fstream> #include <iostream> using namespace std; int main() { ifstream txtfile;//打开读取的文件 ofstream txt01;//保存的文件 ofstream txt02;//保存的文件 string temp; int index = 0;//用于判断奇偶 txtfile.open("0.txt", ios::in); while (!txtfile.eof()) // 若未到文件结束一直循环 { • getline(txtfile, temp);//一行一行读取 • if (index%2==0)//判断除以2的余数,即为奇偶的判断 • { • txt01.open("1.txt", ios::app); • txt01 << temp; • txt01 << endl; • txt01.close(); • } • else • { • txt02.open("2.txt", ios::app); • txt02 << temp; • txt02 << endl; • txt02.close(); • } • index++; } txtfile.close(); //关闭文件 txtfile.close(); txt01.close(); txt02.close(); return 0; }