Ky Waegel
unread,Mar 7, 2024, 3:44:02 PMMar 7Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ceres Solver
Not sure if this needs to be fixed upstream, but it's an issue I just encountered that I thought warranted discussion.
We recently upgraded to Ceres v2.2 (from 2.0), and apparently there was a change in how SuiteSparse is detected, now requiring v4.5.6 as the minimum version. This is fine on it's own, but failing to detect SuiteSparse (or finding an older version) is a non-fatal error.
The issue I ran into is that our CI system had an older version of SuiteSparse configured, so it "silently" (log message, but not a build failure) started building Ceres without SuiteSparse.
I'm not sure this is enough of a problem to change long-standing patterns in how Ceres detects libraries, but it seems like something that might bite other people.
To avoid future surprises like this, I'm going to modify our fork of Ceres to report fatal errors if a library is requested but not found. e.g. something like:
message(FATAL_ERROR "-- Did not find all SuiteSparse dependencies. Fix or set SUITESPARSE=OFF")
-Ky Waegel