PCL cmake报错,The following configuration files were considered but not accepted:

编程入门 行业动态 更新时间:2024-10-09 02:26:38

PCL cmake<a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错,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:

本文发布于:2024-02-14 13:05:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1763827.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   cmake   PCL   configuration   accepted

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!