Note: All this junk is not required anymore :P, ceres has been patched.
Ceres Solver [1] is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
- Non-linear Least Squares problems with bounds constraints.
- General unconstrained optimization problems.
Hopefully, it becomes easier to compile under windows than it used to be..
Start the fun to build it under windows: P
- Download CERES ^^, ceres-solver-1.10.0
- Download Eigen , Current Release 3.2.4
- Download Glog, glog-0.3.3
- Compil will fail: error C2039 std:min not member of std…
- => In logging.cc, #include <algorithm>
- In logging.cc, replace //_asm int 3 with __debugbreak();
- Compilation should be successful in Debug and Release now, (tested with VS2013-VS2012 in X64)
- Download Gflags, use CMake, it compiles…don’t forget to run install and update Install_prefix_path, such as E:\Dev\LIB\Gflags\gflags-2.1.2\X64Release
- Download Suitesparse-metis-for-windows,
- Go there https://github.com/jlblancoc/suitesparse-metis-for-windows/releases
- Get the latest Release : For me it was v1.2.3, https://github.com/jlblancoc/suitesparse-metis-for-windows/archive/v1.2.3.zip
- SET, SUITESPARSE_INSTALL_PREFIX
- Configure and build
- Finally, Use Cmake on Ceres folder
- All example projects and CERES should build then , but as mentioned some example projects required the need to add shlwapi.lib to handle this annoying error LNK2019 __imp_PathMatchSpecA
- => you can fix this also if you need the example by adding shlwapi.lib in the CMAKE_CXX_STANDARD_LIBRAIRIES of CERES
~GLHF