mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Compile miniglog into Ceres if enabled on all platforms.
- Previously if miniglog was being used (on a non-Android system), we compiled it into a separate library, against which Ceres then linked. - This was unsatisfactory as it required miniglog being built as a static library when building Ceres as a Windows DLL, because miniglog did not use the dllexport/dllimport statements, whilst for other platforms when building Ceres as a shared library, miniglog needed to be compiled as a shared library. - We now compile miniglog into Ceres on all platforms, not just on Android. - miniglog now uses the CERES_EXPORT macro to support Windows DLLs. This means that miniglog now depends on Ceres' internal/port.h (and thus internal/config.h) which define the CERES_EXPORT macro and control its behaviour respectively. - miniglog now also uses localtime_s, not localtime on Windows. Change-Id: Ia55b9af8b4e6decf067eab92f0a5c2d14358a1e9
This commit is contained in:
committed by
Sameer Agarwal
parent
0cc1bc5bbd
commit
ec6bfa5b12
@@ -368,13 +368,13 @@ build for ``OS`` (``armv7``, ``armv7s``, ``arm64``), ``SIMULATOR`` (``i386``) or
|
||||
``SIMULATOR64`` (``x86_64``) separately and use ``LIPO`` to merge them into
|
||||
one static library. See ``cmake/iOS.cmake`` for more options.
|
||||
|
||||
After building, you will get ``libceres.a`` and ``libminiglog.a``
|
||||
You need to add these two libraries into your XCode project.
|
||||
After building, you will get a ``libceres.a`` library, which you will need to
|
||||
add to your Xcode project.
|
||||
|
||||
The default CMake configuration builds a bare bones version of Ceres
|
||||
Solver that only depends on Eigen and MINIGLOG, this should be
|
||||
sufficient for solving small to moderate sized problems (No
|
||||
``SPARSE_SCHUR``, ``SPARSE_NORMAL_CHOLESKY`` linear solvers and no
|
||||
Solver that only depends on Eigen (``MINIGLOG`` is compiled into Ceres if it is
|
||||
used), this should be sufficient for solving small to moderate sized problems
|
||||
(No ``SPARSE_SCHUR``, ``SPARSE_NORMAL_CHOLESKY`` linear solvers and no
|
||||
``CLUSTER_JACOBI`` and ``CLUSTER_TRIDIAGONAL`` preconditioners).
|
||||
|
||||
If you decide to use ``LAPACK`` and ``BLAS``, then you also need to add
|
||||
|
||||
Reference in New Issue
Block a user