Skip to content

Instantly share code, notes, and snippets.

@matlabbe
matlabbe / g2o_ee3d9488eeaa22f9d4ee9de46408968d42157a56_aarch64.patch
Created June 11, 2025 21:17
g2o patch on ros noetic version (ee3d9488eeaa22f9d4ee9de46408968d42157a56) with fix against "g2o/csparse cholesky failed!"
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b89b6c8..0202a4b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -224,11 +224,6 @@ macro(DEFINE_SSE_VAR _setname)
endmacro(DEFINE_SSE_VAR)
# SSE optimizations:
-DEFINE_SSE_VAR(SSE2)
-DEFINE_SSE_VAR(SSE3)
cmake_minimum_required(VERSION 3.5)
project(lz4)
IF(${CMAKE_GENERATOR} MATCHES ".*Makefiles")
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
set(CMAKE_BUILD_TYPE Release)
ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
ENDIF(${CMAKE_GENERATOR} MATCHES ".*Makefiles")
@matlabbe
matlabbe / realsense2_t265.patch
Created March 19, 2023 20:55
Fixing realsense2 t265 image synchronization for >= v2.43
diff --git a/src/proc/syncer-processing-block.cpp b/src/proc/syncer-processing-block.cpp
index 34ebcb492..020b88eb7 100644
--- a/src/proc/syncer-processing-block.cpp
+++ b/src/proc/syncer-processing-block.cpp
@@ -11,7 +11,7 @@
namespace librealsense
{
syncer_process_unit::syncer_process_unit(std::initializer_list< bool_option::ptr > enable_opts, bool log)
- : processing_block("syncer"), _matcher((new composite_identity_matcher({})))
+ : processing_block("syncer"), _matcher((new timestamp_composite_matcher({})))
@matlabbe
matlabbe / pointmatcher_windows_dll.patch
Last active March 19, 2023 19:11
Build libpointmatcher as shared library on Windows (tested with libpointmatcher 7dc58e5)
diff --git a/.gitignore b/.gitignore
index 85152fb..da016a7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
*.cur_trans
build
.ipynb_checkpoints/
+pointmatcher/pm_export.h
\ No newline at end of file
@matlabbe
matlabbe / rtabmap_opencv310_backward_compatibility.patch
Last active November 19, 2023 02:19
rtabmap compilation fix with opencv 3.1.0
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f2bfd83..65b03eef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -228,7 +228,7 @@ ENDIF()
set(RTABMAP_QT_VERSION AUTO CACHE STRING "Force a specific Qt version.")
set_property(CACHE RTABMAP_QT_VERSION PROPERTY STRINGS AUTO 4 5 6)
-FIND_PACKAGE(OpenCV REQUIRED QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco xfeatures2d nonfree gpu cudafeatures2d)
+FIND_PACKAGE(OpenCV QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco xfeatures2d nonfree gpu cudafeatures2d)
@matlabbe
matlabbe / opengv_disable_march_native.patch
Created June 26, 2022 02:53
Disable OpenGV march native compile option
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9660f55..ca01034 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,12 +31,12 @@ IF(MSVC)
add_definitions(-D_USE_MATH_DEFINES)
ELSE()
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(arm64)|(ARM64)|(aarch64)|(AARCH64)")
- add_definitions (-march=armv8-a)
+ #add_definitions (-march=armv8-a)
diff --git a/CMake/vtkAndroid.cmake b/CMake/vtkAndroid.cmake
index 3b8a66e491..f5745bc750 100644
--- a/CMake/vtkAndroid.cmake
+++ b/CMake/vtkAndroid.cmake
@@ -96,7 +96,8 @@ set(android_cmake_flags
-DANT_EXECUTABLE:FILE=${ANT_EXECUTABLE}
-DBUILD_SHARED_LIBS:BOOL=OFF
-DBUILD_TESTING:BOOL=OFF
- -DBUILD_EXAMPLES:BOOL=${BUILD_EXAMPLES}
+ -DBUILD_EXAMPLES:BOOL=OFF
@matlabbe
matlabbe / opencv_ios.patch
Created November 16, 2021 22:18
OpenCV 3.4.2 patch for ios
diff --git a/3rdparty/libpng/CMakeLists.txt b/3rdparty/libpng/CMakeLists.txt
index da290292c5..e514079f8a 100644
--- a/3rdparty/libpng/CMakeLists.txt
+++ b/3rdparty/libpng/CMakeLists.txt
@@ -2,7 +2,7 @@
# CMake file for libpng. See root CMakeLists.txt
#
# ----------------------------------------------------------------------------
-
+add_definitions(-DPNG_ARM_NEON_OPT=0)
@matlabbe
matlabbe / flann_ios.patch
Last active May 26, 2025 00:34
flann 1.8.4 patch for ios build
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3279915..c1f930a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -155,9 +155,9 @@ endif(WIN32)
add_subdirectory( cmake )
add_subdirectory( src )
-add_subdirectory( examples )
-add_subdirectory( test )
@matlabbe
matlabbe / alicevision_0f6115b.patch
Last active June 15, 2025 23:58
Patches to make latest AliceVision (as Sept 13 2021) works with rtabmap library (no crash, all unwrapping methods working)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3a5c91d30..24890beab 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -125,6 +125,8 @@ if(WIN32)
endif()
endif()
+add_definitions( -DVL_DISABLE_SSE2 ) # https://github.com/introlab/rtabmap/issues/1536
+