aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordweckmann <didier.weckmann@ircad.fr>2020-12-09 20:56:56 +0100
committerGitHub <noreply@github.com>2020-12-09 11:56:56 -0800
commit3aad1d66c9ddaf78eea3785f3143232b1bc5104d (patch)
tree7beebb8633c7b61b443a755371242e86df114f4c
parent769256950157de3c6c1076ae093be88620614dbe (diff)
downloadvcpkg-3aad1d66c9ddaf78eea3785f3143232b1bc5104d.tar.gz
vcpkg-3aad1d66c9ddaf78eea3785f3143232b1bc5104d.zip
[pcl] Fix build when librealsense2 is present (#14960)
-rw-r--r--ports/pcl/CONTROL1
-rw-r--r--ports/pcl/portfile.cmake1
-rw-r--r--ports/pcl/realsense2.patch13
3 files changed, 15 insertions, 0 deletions
diff --git a/ports/pcl/CONTROL b/ports/pcl/CONTROL
index f44015523..459015901 100644
--- a/ports/pcl/CONTROL
+++ b/ports/pcl/CONTROL
@@ -1,5 +1,6 @@
Source: pcl
Version: 1.11.1
+Port-Version: 1
Homepage: https://github.com/PointCloudLibrary/pcl
Description: Point Cloud Library (PCL) is open source library for 2D/3D image and point cloud processing.
Build-Depends: eigen3, flann, qhull, libpng, boost-system, boost-filesystem, boost-thread, boost-date-time, boost-iostreams, boost-random, boost-foreach, boost-dynamic-bitset, boost-property-map, boost-graph, boost-multi-array, boost-signals2, boost-sort, boost-ptr-container, boost-uuid, boost-interprocess, boost-asio
diff --git a/ports/pcl/portfile.cmake b/ports/pcl/portfile.cmake
index de5752e74..6fe027ce9 100644
--- a/ports/pcl/portfile.cmake
+++ b/ports/pcl/portfile.cmake
@@ -12,6 +12,7 @@ vcpkg_from_github(
fix-link-libpng.patch
remove-broken-targets.patch
fix-check-sse.patch
+ realsense2.patch
)
file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindFLANN.cmake)
diff --git a/ports/pcl/realsense2.patch b/ports/pcl/realsense2.patch
new file mode 100644
index 000000000..cfe2cc41f
--- /dev/null
+++ b/ports/pcl/realsense2.patch
@@ -0,0 +1,13 @@
+diff --git a/io/src/real_sense_2_grabber.cpp b/io/src/real_sense_2_grabber.cpp
+index d13231e..06d1238 100644
+--- a/io/src/real_sense_2_grabber.cpp
++++ b/io/src/real_sense_2_grabber.cpp
+@@ -287,7 +287,7 @@ namespace pcl
+ cloud->width = sp.width ();
+ cloud->height = sp.height ();
+ cloud->is_dense = false;
+- cloud->points.resize ( size () );
++ cloud->points.resize ( points.size () );
+
+ const auto cloud_vertices_ptr = points.get_vertices ();
+ const auto cloud_texture_ptr = points.get_texture_coordinates ();