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

2.0 fails to compile with ceres-solver-2.2.0: no member named 'CX_SPARSE' in namespace 'ceres' #2255

Open
yurivict opened this issue Oct 20, 2023 · 2 comments

Comments

@yurivict
Copy link

/wrkdirs/usr/ports/misc/openmvg/work/openMVG-2.0/src/openMVG/multiview/rotation_averaging_l2.cpp:287:68: error: no member named 'CX_SPARSE' in namespace 'ceres'; did you mean 'NO_SPARSE'?
  else if (ceres::IsSparseLinearAlgebraLibraryTypeAvailable(ceres::CX_SPARSE))
                                                            ~~~~~~~^~~~~~~~~
                                                                   NO_SPARSE
/usr/local/include/ceres/types.h:184:3: note: 'NO_SPARSE' declared here
  NO_SPARSE
  ^
/wrkdirs/usr/ports/misc/openmvg/work/openMVG-2.0/src/openMVG/multiview/rotation_averaging_l2.cpp:289:63: error: no member named 'CX_SPARSE' in namespace 'ceres'; did you mean 'NO_SPARSE'?
    solverOptions.sparse_linear_algebra_library_type = ceres::CX_SPARSE;
                                                       ~~~~~~~^~~~~~~~~
                                                              NO_SPARSE
/usr/local/include/ceres/types.h:184:3: note: 'NO_SPARSE' declared here
  NO_SPARSE
  ^
2 errors generated.

clang-16
FreeBSD 13.2

@pmoulon
Copy link
Member

pmoulon commented Oct 20, 2023

Thank you. Let's fix that and see if there is a way to be compatible with the old and new API.

@yurivict
Copy link
Author

yurivict commented Oct 21, 2023

The latest revision doesn't have such problem.
Maybe you can just make a release?

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

2 participants