Windows下CMake配置PCL库,编译记录

1. 找不到VTK_DIR

CMake Error at D:/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):
D:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:683 (pcl_report_not_found)
D:/Program Files/PCL 1.8.1/cmake/PCLConfig.cmake:844 (find_external_library)
CMakeLists.txt:5 (find_package)

Solution:

if you installed PCL using the all-in-one Installer for Win32, You should specify “Visual Studio 14 2015” in CMake.
If you installed PCL using the all-in-one Installer for Win64, You should specify “Visual Studio 14 2015 Win64” in CMake.

So, 选择编译器的是时候要格外注意,安装64位PCL,选择“Visual Studio 14 2015”为Generator时,会出现以上错误,则删除编译文件,重新选择编译路径,选择“Visual Studio 14 2015 Win64”即可,则可自动找到VTK_DIR, 显示Configure done.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值