Package Details: gtsam 1:4.2-1

Git Clone URL: https://aur.archlinux.org/gtsam.git (read-only, click to copy)
Package Base: gtsam
Description: A library of C++ classes that implement smoothing and mapping (SAM) in robotics and vision, using factor graphs and Bayes networks as the underlying computing paradigm rather than sparse matrices.
Upstream URL: https://gtsam.org/
Licenses: BSD-3-Clause
Provides: gtsam
Submitter: kartikmohta
Maintainer: envolution
Last Packager: envolution
Votes: 2
Popularity: 0.000000
First Submitted: 2013-12-06 18:38 (UTC)
Last Updated: 2025-06-01 17:31 (UTC)

Dependencies (5)

Sources (1)

Latest Comments

1 2 3 Next › Last »

petronny commented on 2025-06-01 14:01 (UTC)

Please use 4.2.0 instead of 4.2 since vercmp shows 4.2.0 is bigger. They are pointing to the same commit.

pirofti commented on 2025-04-23 08:47 (UTC)

I get a cmake error when trying to compile:

==> Starting build()...
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

calcmogul commented on 2023-09-10 02:27 (UTC)

It would be nice to have the patch I mentioned before applied, so I don't have to keep modifying the PKGBUILD. The suggested changes are also shown in the Arch Linux CMake package guidelines: https://wiki.archlinux.org/title/CMake_package_guidelines#Template

calcmogul commented on 2022-11-20 18:02 (UTC)

I had to apply the following patch to make this package build if the default generator is something other than make (e.g., ninja).

diff --git a/PKGBUILD b/PKGBUILD
index b38654c..d6bdadf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -30,12 +30,12 @@ build() {
     -DGTSAM_INSTALL_GEOGRAPHICLIB=OFF \
     -DGTSAM_USE_SYSTEM_EIGEN=ON \
     ..
-  make
+  cmake --build .
 }

 package() {
   cd "${srcdir}/${pkgname}-${pkgver}/build"
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="${pkgdir}" cmake --install .
   install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

acxz commented on 2020-05-08 02:30 (UTC) (edited on 2020-05-08 02:34 (UTC) by acxz)

@kartikmohta thanks for the offer, means a lot! However, my time with gtsam might end soon, besides, having someone else look at the changes is definitely better for quality. If you could set up a github mirror for you PKGBUILDs using aurpublish(https://github.com/eli-schwartz/aurpublish) that would be even better tho. Then I could submit PRs directly.

Right now I'm just trying to vet out warnings and seeing if some of these 3rdParty codebases can be vendored out.

acxz commented on 2020-05-08 02:25 (UTC) (edited on 2020-05-08 02:26 (UTC) by acxz)

/> It's only used for some tests which we don't build anyway.

Ah yes it seems like you are right. There is the following line:

gtsam/navigation/GPSFactor.h:58:   * Use GeographicLib to convert from geographic (latitude and longitude) coordinates

that mentions GepgraphiLib but nothing from GeographLib is required for the *.cpp version of that file. The rest of the mentions (and includes) are in the navigation/tests.

kartikmohta commented on 2020-05-08 01:29 (UTC)

@acxz I can add you as a co-maintainer of this and the other gtsam-* packages if you are willing to help and are also regularly using it. I don't really use gtsam these days.

kartikmohta commented on 2020-05-08 01:27 (UTC)

As far as I can see, geographiclib is not really a dependency. It's only used for some tests which we don't build anyway.

acxz commented on 2020-05-08 01:20 (UTC)

@kartikmohta Even though geographiclib is vendored in the GTSAM codebase, they check to see if a system level package is installed before installing their own copy. For example this is what I see in my cmake output with the geographiclib package installed: -- Found GeographicLib: /usr/lib Can you add geographiclib as dep?

acxz commented on 2020-05-08 01:11 (UTC)

Sweet thank you!