hengli / camodocal

CamOdoCal: Automatic Intrinsic and Extrinsic Calibration of a Rig with Multiple Generic Cameras and Odometry
Other
1.18k stars 390 forks source link

libceres.so not compile #10

Closed tyutyuginslava closed 8 years ago

tyutyuginslava commented 9 years ago

Hi!

I get this error when compiling

This version is worth http://faculty.cse.tamu.edu/davis/SuiteSparse/ SuiteSparse-3.7.1.tar.gz

Linking CXX shared library ../../../../lib/libceres.so CMakeFiles/ceres.dir/covariance_impl.cc.o: In function ceres::internal::CovarianceImpl::ComputeCovarianceValuesUsingSparseQR()': /home/slava/workspace/camodocal/src/ceres-solver/internal/ceres/covariance_impl.cc:678: undefined reference tolong SuiteSparseQR(int, double, long, cholmod_sparsestruct, cholmod_sparse_struct, long, cholmod_commonstruct)' collect2: error: ld returned 1 exit status

Help please!

tyutyuginslava commented 9 years ago

SuiteSparse which version are you using?

hengli commented 9 years ago

It looks like the SuiteSparseQR (libspqr.so) library is not compiled as part of SuiteSparse. Make sure that you do not have the system package libsuitesparse-dev installed (if you are using Ubuntu) as the system package does not include this library.

ahundt commented 8 years ago

Using a ceres-solver installed on the OS now works, so by following the installation directions on the ceres-solver website things should work correctly. Feel free to reopen if problems persist.