Take abseil as a dependency

1. Add abseil-cpp as a submodule. We are tracking the latest LTS
release, which is lts_2024_01_16.
2. Replace glog/gflags with absl::log and absl::flags.
3. Remove miniglog
4. Also take a whack at making the bazel build work with
   abseil-cpp and gtest.

There are a number of TODOs in this CL that still need to be resolved.

Change-Id: I39355ed7d61375be4ebcbc8596d9cc70acc1c678
This commit is contained in:
Sameer Agarwal
2024-07-07 10:24:18 -07:00
parent 21b026aa2c
commit 0a53aa9054
218 changed files with 1140 additions and 2160 deletions
+3 -2
View File
@@ -39,9 +39,10 @@
#include <utility>
#include "absl/log/check.h"
#include "absl/log/initialize.h"
#include "ceres/ceres.h"
#include "ceres/cubic_interpolation.h"
#include "glog/logging.h"
using Grid = ceres::Grid2D<double>;
using Interpolator = ceres::BiCubicInterpolator<Grid>;
@@ -87,7 +88,7 @@ static double f(const double& x, const double& y) {
}
int main(int argc, char** argv) {
google::InitGoogleLogging(argv[0]);
absl::InitializeLog();
// Problem sizes
const int kGridRowsHalf = 9;
const int kGridColsHalf = 11;