1. 报错类似的问题:Error C4996 'pcl::SAC_SAMPLE_SIZE': This map is deprecated and is kept only to prevent breaking existing user code. Starting from PCL 1.8.0 model sample size is a protected member of the SampleConsensusModel class
这是程序生命周期检查出现的问题。
解决方法:
1)
注:不是在新添加的项目属性表的属性页修改,注意是否是否打开了属性管理器,若是,关闭。然后在菜单栏->项目->(当前项目的)属性,点击修改。
2)若法1)无效,打开model_types.h头文件,
namespace pcl
{
const static std::map<pcl::SacModel, unsigned int>
// PCL_DEPRECATED("This map is deprecated and is kept only to prevent breaking "
// "existing user code. Starting from PCL 1.8.0 model sample size "
// "is a protected member of the SampleConsensusModel class")
SAC_SAMPLE_SIZE (sample_size_pairs, sample_size_pairs + sizeof (sample_size_pairs) / sizeof (SampleSizeModel));
}
注释掉这三行试试。
2. LNK1104无法打开opencv_world320.lib"
本文是opencv_world320.lib不在以前的添加路径了,找到文件现在的路径,在库目录中再添加一次即可。
3. C4819该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为Unicode格式以防止数据丢失
解决方法:https://www.cnblogs.com/letben/p/5548938.html
以下摘自:https://www.cnblogs.com/li-yao7758258/p/6686022.html
4. 错误提示为1.IntelliSense: cannot open source file "pcl/io/pcd_io.h" c:\visual 等如下图所示,要检查一下自己的是不是把编译平台已经更改为64位的。
5. 编译的时候遇到如下错误提示error C1128: number of sections exceededobject file format limit : compile with /bigobj