Commit graph

4 commits

Author SHA1 Message Date
Jan Beich
d430b32312 math/ceres-solver: unbreak TBB=on (r470052 didn't help)
In file included from internal/ceres/block_random_access_dense_matrix.cc:31:
In file included from internal/ceres/block_random_access_dense_matrix.h:34:
In file included from internal/ceres/block_random_access_matrix.h:36:
In file included from internal/ceres/mutex.h:98:
include/ceres/internal/port.h:56:4: error: One of CERES_USE_OPENMP, CERES_USE_TBB,CERES_USE_CXX11_THREADS or CERES_NO_THREADS must be defined.
 #  error One of CERES_USE_OPENMP, CERES_USE_TBB,CERES_USE_CXX11_THREADS or CERES_NO_THREADS must be defined.
    ^

Pointy hat to:	jbeich
2018-05-15 20:54:02 +00:00
Jan Beich
1096be95fb math/ceres-solver: unbreak TBB=on
Determining if the include file pthread.h exists failed with the following output:
Change Dir: /wrkdirs/usr/ports/math/ceres-solver/work/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b9506/fast"
/usr/bin/make -f CMakeFiles/cmTC_b9506.dir/build.make CMakeFiles/cmTC_b9506.dir/build
Building C object CMakeFiles/cmTC_b9506.dir/CheckIncludeFile.c.o
/usr/bin/cc   -O2 -pipe  -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -std=c++11 -o CMakeFiles/cmTC_b9506.dir/CheckIncludeFile.c.o   -c /wrkdirs/usr/ports/math/ceres-solver/work/.build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
*** Error code 1
2018-05-15 20:42:11 +00:00
Jan Beich
ffa7fe1a48 math/ceres-solver: update to 1.12.0.r2.3
Changes:	https://github.com/ceres-solver/ceres-solver/compare/1.12.0rc1...c5c6f55
2016-11-13 12:44:25 +00:00
Jan Beich
8ac482a5bf math/ceres-solver: unbreak OPENMP=off on 10.0+ i386
In file included from examples/helloworld.cc:36:
In file included from include/ceres/ceres.h:37:
In file included from include/ceres/autodiff_cost_function.h:132:
In file included from include/ceres/internal/autodiff.h:145:
include/ceres/jet.h:246:3: error: requested alignment is less than minimum alignment of 4 for type 'Eigen::Matrix<double, 1, 1, kAlignHint>'
  alignas(kAlignment) Eigen::Matrix<T, N, 1, kAlignHint> v;
  ^
include/ceres/internal/autodiff.h:232:34: note: in instantiation of template class 'ceres::Jet<double, 1>' requested here
    FixedArray<JetT, (256 * 7) / sizeof(JetT)> x(
                                 ^
include/ceres/autodiff_cost_function.h:211:53: note: in instantiation of member function 'ceres::internal::AutoDiff<CostFunctor, double, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0>::Differentiate' requested here
           N0, N1, N2, N3, N4, N5, N6, N7, N8, N9>::Differentiate(
                                                    ^
examples/helloworld.cc:70:11: note: in instantiation of member function 'ceres::AutoDiffCostFunction<CostFunctor, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0>::Evaluate' requested here
      new AutoDiffCostFunction<CostFunctor, 1, 1>(new CostFunctor);
          ^

Tested by:	cmp before.o after.o # GCC 4.8 / 6.2
2016-11-08 03:54:30 +00:00