Thanks to the work of unanancyowen.com (http://unanancyowen.com/?p=1255&lang=en), all-in-one builds of PCL 1.7.2 with Visual Studio 2012/2013/2015 are provided. However, after I downloaded the build for Visual Studio 2012 + X64 and installed it, Cmake of my PCL project complained that VTK library required by PCL can't be found. In case that you met with the similar issue, PCLConfig.cmake file in C:\Program Files\PCL 1.7.2\cmake directory needs to be modified to solve this issue. The modification is like below:
macro(find_VTK)
if(PCL_ALL_IN_ONE_INSTALLER AND NOT ANDROID)
#set(VTK_DIR "${PCL_ROOT}/3rdParty/VTK/lib/vtk-5.8")
set(VTK_DIR "${PCL_ROOT}/3rdParty/VTK/lib/cmake/vtk-6.2")
elseif(NOT VTK_DIR AND NOT ANDROID)
set(VTK_DIR "C:/Program Files/VTK/lib/cmake/vtk-6.2")
endif(PCL_ALL_IN_ONE_INSTALLER AND NOT ANDROID)
The original PCL cmake points to VTK version 5.8. But since the installed VTK build is actually version 6.2, in order to find valid cmake file for VTK, PCLConfig.cmake needs to point to the new location: "C:\Program Files\PCL 1.7.2\3rdParty\VTK\lib\cmake\vtk-6.2". After making this change, Cmake for my PCL projects starts to work.
Do you still have install as can't find it anywhere? I have project which asks 1.7.2 version.
ReplyDeleteIt is better that you get it from the Internet. It seems that you can still download the source from here (https://github.com/PointCloudLibrary/pcl/releases/tag/pcl-1.7.2) but I did not test it.
ReplyDelete