Comments (8)
@sandwichmaker could you tell me why above problem occured ?
from ceres-solver.
The error stems from your Homebrew version of SuiteSparse not from Ceres:
/opt/homebrew/lib/cmake/SuiteSparse_config/SuiteSparse_configConfig.cmake:68 (find_dependency)
For some reason, the OpenMP C component is not usable. You could check the CMake configure log to identify the issue.
from ceres-solver.
@sergiud if not ceres proplem, why can i replace ceres version solve the problem ?
from ceres-solver.
@sergiud ceres 2.1.0 is ok, but ceres 2.2.0 not ok
from ceres-solver.
Three people around me have all experienced this problem,we just run "brew update" and the problem occurred, my home brew version: Homebrew 4.0.23-12-ge986264
from ceres-solver.
While Ceres 2.1.0 supported OpenMP as one of the threading backends, Ceres 2.2.0 removed OpenMP support in 06bfe6f. This is likely the reason why the issue no longer occurs in Ceres 2.2.0. However, even in 2.1.0 Ceres did nothing special here:
Therefore, I suggest reporting the issue to Homebrew or SuiteSparse maintainers. There seems to be a conflict in the way OpenMP components are requested and used. Relying on a language specific version of OpenMP in the dependency chain can generally cause problems, e.g., if a CMake project that enables the use of a CXX compiler only also depends on a component requiring a C compiler (and vice versa).
from ceres-solver.
@sergiud how can i remove OpenMP support in ceres 2.1.0 ?
from ceres-solver.
You could try explicitly setting the CERES_THREADING_MODEL
CMake variable, e.g., to CXX_THREADS
to avoid Ceres invoking the above find_package
call. Alternatively, you can unconditionally set the threading backend to CXX_THREADS
here:
ceres-solver/cmake/CeresThreadingModels.cmake
Lines 65 to 82 in f68321e
from ceres-solver.
Related Issues (20)
- cant find_package(Ceres REQUIRED) on macos !!!
- The program crashes when executing solve() HOT 3
- Compare ceres with scipy curve_fit HOT 8
- Bazel build fails HOT 1
- Merely including Ceres header file causes LNK2019 error (unresolved external symbol) from MSVC. HOT 4
- How to correctly call the official CUDA module of ceres? HOT 6
- Aborted error in ceres::Solve() HOT 5
- Setting Parameter Weights or Covariance Values HOT 1
- When I execute the cmake, it says add_library cannot create imported target "glog::glog" because another target with the same name already exists. HOT 3
- CHOLMOD print even on silent mode HOT 2
- 2.2.0 online doc typo HOT 2
- Couldn't find CUDA library root HOT 2
- Failed to find Ceres - Missing required Ceres dependency: glog. Searched using GLOG_INCLUDE_DIR_HINTS: /usr/include and glog_DIR: . HOT 2
- Build error, marked "override", but does not override HOT 2
- Boundary interpolation bug HOT 2
- how to optimize the BA with direct method? HOT 2
- 2.2.0: test suite fails in `polynomial_test` unit
- Upgrading CERES v1.14.0 to v2.0.0 - Error when linking CERES v2.0.0 in a C++ project HOT 5
- nvcc fatal : Unknown option '-extended-lambda' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceres-solver.