You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Debian13安装libpcl-dev后缺失指定库的编译问题求助

Debian13下xmake搭配apt::libpcl-dev编译时缺失pcl_in_hand_scanner等库的问题

我在Debian13系统中使用xmake搭配apt::libpcl-dev进行项目开发,当前xmake.lua配置如下:

# xmake.lua
add_rules("mode.debug","mode.release")

add_requires("apt::libpcl-dev", {configs = {vtk=true, system = true}})

set_project("homework1")

set_languages("c++20")
set_toolchains("gcc")

target("1_reading_pcd")
    set_rundir("1_reading_pcd")
    set_kind("binary")
    add_packages("apt::libpcl-dev")
    if is_plat("linux") then
        add_syslinks("X11", "Xext", "Xft", "Xrender","Xcursor")
        add_syslinks("gomp")
    end
    add_files("1_reading_pcd/*.cpp")

执行xmake命令时出现链接错误,且已确认安装libpcl-dev:

*  Tasking: xmake 

[ 47%]: linking.release 1_reading_pcd
error: /usr/bin/ld: 找不到 -lpcl_in_hand_scanner: 没有那个文件或目录。
/usr/bin/ld: 找不到 -lpcl_modeler: 没有那个文件或目录。
/usr/bin/ld: 找不到 -lpcl_point_cloud_editor: 没有那个文件或目录。
collect2: error: ld 返回 1 退出状态

执行dpkg -l | grep pcl检查系统已安装库,结果显示确实不存在上述三个库:

$ dpkg -l | grep pcl 
ii  libpcl-apps1.15:amd64                               1.15.0+dfsg-2                        amd64        Point Cloud Library - apps library
ii  libpcl-common1.15:amd64                             1.15.0+dfsg-2                        amd64        Point Cloud Library - common library
ii  libpcl-conversions-dev:amd64                        1.7.5-2+b2                           amd64        Robot OS library to convert from/to PCL data types
ii  libpcl-dev                                          1.15.0+dfsg-2                        amd64        Point Cloud Library - development files
ii  libpcl-doc                                          1.15.0+dfsg-2                        all          Point Cloud Library - documentation
ii  libpcl-features1.15:amd64                           1.15.0+dfsg-2                        amd64        Point Cloud Library - features library
ii  libpcl-filters1.15:amd64                            1.15.0+dfsg-2                        amd64        Point Cloud Library - filters library
ii  libpcl-io1.15:amd64                                 1.15.0+dfsg-2                        amd64        Point Cloud Library - I/O library
ii  libpcl-kdtree1.15:amd64                             1.15.0+dfsg-2                        amd64        Point Cloud Library - kdtree library
ii  libpcl-keypoints1.15:amd64                          1.15.0+dfsg-2                        amd64        Point Cloud Library - keypoints library
ii  libpcl-ml1.15:amd64                                 1.15.0+dfsg-2                        amd64        Point Cloud Library - ml library
ii  libpcl-msgs-dev                                     0.3.0-4                              amd64        C/C++ headers for PCL-related Robot OS Messages
ii  libpcl-octree1.15:amd64                             1.15.0+dfsg-2                        amd64        Point Cloud Library - octree library
ii  libpcl-outofcore1.15:amd64                          1.15.0+dfsg-2                        amd64        Point Cloud Library - outofcore library
ii  libpcl-people1.15:amd64                             1.15.0+dfsg-2                        amd64        Point Cloud Library - people library
ii  libpcl-recognition1.15:amd64                        1.15.0+dfsg-2                        amd64        Point Cloud Library - recognition library
ii  libpcl-registration1.15:amd64                       1.15.0+dfsg-2                        amd64        Point Cloud Library - registration library
ii  libpcl-ros-dev:amd64                                1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - development headers
ii  libpcl-ros-features0t64:amd64                       1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - features library
ii  libpcl-ros-filter1t64:amd64                         1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - filter library
ii  libpcl-ros-filters0t64:amd64                        1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - filters library
ii  libpcl-ros-io0t64:amd64                             1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - io library
ii  libpcl-ros-segmentation0t64:amd64                   1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - segmentation library
ii  libpcl-ros-surface0t64:amd64                        1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - surface library
ii  libpcl-ros-tf1t64:amd64                             1.7.5-2+b2                           amd64        Bridge between Robot OS library (ROS) and PCL - tf library
ii  libpcl-sample-consensus1.15:amd64                   1.15.0+dfsg-2                        amd64        Point Cloud Library - sample consensus library
ii  libpcl-search1.15:amd64                             1.15.0+dfsg-2                        amd64        Point Cloud Library - search library
ii  libpcl-segmentation1.15:amd64                       1.15.0+dfsg-2                        amd64        Point Cloud Library - segmentation library
ii  libpcl-stereo1.15:amd64                             1.15.0+dfsg-2                        amd64        Point Cloud Library - stereo library
ii  libpcl-surface1.15:amd64                            1.15.0+dfsg-2                        amd64        Point Cloud Library - surface library
ii  libpcl-tracking1.15:amd64                           1.15.0+dfsg-2                        amd64        Point Cloud Library - tracking library
ii  libpcl-visualization1.15:amd64                      1.15.0+dfsg-2                        amd64        Point Cloud Library - visualization library
ii  pcl-tools                                           1.15.0+dfsg-2                        amd64        Point Cloud Library - point cloud processing tools

我尝试过将xmake.lua中的apt::libpcl-dev替换为pcl,通过xrepo下载PCL源码编译安装后可正常编译,但希望直接使用apt安装的libpcl-dev完成编译,无需手动编译源码,求解决方案。

内容的提问来源于stack exchange,提问作者yjdyamv

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 07:14:53