Package Details: ceres-solver-legacy 1.14.0-6

Git Clone URL: https://aur.archlinux.org/ceres-solver-legacy.git (read-only, click to copy)
Package Base: ceres-solver-legacy
Description: Solver for nonlinear least squares problems. Legacy version needed for google cartographer
Upstream URL: http://ceres-solver.org/
Keywords: ceres-solver
Licenses: LGPL
Conflicts: ceres-solver
Provides: ceres-solver
Submitter: fmauch
Maintainer: None
Last Packager: kino_t
Votes: 0
Popularity: 0.000000
First Submitted: 2020-12-01 11:40 (UTC)
Last Updated: 2023-09-17 07:17 (UTC)

Dependencies (5)

Required by (17)

Sources (3)

Latest Comments

leuko commented on 2022-01-19 16:39 (UTC)

I got the following error during build:

CMake Error at cmake/FindTBB.cmake:224 (file):                                                                                                                                                                                               
  file failed to open for reading (No such file or directory):                                                                                                                                                                               

    /usr/include/tbb/tbb_stddef.h                                                                                                                                                                                                            
Call Stack (most recent call first):                                                                                                                                                                                                         
  cmake/FindSuiteSparse.cmake:294 (find_package)                                                                                                                                                                                             
  CMakeLists.txt:266 (find_package)

I backported a patch from the newest version, now ceres compiles.

...
source=(
    http://ceres-solver.org/ceres-solver-1.14.0.tar.gz                                                                                                                                                                                       

    # git clone https://ceres-solver.googlesource.com/ceres-solver                                                                                                                                                                           
    # git diff 1.14.0...941ea13475913ef8322584f7401633de9967ccc8 cmake/FindTBB.cmake                                                                                                                                                         
    fix_cmake_findtbb.patch                                                                                                                                                                                                                  
)
sha256sums=(                                                                                                                                                                                                                                 
    ...                                                                                                                                                                         
    e274c29541e813ac8fe3c470dc8399f56a3e272f9798bd86f41e9d43bab3b33e                                                                                                                                                                         
)


...
conflicts=...

prepare() {                                                                                                                                                                                                                                  
  patch --directory=ceres-solver-$pkgver --strip=1 < fix_cmake_findtbb.patch                                                                                                                                                                 
}

_cmakeopts=...

you can generate the patch by:

git clone https://ceres-solver.googlesource.com/ceres-solver
git diff 1.14.0...941ea13475913ef8322584f7401633de9967ccc8 cmake/FindTBB.cmake