-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gtsam: add v4.2.0a9, update package options #17933
Changes from all commits
379f867
bca797e
b0d6a4a
8538d81
f764397
b0f8643
54774bb
a1fc0f8
26e7ded
2eaccc3
5f37a67
559483f
80e9e35
033a3a5
9159840
1eb1af5
3cc6138
4a60b17
6bc7b0a
d2df520
6c396f6
656ba7e
b4064b5
e024fae
c975fae
ede170c
b9eccbe
6ef35f5
8b7d26a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
sources: | ||
"4.2.0a9": | ||
url: "https://github.com/borglab/gtsam/archive/refs/tags/4.2a9.tar.gz" | ||
sha256: "a9790e5132bfb2705a5985a1505c3cf9cdf95b711be8352ffa9a9299b279f2f8" | ||
"4.1.1": | ||
url: "https://github.com/borglab/gtsam/archive/4.1.1.tar.gz" | ||
sha256: "c7b5e6cdad52b141c272778f47baf628975457be3e26ed96a7bc2ae685a00af0" | ||
"4.0.3": | ||
url: "https://github.com/borglab/gtsam/archive/4.0.3.tar.gz" | ||
sha256: "eaa561749edf7a2d402981828253e28aed6c717dae35738301c5ab23e2595f25" | ||
"4.0.2": | ||
url: "https://github.com/borglab/gtsam/archive/4.0.2.tar.gz" | ||
sha256: "8770a440f1af98c3f0d9d4dffd568de2d4c21b245e7231e987e26bc236aeb5aa" | ||
patches: | ||
"4.2.0a9": | ||
- patch_file: "patches/4.1.1-0001-cmake-boost.patch" | ||
patch_description: "Use boost targets" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.2.0-0001-macos-rpath.patch" | ||
patch_description: "Relocatable shared libs on Apple OS" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.2.0-0002-eigen3-version.patch" | ||
patch_description: "Get Eigen3 version info from Conan" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.2.0a9-0001-fix-invalid-include.patch" | ||
patch_description: "Fix an invalid include for pre-C++17 compatibility" | ||
patch_type: "portability" | ||
patch_source: "https://github.com/borglab/gtsam/pull/1545" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great catch! Thanks for porting it upstream :) |
||
"4.1.1": | ||
- patch_file: "patches/4.1.1-0001-cmake-boost.patch" | ||
patch_description: "Use boost targets" | ||
|
@@ -19,9 +33,12 @@ patches: | |
- patch_file: "patches/4.1.1-0003-macos-rpath.patch" | ||
patch_description: "Relocatable shared libs on Apple OS" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.0.2-0003-cmake-project.patch" | ||
- patch_file: "patches/4.0.3-0004-cmake-project.patch" | ||
patch_description: "CMake: move project() after cmake_minimum_required()" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.1.1-0005-eigen3-version.patch" | ||
patch_description: "Get Eigen3 version info from Conan" | ||
patch_type: "conan" | ||
"4.0.3": | ||
- patch_file: "patches/4.0.3-0001-cmake-boost.patch" | ||
patch_description: "Use boost targets" | ||
|
@@ -32,19 +49,6 @@ patches: | |
- patch_file: "patches/4.0.3-0003-macos-rpath.patch" | ||
patch_description: "Relocatable shared libs on Apple OS" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.0.2-0003-cmake-project.patch" | ||
patch_description: "CMake: move project() after cmake_minimum_required()" | ||
patch_type: "conan" | ||
"4.0.2": | ||
- patch_file: "patches/4.0.2-0001-cmake-boost.patch" | ||
patch_description: "Use boost targets" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.0.2-0002-cmake-eigen.patch" | ||
patch_description: "Use Eigen include variable from CMakeDeps" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.0.2-0003-macos-rpath.patch" | ||
patch_description: "Relocatable shared libs on Apple OS" | ||
patch_type: "conan" | ||
- patch_file: "patches/4.0.2-0003-cmake-project.patch" | ||
- patch_file: "patches/4.0.3-0004-cmake-project.patch" | ||
patch_description: "CMake: move project() after cmake_minimum_required()" | ||
patch_type: "conan" |
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Otherwise the Eigen version detection will fail due to the Eigen path variable containing a generator expression. | ||
diff --git a/cmake/HandleEigen.cmake b/cmake/HandleEigen.cmake | ||
--- a/cmake/HandleEigen.cmake | ||
+++ b/cmake/HandleEigen.cmake | ||
@@ -46,6 +46,8 @@ | ||
endif() | ||
|
||
# Detect Eigen version: | ||
+set(GTSAM_EIGEN_VERSION "${Eigen3_VERSION_STRING}") | ||
+if (FALSE) | ||
set(EIGEN_VER_H "${GTSAM_EIGEN_INCLUDE_FOR_BUILD}/Eigen/src/Core/util/Macros.h") | ||
if (EXISTS ${EIGEN_VER_H}) | ||
file(READ "${EIGEN_VER_H}" STR_EIGEN_VERSION) | ||
@@ -67,6 +69,7 @@ | ||
else() | ||
message(WARNING "Cannot determine Eigen version, missing file: `${EIGEN_VER_H}`") | ||
endif () | ||
+endif() | ||
|
||
if (MSVC) | ||
if (BUILD_SHARED_LIBS) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -5,5 +5,4 @@ cmake_minimum_required(VERSION 3.0) | ||
if(NOT DEFINED CMAKE_MACOSX_RPATH) | ||
- set(CMAKE_MACOSX_RPATH 0) | ||
endif() | ||
|
||
# Set the version number for the library | ||
--- a/cmake/HandleGlobalBuildFlags.cmake | ||
+++ b/cmake/HandleGlobalBuildFlags.cmake | ||
@@ -20,7 +20,6 @@ endif() | ||
|
||
if (APPLE AND BUILD_SHARED_LIBS) | ||
# Set the default install directory on macOS | ||
- set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") | ||
endif() | ||
|
||
############################################################################### | ||
--- a/gtsam/3rdparty/metis/libmetis/CMakeLists.txt | ||
+++ b/gtsam/3rdparty/metis/libmetis/CMakeLists.txt | ||
@@ -17,9 +17,6 @@ if(WIN32) | ||
endif() | ||
|
||
if (APPLE) | ||
- set_target_properties(metis-gtsam PROPERTIES | ||
- INSTALL_NAME_DIR | ||
- "${CMAKE_INSTALL_PREFIX}/lib") | ||
endif() | ||
|
||
install(TARGETS metis-gtsam EXPORT GTSAM-exports |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/cmake/HandleEigen.cmake b/cmake/HandleEigen.cmake | ||
--- a/cmake/HandleEigen.cmake | ||
+++ b/cmake/HandleEigen.cmake | ||
@@ -59,6 +59,8 @@ | ||
endif() | ||
|
||
# Detect Eigen version: | ||
+set(GTSAM_EIGEN_VERSION "${Eigen3_VERSION_STRING}") | ||
+if (FALSE) | ||
set(EIGEN_VER_H "${GTSAM_EIGEN_INCLUDE_FOR_BUILD}/Eigen/src/Core/util/Macros.h") | ||
if (EXISTS ${EIGEN_VER_H}) | ||
file(READ "${EIGEN_VER_H}" STR_EIGEN_VERSION) | ||
@@ -80,6 +82,7 @@ | ||
else() | ||
message(WARNING "Cannot determine Eigen version, missing file: `${EIGEN_VER_H}`") | ||
endif () | ||
+endif() | ||
|
||
if (MSVC) | ||
if (BUILD_SHARED_LIBS) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/gtsam/sfm/DsfTrackGenerator.h b/gtsam/sfm/DsfTrackGenerator.h | ||
--- a/gtsam/sfm/DsfTrackGenerator.h (revision c57988fe554e7213c77fe379c1d7c483de26ad33) | ||
+++ b/gtsam/sfm/DsfTrackGenerator.h (revision 26a37d62103a9b3b828d36e8b1a76f875ed842e3) | ||
@@ -22,7 +22,7 @@ | ||
|
||
#include <Eigen/Core> | ||
#include <map> | ||
-#include <optional> | ||
+#include <boost/optional.hpp> | ||
#include <vector> | ||
|
||
namespace gtsam { |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
versions: | ||
"4.2.0a9": | ||
folder: all | ||
"4.1.1": | ||
folder: all | ||
"4.0.3": | ||
folder: all | ||
"4.0.2": | ||
folder: all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valgur I realized that the official version is
4.2a9
, should not it be better to put the same one? Am I missing something?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I based it on the full version number in CMakeLists.txt: https://github.com/borglab/gtsam/blob/4.2a9/CMakeLists.txt#L10-L13
My reasoning was that the official release is going to be
4.2.0
, so this would be slightly more consistent and would avoid potential ambiguity when sorting the version numbers.I don't have anything against renaming it to
4.2a9
either, though.