报错,The following configuration files were considered but not accepted:"/>
PCL cmake报错,The following configuration files were considered but not accepted:
买了《点云库PCL从入门到精通》,第一个例子就是安装pcl,在cmake跑一下代码,检查PCL是否安装完成,然后就报错了。
搜了很多地方都没有找到解决方案,现在记下来。
错误:
初次安装PCL1.8.1,使用cmake 3.14.2,跑代码之后报错
Could not find a configuration file for package "VTK" that is compatible with requested version "". The following configuration files were considered but not accepted:
还报错:
visualization is required but vtk was not found
还报错:
VTK_DIR-NOTFOUND
总结一下就是:
cmake找不到VTK,可能是VTK_DIR有问题。
在我按照大部分博客的指导下,改了VTK_DIR后依旧报错
原因是找到的VTK版本被无视了。。。我也是服了????
原因:
1.因为cmake使用的generator是vs2017,默认指向的是32位编译器,而我的电脑,pcl,cmake安装的全部都是64位。
2.cmake3.14.2版本的generator是没有64位的vs选项的,必须要换回之前的cmake版本才可以
解决方案:
1.卸载目前的cmake,换回之前的版本,我安装的是cmake3.10.2,在generator中选择vs15 2017 win64
注意:64位电脑选项一定要后面带一个win64,不然默认就是32位编译
参考:
.html
感谢:
感谢我会英语,有耐心的把人家的帖子看完了。全网也就只有这一贴报的是和我一样的错误。现在写成中文版,感谢帖子的楼主。
更多推荐
PCL cmake报错,The following configuration files were considered but not accepted:
发布评论