本人踩坑系列:目前VS2017与cuda9.2 无法成功编译PCL1.8.1源码(切记)
系统:Win10
IDE:VS2017
目前通过Cmake3.13编译 PCL1.8.1 github源码中的cmakelists.txt得到的PCL.sln项目,再使用VS2017编译生成PCL无法成功,原因是CUDA9..0系列之后(包括9.1、9.2等)与VS2017存在不兼容现象。请看下面解释
链接:https://github.com/PointCloudLibrary/pcl/issues/2177
I tried to build PCL 1.8.1-Dev with Windows 10, VS 2017, CUDA 9.1 without success too.
In these forums I found that there are incompatibilities between VS17 x CUDA91:
https://stackoverflow.com/questions/47645436/cuda-9-unsupported-error-with-vs-2017
https://stackoverflow.com/questions/46120769/visual-studio-2017-and-cuda-9-rc-still-do-not-work-together
These orientations from the first forum worked to me:
- Make sure that you have VC++ 2015.3 v140 toolset (can be installed either from web or Visual Studio installer)
- In the project properties (general) -> Platform toolset choose Visual Studio 2015 (v140).
所以大伙如果要编译PCL与cuda的源码,请使用VS2015与cuda9系列编译。