mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 17:10:38 +08:00
CERES_EXPORT fix to compile Ceres as DLL
Below fixes are required to compile Ceres as a dynamic library using MSVC. 1. Added CERES_EXPORT to EigenQuaternionParameterization. 2. Removed CERES_EXPORT from CubicInterpolator and BicubicInterpolator. EigenQuaternionParameterization has its source embedded in ceres.dll whereas Cubic+BicubicInterpolators are defined in the header file and therefore do not require __declspec(dllimport). Change-Id: Idd1f387890c36aab51a1a4177ea7c06933b96f39
This commit is contained in:
@@ -222,7 +222,7 @@ class CERES_EXPORT QuaternionParameterization : public LocalParameterization {
|
||||
//
|
||||
// Plus(x, delta) = [sin(|delta|) delta / |delta|, cos(|delta|)] * x
|
||||
// with * being the quaternion multiplication operator.
|
||||
class EigenQuaternionParameterization : public ceres::LocalParameterization {
|
||||
class CERES_EXPORT EigenQuaternionParameterization : public ceres::LocalParameterization {
|
||||
public:
|
||||
virtual ~EigenQuaternionParameterization() {}
|
||||
virtual bool Plus(const double* x,
|
||||
|
||||
Reference in New Issue
Block a user