Package: libpcl-dev
Version: 1.14.0+dfsg-1
Severity: important
X-Debbugs-Cc: debian-science-maintain...@lists.alioth.debian.org, 
deb...@timonengelke.de

When building a CMake package using PCL on Ubuntu, I am getting the error

CMake Error at /lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:63 (message):
  PCL can not be found on this machine
Call Stack (most recent call first):
  /lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:459 (pcl_report_not_found)
  CMakeLists.txt:19 (find_package)

When investigating the issue, I found that PCL_ROOT is not set correctly in 
PCLConfig.cmake on line 439.
It is set to / instead of /usr. The reason for that seems to be that the path 
of CMAKE_CURRENT_LIST_DIR is expected to be a subdirectory of /usr/lib, but it 
is a subdirectory of /lib.
I was able to fix the issue by replacing the path relative to 
CMAKE_CURRENT_LIST_DIR by /usr.
I believe that this is a Debian bug because there is already a Debian patch 
affecting exactly this line in PCLConfig.cmake.

-- System Information:
Debian Release: trixie/sid
  APT prefers noble-updates
  APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'), 
(100, 'noble-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-41-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpcl-dev depends on:
ii  libboost-all-dev             1.83.0.1ubuntu2
ii  libeigen3-dev                3.4.0-4
ii  libflann-dev                 1.9.2+dfsg-2build1
ii  libopenni-dev                1.5.4.0+dfsg-7.1build1
ii  libopenni2-dev               2.2.0.33+dfsg-18
ii  libpcl-apps1.14              1.14.0+dfsg-1
ii  libpcl-common1.14            1.14.0+dfsg-1
ii  libpcl-features1.14          1.14.0+dfsg-1
ii  libpcl-filters1.14           1.14.0+dfsg-1
ii  libpcl-io1.14                1.14.0+dfsg-1
ii  libpcl-kdtree1.14            1.14.0+dfsg-1
ii  libpcl-keypoints1.14         1.14.0+dfsg-1
ii  libpcl-ml1.14                1.14.0+dfsg-1
ii  libpcl-octree1.14            1.14.0+dfsg-1
ii  libpcl-outofcore1.14         1.14.0+dfsg-1
ii  libpcl-people1.14            1.14.0+dfsg-1
ii  libpcl-recognition1.14       1.14.0+dfsg-1
ii  libpcl-registration1.14      1.14.0+dfsg-1
ii  libpcl-sample-consensus1.14  1.14.0+dfsg-1
ii  libpcl-search1.14            1.14.0+dfsg-1
ii  libpcl-segmentation1.14      1.14.0+dfsg-1
ii  libpcl-stereo1.14            1.14.0+dfsg-1
ii  libpcl-surface1.14           1.14.0+dfsg-1
ii  libpcl-tracking1.14          1.14.0+dfsg-1
ii  libpcl-visualization1.14     1.14.0+dfsg-1
ii  libqhull-dev                 2020.2-6build1
ii  libusb-1.0-0-dev             2:1.0.27-1
ii  libvtk9-dev                  9.1.0+really9.1.0+dfsg2-7.1build3
ii  libvtk9-qt-dev               9.1.0+really9.1.0+dfsg2-7.1build3

libpcl-dev recommends no packages.

Versions of packages libpcl-dev suggests:
pn  libpcl-doc  <none>

-- no debconf information

Reply via email to