当前位置: 首页 > news >正文

手机商场网站制作淘宝网站建设类目需要什么资质

手机商场网站制作,淘宝网站建设类目需要什么资质,南京网站设公司,申请摇号广州网站C PCL库 预编译安装与排错:common is required but boost was not found 摘要安装与排错 摘要 本篇博客记录了Windows平台上C PCL库通过预编译安装的方法与排错过程 环境值平台X86 Win10PCL15.0 realease All in OneCMakeWindows 3.29.0Visual Studio2022版 安装…

C++ PCL库 预编译安装与排错:common is required but boost was not found

  • 摘要
  • 安装与排错

摘要

本篇博客记录了Windows平台上C++ PCL库通过预编译安装的方法与排错过程

环境
平台X86 Win10
PCL15.0 realease All in One
CMakeWindows 3.29.0
Visual Studio2022版

安装与排错

  • 安装Visual Studio编译器(限制用户使用Visual Studio编译器)
  • 安装CMake项目构建管理工具(版本要求>2.8.3)
  • 下载All in one安装包和对应的PDB文件包(用于后期单步调试)
image-20250602212857055
  • 安装:运行All in one安装包,进行安装

    • 3rdParty:包含第三方开源库
    • bin:编译好的PCL相关的.dll动态库与示例exe文件
    • cmake:包含PCL库相关的cmake配置文件,在建立工程时,利用此文件寻找第三方包和PCL对应的include和lib目录
    • include:PCL的头文件
    • lib:PCL的静态库和动态库.lib入口文件
    • share:帮助文档
    image-20250602215437757
  • 问题:由于Windows系统的对系统环境变量长度有限制,导致安装All In One安装包时,自动增加系统环境变量时导致出错。此时需要手动添加系统环境变量(参考:配置PCL过程中提示 path too long installer unable to modify path解决_win11系统安装pcl报错warning! path too long installer una-CSDN博客)

  • 解压PDB压缩包并放入PCL安装目录下的bin文件夹中

  • 验证是否安装成功,参考Projecting points using a parametric model — Point Cloud Library 0.0 documentation

    • 新建项目文件和CMakeLists.txt文件
    ### project_inliers.cpp
    #include <iostream>
    #include <pcl/point_cloud.h> // for PointCloud
    #include <pcl/point_types.h>
    #include <pcl/ModelCoefficients.h>
    #include <pcl/filters/project_inliers.h>intmain ()
    {pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_projected (new pcl::PointCloud<pcl::PointXYZ>);// Fill in the cloud datacloud->width  = 5;cloud->height = 1;cloud->points.resize (cloud->width * cloud->height);for (auto& point: *cloud){point.x = 1024 * rand () / (RAND_MAX + 1.0f);point.y = 1024 * rand () / (RAND_MAX + 1.0f);point.z = 1024 * rand () / (RAND_MAX + 1.0f);}std::cerr << "Cloud before projection: " << std::endl;for (const auto& point: *cloud)std::cerr << "    " << point.x << " "<< point.y << " "<< point.z << std::endl;// Create a set of planar coefficients with X=Y=0,Z=1pcl::ModelCoefficients::Ptr coefficients (new pcl::ModelCoefficients ());coefficients->values.resize (4);coefficients->values[0] = coefficients->values[1] = 0;coefficients->values[2] = 1.0;coefficients->values[3] = 0;// Create the filtering objectpcl::ProjectInliers<pcl::PointXYZ> proj;proj.setModelType (pcl::SACMODEL_PLANE);proj.setInputCloud (cloud);proj.setModelCoefficients (coefficients);proj.filter (*cloud_projected);std::cerr << "Cloud after projection: " << std::endl;for (const auto& point: *cloud_projected)std::cerr << "    " << point.x << " "<< point.y << " "<< point.z << std::endl;return (0);
    }
    
    # CMakeLists.txt
    cmake_minimum_required(VERSION 3.5 FATAL_ERROR)project(project_inliers)find_package(PCL 1.2 REQUIRED)include_directories(${PCL_INCLUDE_DIRS})
    link_directories(${PCL_LIBRARY_DIRS})
    add_definitions(${PCL_DEFINITIONS})add_executable (project_inliers project_inliers.cpp)
    target_link_libraries (project_inliers ${PCL_LIBRARIES})
    
    • CMake项目构建
    image-20250604132027687

    配置后出现报错,Boost的配置文件没有被正确找到,修改PCL的cmake文件(PCL的安装路径/cmake/PCLConfig.cmake),修改其中的find_boost方法,去掉其中cmake寻找Boost语句的CONFIG参数
    在这里插入图片描述

    随后点击Generate,完成项目的构建

    • Visual Studio项目编译、生成可执行文件

      双击.sln工程配置文件,通过VS进行编译运行

    image-20250604170858003

    项目编译成功,但是由于项目配置原因,运行可执行程序时,没有找到正确可执行程序,VS报错

在这里插入图片描述

点击本地Windows调试器的配置项 → 配置启动项目 → 修改单启动项目 重新运行即可

在这里插入图片描述

在这里插入图片描述

http://www.dtcms.com/a/463132.html

相关文章:

  • 医院类网站建设与维护自己做app的网站
  • 做各国民宿租赁的网站电子商务查询网站
  • 如何利用Python进行数据分析与可视化的具体操作指南
  • 做么自己做一个网站网店模板
  • 临湘网站建设构建html5博客网站
  • GESP等级认证C++三级10-操作字符数组2-2
  • 网站建设策划模板下载wordpress 主題
  • 一图掌握 网络协议 核心要点
  • C++ 编程基础(一):输入/输出、数据类型与变量管理
  • 专业网站建设管理网站建设推广一对一服务
  • Java 开发面试复盘 - 杭州 2025
  • MySQL索引调优之索引顺序必须和字段顺序一致吗?
  • 国内做的比较好的跨境电商网站兰州的互联网公司
  • utf8, utf16, utf32在前256个字符是不是一样的?
  • asp.net网站开发江苏建设工程网
  • 海南州建设厅官方网站微商的自己做网站叫什么软件
  • 深圳有没有做网站的微信小程序云开发模板
  • CodeForces Round 1046(div.1)A题
  • 大连营商环境建设局网站wordpress勋章
  • 专业沈阳网站制作做网站美工要学什么软件
  • 如何设置便于搜索引擎收录的网站结构WordPress切换经典编辑器
  • 优秀网站推荐桂林网红餐厅
  • 细节判断题
  • stm32延时函数
  • 磁共振成像原理(理论)22:图像重建的常见问题 (General Issues of Image Reconstruction)
  • asp转换手机网站网页素材下载
  • 微网站建设正规公司招工网站58同城
  • 企业大型网站开发网站模板设计大岭山建设网站
  • 帝国cms做网站辽宁城乡建设集团成立网站
  • ajaxjsp网站开发从入门到精通销售客户管理软件哪个好