You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all,I want to say I love the script put forth in here. Simply amazing, detailed and easy to interpret.
Every package installation and download worked A-Ok but during build I came across this issue after 9% of build.
In file included from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/numeric_diff.h:43:0, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/dynamic_numeric_diff_cost_function.h:44, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/gradient_checker.h:42, from /home/imr555/Desktop/opencv/ceres-solver/internal/ceres/gradient_checker.cc:33: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h: In static member function ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial()’: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:13: error: ‘is_trivially_default_constructible’ is not a member of ‘std’ return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:67: error: expected primary-expression before ‘>’ token return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:68: error: ‘::value’ has not been declared return !std::is_trivially_default_constructible<StorageElement>::value; ^ In file included from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/numeric_diff.h:43:0, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/dynamic_numeric_diff_cost_function.h:44, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/gradient_checker.h:42, from /home/imr555/Desktop/opencv/ceres-solver/internal/ceres/gradient_checking_cost_function.cc:41: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h: In static member function ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial()’: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:13: error: ‘is_trivially_default_constructible’ is not a member of ‘std’ return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:67: error: expected primary-expression before ‘>’ token return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:68: error: ‘::value’ has not been declared return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h: In instantiation of ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial() [with T = double; long unsigned int N = 18446744073709551615ul; A = std::allocator<double>]’: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:137:40: required from ‘ceres::internal::FixedArray<T, N, A>::FixedArray(ceres::internal::FixedArray<T, N, A>::size_type, const allocator_type&) [with T = double; long unsigned int N = 18446744073709551615ul; A = std::allocator<double>; ceres::internal::FixedArray<T, N, A>::size_type = long unsigned int; ceres::internal::FixedArray<T, N, A>::allocator_type = std::allocator<double>]’ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/numeric_diff.h:126:66: required from ‘static bool ceres::internal::NumericDiff<CostFunctor, kMethod, kNumResiduals, ParameterDims, kParameterBlock, kParameterBlockSize>::EvaluateJacobianForParameterBlock(const CostFunctor*, const double*, const ceres::NumericDiffOptions&, int, int, int, double**, double*) [with CostFunctor = ceres::CostFunction; ceres::NumericDiffMethodType kMethod = (ceres::NumericDiffMethodType)0u; int kNumResiduals = -1; ParameterDims = ceres::internal::ParameterDims<true>; int kParameterBlock = -1; int kParameterBlockSize = -1]’ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/dynamic_numeric_diff_cost_function.h:146:35: required from ‘bool ceres::DynamicNumericDiffCostFunction<CostFunctor, method>::Evaluate(const double* const*, double*, double**) const [with CostFunctor = ceres::CostFunction; ceres::NumericDiffMethodType method = (ceres::NumericDiffMethodType)0u]’ /home/imr555/Desktop/opencv/ceres-solver/internal/ceres/gradient_checker.cc:277:1: required from here /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:104:3: error: body of constexpr function ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial() [with T = double; long unsigned int N = 18446744073709551615ul; A = std::allocator<double>]’ not a return-statement } ^ internal/ceres/CMakeFiles/ceres.dir/build.make:1142: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/gradient_checking_cost_function.cc.o' failed make[2]: *** [internal/ceres/CMakeFiles/ceres.dir/gradient_checking_cost_function.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... internal/ceres/CMakeFiles/ceres.dir/build.make:1118: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/gradient_checker.cc.o' failed make[2]: *** [internal/ceres/CMakeFiles/ceres.dir/gradient_checker.cc.o] Error 1 CMakeFiles/Makefile2:1861: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/all' failed make[1]: *** [internal/ceres/CMakeFiles/ceres.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
Might be some sort of issue in the latest ceres package. I did a bit of googling. But haven't been able to build it successfully yet. I am fairly new to this. So, suggestions on running this script locally would also be helpful :) . Any suggestions would be helpful. Thanks in advance
The text was updated successfully, but these errors were encountered:
imr555
changed the title
Build failing while during build of Ceres Solver.
Build failing during build of Ceres Solver.
Jul 18, 2019
First of all,I want to say I love the script put forth in here. Simply amazing, detailed and easy to interpret.
Every package installation and download worked A-Ok but during build I came across this issue after 9% of build.
In file included from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/numeric_diff.h:43:0, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/dynamic_numeric_diff_cost_function.h:44, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/gradient_checker.h:42, from /home/imr555/Desktop/opencv/ceres-solver/internal/ceres/gradient_checker.cc:33: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h: In static member function ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial()’: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:13: error: ‘is_trivially_default_constructible’ is not a member of ‘std’ return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:67: error: expected primary-expression before ‘>’ token return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:68: error: ‘::value’ has not been declared return !std::is_trivially_default_constructible<StorageElement>::value; ^ In file included from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/numeric_diff.h:43:0, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/dynamic_numeric_diff_cost_function.h:44, from /home/imr555/Desktop/opencv/ceres-solver/include/ceres/gradient_checker.h:42, from /home/imr555/Desktop/opencv/ceres-solver/internal/ceres/gradient_checking_cost_function.cc:41: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h: In static member function ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial()’: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:13: error: ‘is_trivially_default_constructible’ is not a member of ‘std’ return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:67: error: expected primary-expression before ‘>’ token return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:103:68: error: ‘::value’ has not been declared return !std::is_trivially_default_constructible<StorageElement>::value; ^ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h: In instantiation of ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial() [with T = double; long unsigned int N = 18446744073709551615ul; A = std::allocator<double>]’: /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:137:40: required from ‘ceres::internal::FixedArray<T, N, A>::FixedArray(ceres::internal::FixedArray<T, N, A>::size_type, const allocator_type&) [with T = double; long unsigned int N = 18446744073709551615ul; A = std::allocator<double>; ceres::internal::FixedArray<T, N, A>::size_type = long unsigned int; ceres::internal::FixedArray<T, N, A>::allocator_type = std::allocator<double>]’ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/numeric_diff.h:126:66: required from ‘static bool ceres::internal::NumericDiff<CostFunctor, kMethod, kNumResiduals, ParameterDims, kParameterBlock, kParameterBlockSize>::EvaluateJacobianForParameterBlock(const CostFunctor*, const double*, const ceres::NumericDiffOptions&, int, int, int, double**, double*) [with CostFunctor = ceres::CostFunction; ceres::NumericDiffMethodType kMethod = (ceres::NumericDiffMethodType)0u; int kNumResiduals = -1; ParameterDims = ceres::internal::ParameterDims<true>; int kParameterBlock = -1; int kParameterBlockSize = -1]’ /home/imr555/Desktop/opencv/ceres-solver/include/ceres/dynamic_numeric_diff_cost_function.h:146:35: required from ‘bool ceres::DynamicNumericDiffCostFunction<CostFunctor, method>::Evaluate(const double* const*, double*, double**) const [with CostFunctor = ceres::CostFunction; ceres::NumericDiffMethodType method = (ceres::NumericDiffMethodType)0u]’ /home/imr555/Desktop/opencv/ceres-solver/internal/ceres/gradient_checker.cc:277:1: required from here /home/imr555/Desktop/opencv/ceres-solver/include/ceres/internal/fixed_array.h:104:3: error: body of constexpr function ‘static constexpr bool ceres::internal::FixedArray<T, N, A>::DefaultConstructorIsNonTrivial() [with T = double; long unsigned int N = 18446744073709551615ul; A = std::allocator<double>]’ not a return-statement } ^ internal/ceres/CMakeFiles/ceres.dir/build.make:1142: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/gradient_checking_cost_function.cc.o' failed make[2]: *** [internal/ceres/CMakeFiles/ceres.dir/gradient_checking_cost_function.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... internal/ceres/CMakeFiles/ceres.dir/build.make:1118: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/gradient_checker.cc.o' failed make[2]: *** [internal/ceres/CMakeFiles/ceres.dir/gradient_checker.cc.o] Error 1 CMakeFiles/Makefile2:1861: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/all' failed make[1]: *** [internal/ceres/CMakeFiles/ceres.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
Might be some sort of issue in the latest ceres package. I did a bit of googling. But haven't been able to build it successfully yet. I am fairly new to this. So, suggestions on running this script locally would also be helpful :) . Any suggestions would be helpful. Thanks in advance
The text was updated successfully, but these errors were encountered: