Skip to content

Commit 8acb35e

Browse files
raahilsha-zJackBoosY
andauthored
[pcl] Update to 1.12.0 [rtabmap] Update to 0.20.13 (#18855)
* [pcl] Update patches and portfile for PCL 1.12.0.99 * [pcl] Update pcl to 1.12.0.99 * Update rtabmap to 0.20.13, don't build Qt libs when WITH_QT is OFF * [rtabmap] update to 0.20.13 * Use PCL 1.12.0 instead of 1.12.0.99 * [pcl] Use PCL 1.12.0 * Require pcl[vtk] to build rtabmap * Fix rtabmap hash * Go back to ccc8202, where Linux CI was passing, update rtabmap to require pcl[vtk] * test - go back to pcl 1.20.0.99 * That wasn't it - go back to PCL release commit * Go back to pcl 1.12.0 * Remove libpng patch due to updated VTK per #18855 (comment) * Bump version as per git bot * Fix find dependencies in pcl's dependency * version stuff * version * Replace depreciate functions * version * Add DISABLE_PARALLEL_CONFIGURE to rtabmap * version Co-authored-by: JackBoosY <[email protected]>
1 parent 13156b1 commit 8acb35e

19 files changed

+215
-132
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
From 8a7a883b51e18645974921b1bfe9d3b6ef3c626c Mon Sep 17 00:00:00 2001
2-
From: Lars Glud <[email protected]>
3-
Date: Fri, 19 Mar 2021 22:22:57 +0100
4-
Subject: [PATCH] Add gcc-version-check
1+
From 116e665df611242ea0575a62478c31ec03e78fcc Mon Sep 17 00:00:00 2001
2+
From: raahilsha-z <[email protected]>
3+
Date: Wed, 7 Jul 2021 15:53:49 -0400
4+
Subject: [PATCH] add gcc version check
55

66
---
77
CMakeLists.txt | 4 ++++
88
1 file changed, 4 insertions(+)
99

1010
diff --git a/CMakeLists.txt b/CMakeLists.txt
11-
index e5aa7f40a..1e346a316 100644
11+
index 63b38df68..29f79d31b 100644
1212
--- a/CMakeLists.txt
1313
+++ b/CMakeLists.txt
14-
@@ -304,6 +304,10 @@ if(NOT PCL_SHARED_LIBS OR ((WIN32 AND NOT MINGW) AND NOT PCL_BUILD_WITH_FLANN_DY
14+
@@ -311,6 +311,10 @@ if(NOT (${FLANN_LIBRARY_TYPE} MATCHES ${PCL_FLANN_REQUIRED_TYPE}) AND NOT (${PCL
15+
message(FATAL_ERROR "Flann was selected with ${PCL_FLANN_REQUIRED_TYPE} but found as ${FLANN_LIBRARY_TYPE}")
1516
endif()
16-
find_package(FLANN 1.7.0 REQUIRED)
1717

1818
+if(UNIX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
1919
+ set (CMAKE_CXX_STANDARD 17)
2020
+endif()
2121
+
22-
# libusb-1.0
22+
# libusb
2323
option(WITH_LIBUSB "Build USB RGBD-Camera drivers" TRUE)
2424
if(WITH_LIBUSB)
2525
--
26-
2.29.2.windows.2
26+
2.32.0.windows.1
2727

ports/pcl/fix-check-sse.patch

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
From c65e034afb538932f4ff55a93332f875ae43a578 Mon Sep 17 00:00:00 2001
2+
From: raahilsha-z <[email protected]>
3+
Date: Wed, 7 Jul 2021 15:54:33 -0400
4+
Subject: [PATCH] fix check sse
5+
6+
---
7+
CMakeLists.txt | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
110
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index e580b1a..572ea06 100644
11+
index 29f79d31b..a1d9bb58f 100644
312
--- a/CMakeLists.txt
413
+++ b/CMakeLists.txt
514
@@ -86,7 +86,7 @@ endif()
@@ -11,3 +20,6 @@ index e580b1a..572ea06 100644
1120
PCL_CHECK_FOR_SSE()
1221
endif()
1322

23+
--
24+
2.32.0.windows.1
25+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/cmake/pcl_options.cmake b/cmake/pcl_options.cmake
2+
index 6570d75..1d9b0d8 100644
3+
--- a/cmake/pcl_options.cmake
4+
+++ b/cmake/pcl_options.cmake
5+
@@ -7,14 +7,13 @@ if(PCL_SHARED_LIBS)
6+
set(PCL_LIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
7+
set(PCL_LIB_TYPE "SHARED")
8+
# set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_SHARED_LIBRARY_SUFFIX})
9+
- if(WIN32)
10+
+ if(0)
11+
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_IMPORT_LIBRARY_SUFFIX})
12+
endif()
13+
else()
14+
set(PCL_LIB_PREFIX ${CMAKE_STATIC_LIBRARY_PREFIX})
15+
set(PCL_LIB_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX})
16+
set(PCL_LIB_TYPE "STATIC")
17+
- set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
18+
endif()
19+
mark_as_advanced(PCL_SHARED_LIBS)
20+

ports/pcl/fix-find-qhull.patch

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1+
From 7e3117fb47f58c7b1fb83e3a062a630b787a43bc Mon Sep 17 00:00:00 2001
2+
From: raahilsha-z <[email protected]>
3+
Date: Wed, 7 Jul 2021 16:11:12 -0400
4+
Subject: [PATCH] fix find qhull
5+
6+
---
7+
CMakeLists.txt | 5 +----
8+
surface/CMakeLists.txt | 9 +++++++--
9+
2 files changed, 8 insertions(+), 6 deletions(-)
10+
111
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index 2c50b8d..c5bdf35 100644
12+
index a1d9bb58f..7cf86f74b 100644
313
--- a/CMakeLists.txt
414
+++ b/CMakeLists.txt
5-
@@ -354,10 +354,7 @@ if(WITH_QHULL)
15+
@@ -359,10 +359,7 @@ if(WITH_QHULL)
616
if(NOT PCL_SHARED_LIBS OR ((WIN32 AND NOT MINGW) AND NOT PCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32))
717
set(QHULL_USE_STATIC ON)
818
endif()
@@ -15,7 +25,7 @@ index 2c50b8d..c5bdf35 100644
1525

1626
# Cuda
1727
diff --git a/surface/CMakeLists.txt b/surface/CMakeLists.txt
18-
index e5e4231..2fb8a46 100644
28+
index d8a8566ea..1953c5566 100644
1929
--- a/surface/CMakeLists.txt
2030
+++ b/surface/CMakeLists.txt
2131
@@ -12,7 +12,7 @@ if(NOT build)
@@ -27,10 +37,10 @@ index e5e4231..2fb8a46 100644
2737
set(HULL_INCLUDES
2838
"include/pcl/${SUBSYS_NAME}/concave_hull.h"
2939
"include/pcl/${SUBSYS_NAME}/convex_hull.h"
30-
@@ -159,7 +159,12 @@ include_directories(SYSTEM
31-
link_directories(${VTK_LIBRARY_DIRS})
32-
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${srcs} ${incs} ${impl_incs} ${VTK_SMOOTHING_INCLUDES} ${POISSON_INCLUDES} ${OPENNURBS_INCLUDES} ${ON_NURBS_INCLUDES})
33-
target_link_libraries("${LIB_NAME}" pcl_common pcl_search pcl_kdtree pcl_octree ${VTK_LIBRARIES} ${ON_NURBS_LIBRARIES})
40+
@@ -186,7 +186,12 @@ if(VTK_FOUND)
41+
endif()
42+
endif()
43+
3444
-if(QHULL_FOUND)
3545
+if(Qhull_FOUND)
3646
+ if(QHULL_USE_STATIC)
@@ -40,4 +50,7 @@ index e5e4231..2fb8a46 100644
4050
+ endif()
4151
target_link_libraries("${LIB_NAME}" ${QHULL_LIBRARIES})
4252
endif()
43-
PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS})
53+
54+
--
55+
2.32.0.windows.1
56+

ports/pcl/fix-link-libpng.patch

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
From 3ea8aa5ded2782cfb10577348fc9f56144c72d7b Mon Sep 17 00:00:00 2001
2+
From: raahilsha-z <[email protected]>
3+
Date: Wed, 7 Jul 2021 15:57:46 -0400
4+
Subject: [PATCH] fix numeric literals flag
5+
6+
---
7+
CMakeLists.txt | 3 +++
8+
1 file changed, 3 insertions(+)
9+
110
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index b301cf1..789b660 100644
11+
index 7cf86f74b..e07fd430a 100644
312
--- a/CMakeLists.txt
413
+++ b/CMakeLists.txt
5-
@@ -462,6 +462,9 @@ endif()
14+
@@ -420,6 +420,9 @@ endif()
615

716
# Boost (required)
817
include("${PCL_SOURCE_DIR}/cmake/pcl_find_boost.cmake")
@@ -12,3 +21,6 @@ index b301cf1..789b660 100644
1221

1322
### ---[ Create the config.h file
1423
set(pcl_config_h_in "${CMAKE_CURRENT_SOURCE_DIR}/pcl_config.h.in")
24+
--
25+
2.32.0.windows.1
26+

ports/pcl/pcl_config.patch

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1+
From 2f4952e1767ad5b0349a03ee56d676d226102381 Mon Sep 17 00:00:00 2001
2+
From: raahilsha-z <[email protected]>
3+
Date: Wed, 7 Jul 2021 15:59:12 -0400
4+
Subject: [PATCH] pcl_config
5+
6+
---
7+
PCLConfig.cmake.in | 12 +++---------
8+
1 file changed, 3 insertions(+), 9 deletions(-)
9+
110
diff --git a/PCLConfig.cmake.in b/PCLConfig.cmake.in
2-
index 9f78fcf..0cbe94f 100644
11+
index a1283a810..4137ed18c 100644
312
--- a/PCLConfig.cmake.in
413
+++ b/PCLConfig.cmake.in
5-
@@ -396,25 +396,16 @@ file(TO_CMAKE_PATH "${PCL_DIR}" PCL_DIR)
14+
@@ -384,6 +384,7 @@ file(TO_CMAKE_PATH "${PCL_DIR}" PCL_DIR)
615
if(WIN32 AND NOT MINGW)
716
# PCLConfig.cmake is installed to PCL_ROOT/cmake
817
get_filename_component(PCL_ROOT "${PCL_DIR}" PATH)
918
+ get_filename_component(PCL_ROOT "${PCL_ROOT}" PATH)
10-
else()
11-
# PCLConfig.cmake is installed to PCL_ROOT/share/pcl-x.y
12-
get_filename_component(PCL_ROOT "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
19+
if(EXISTS "${PCL_ROOT}/3rdParty")
20+
set(PCL_ALL_IN_ONE_INSTALLER ON)
21+
endif()
22+
@@ -393,16 +394,9 @@ else()
1323
endif()
1424

1525
# check whether PCLConfig.cmake is found into a PCL installation or in a build tree
@@ -18,16 +28,16 @@ index 9f78fcf..0cbe94f 100644
1828
- # pcl_message("Found a PCL installation")
1929
- set(PCL_CONF_INCLUDE_DIR "${PCL_ROOT}/include/pcl-${PCL_VERSION_MAJOR}.${PCL_VERSION_MINOR}")
2030
- set(PCL_LIBRARY_DIRS "${PCL_ROOT}/@LIB_INSTALL_DIR@")
21-
- if(EXISTS "${PCL_ROOT}/3rdParty")
22-
- set(PCL_ALL_IN_ONE_INSTALLER ON)
23-
- endif()
2431
-elseif(EXISTS "${PCL_ROOT}/include/pcl/pcl_config.h")
2532
- # Found a non-standard (likely ANDROID) PCL installation
2633
- # pcl_message("Found a PCL installation")
2734
+if(EXISTS "${PCL_ROOT}/include/pcl/pcl_config.h")
2835
set(PCL_CONF_INCLUDE_DIR "${PCL_ROOT}/include")
2936
- set(PCL_LIBRARY_DIRS "${PCL_ROOT}/lib")
3037
+ set(PCL_LIBRARY_DIRS "${PCL_ROOT}/@LIB_INSTALL_DIR@" "${PCL_ROOT}/debug/@LIB_INSTALL_DIR@")
31-
if(EXISTS "${PCL_ROOT}/3rdParty")
32-
set(PCL_ALL_IN_ONE_INSTALLER ON)
33-
endif()
38+
elseif(EXISTS "${PCL_DIR}/include/pcl/pcl_config.h")
39+
# Found PCLConfig.cmake in a build tree of PCL
40+
# pcl_message("PCL found into a build tree.")
41+
--
42+
2.32.0.windows.1
43+

ports/pcl/pcl_utils.patch

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
From 6f4e2fea829b5986863403d6a611c52c5ac8b2a9 Mon Sep 17 00:00:00 2001
2+
From: raahilsha-z <[email protected]>
3+
Date: Wed, 7 Jul 2021 16:00:30 -0400
4+
Subject: [PATCH] pcl_utils
5+
6+
---
7+
cmake/pcl_utils.cmake | 13 ++-----------
8+
1 file changed, 2 insertions(+), 11 deletions(-)
9+
110
diff --git a/cmake/pcl_utils.cmake b/cmake/pcl_utils.cmake
2-
index d87d02d..7c951bf 100644
11+
index d87d02da9..7c951bfd5 100644
312
--- a/cmake/pcl_utils.cmake
413
+++ b/cmake/pcl_utils.cmake
514
@@ -94,21 +94,12 @@ macro(SET_INSTALL_DIRS)
@@ -26,3 +35,6 @@ index d87d02d..7c951bf 100644
2635
endmacro()
2736

2837

38+
--
39+
2.32.0.windows.1
40+

ports/pcl/portfile.cmake

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
vcpkg_from_github(
22
OUT_SOURCE_PATH SOURCE_PATH
33
REPO PointCloudLibrary/pcl
4-
REF d98313133b014553ab1b1b5b112f9aade837d55c # pcl-1.11.1
5-
SHA512 4d60f34d4fbf0a4b4caf9cc4391af471ebd260b3bbac106d45e5ff38448894ea4dc82d5320c2e395c537a4414eb13c6a6a0eb6c13e4e1cc1d831d4bf24067966
4+
REF f36a69a5e89953708990c4669317f989d532cf08 # pcl-1.12.0
5+
SHA512 dbbd0adbb08949ddef2789e0021b6ca9727be33c7193d0bb135c61def09a42ed6a71333f06b6fad407010ecb4b73c19f087f7520386b92a008e90c254eafe422
66
HEAD_REF master
77
PATCHES
8-
pcl_utils.patch
9-
pcl_config.patch
10-
boost-1.70.patch
11-
fix-link-libpng.patch
12-
remove-broken-targets.patch
13-
fix-check-sse.patch
14-
realsense2.patch
158
add-gcc-version-check.patch
9+
fix-check-sse.patch
1610
fix-find-qhull.patch
11+
fix-numeric-literals-flag.patch
12+
pcl_config.patch
13+
pcl_utils.patch
14+
remove-broken-targets.patch
15+
fix-cmake_find_library_suffixes.patch
1716
)
1817

1918
file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindQhull.cmake)
@@ -40,9 +39,8 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
4039
vtk WITH_VTK
4140
)
4241

43-
vcpkg_configure_cmake(
42+
vcpkg_cmake_configure(
4443
SOURCE_PATH ${SOURCE_PATH}
45-
PREFER_NINJA
4644
OPTIONS
4745
# BUILD
4846
-DBUILD_surface_on_nurbs=ON
@@ -59,8 +57,8 @@ vcpkg_configure_cmake(
5957
${FEATURE_OPTIONS}
6058
)
6159

62-
vcpkg_install_cmake()
63-
vcpkg_fixup_cmake_targets()
60+
vcpkg_cmake_install()
61+
vcpkg_cmake_config_fixup()
6462
vcpkg_copy_pdbs()
6563

6664
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

ports/pcl/realsense2.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)