Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error from ceres when building #2325

Open
insomniaacoma opened this issue May 13, 2024 · 1 comment
Open

error from ceres when building #2325

insomniaacoma opened this issue May 13, 2024 · 1 comment

Comments

@insomniaacoma
Copy link

something gets wrong while building the third-party software cere, I'd appreciate it if you give some tips.
[ 36%] Building CXX object third_party/ceres-solver/internal/ceres/CMakeFiles/openMVG_ceres.dir/gradient_checker.cc.obj
In file included from D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/internal/variadic_evaluate.h:37,
from D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/internal/numeric_diff.h:45,
from D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/dynamic_numeric_diff_cost_function.h:44,
from D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/gradient_checker.h:41,
from D:\jichuang\openMVG\src\third_party\ceres-solver\internal\ceres\gradient_checker.cc:33:
D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/jet.h: In function 'double ceres::BesselJ0(double)':
D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/jet.h:568:10: error: 'j0' was not declared in this scope
return j0(x);
^~
D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/jet.h: In function 'double ceres::BesselJ1(double)':
D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/jet.h:575:10: error: 'j1' was not declared in this scope
return j1(x);
^~
D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/jet.h: In function 'double ceres::BesselJn(int, double)':
D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/jet.h:582:10: error: 'jn' was not declared in this scope
return jn(n, x);
^~
D:/jichuang/openMVG/src/third_party/ceres-solver/include/ceres/jet.h:582:10: note: suggested alternative: 'n'
return jn(n, x);
^~
n

@insomniaacoma
Copy link
Author

problem has been solved by adding #undef STRICT_ANSI. opencv/opencv_contrib#3013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant