添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Description: Solver for nonlinear least squares problems. Legacy version needed for google cartographer Upstream URL: http://ceres-solver.org/

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