You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to compile the make file, cmake ../ successes, but make failed, the error listed as follow:
make
Scanning dependencies of target pnp
[ 33%] Building CXX object CMakeFiles/pnp.dir/main.cpp.o
[ 66%] Building CXX object CMakeFiles/pnp.dir/PNPSimulation.cpp.o
[100%] Linking CXX executable pnp
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::Solve(cs_di_symbolic*, cs_di_numeric*, double*)': cxsparse.cc:(.text+0x92): undefined reference to cs_di_ipvec'
cxsparse.cc:(.text+0xa6): undefined reference to cs_di_lsolve' cxsparse.cc:(.text+0xba): undefined reference to cs_di_ltsolve'
cxsparse.cc:(.text+0xd3): undefined reference to cs_di_pvec' cxsparse.cc:(.text+0x108): undefined reference to cs_di_free'
cxsparse.cc:(.text+0x114): undefined reference to cs_di_malloc' /usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::SolveCholesky(cs_di_sparse*, double*)':
cxsparse.cc:(.text+0x31a): undefined reference to cs_di_cholsol' /usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::BlockAnalyzeCholesky(cs_di_sparse*, std::vector<int, std::allocator > const&, std::vector<int, std::allocator > const&)':
cxsparse.cc:(.text+0x438): undefined reference to cs_di_amd' cxsparse.cc:(.text+0x4ba): undefined reference to cs_di_free'
cxsparse.cc:(.text+0x4f6): undefined reference to cs_di_calloc' cxsparse.cc:(.text+0x506): undefined reference to cs_di_pinv'
cxsparse.cc:(.text+0x516): undefined reference to cs_di_symperm' cxsparse.cc:(.text+0x523): undefined reference to cs_di_etree'
cxsparse.cc:(.text+0x532): undefined reference to cs_di_post' cxsparse.cc:(.text+0x546): undefined reference to cs_di_counts'
cxsparse.cc:(.text+0x551): undefined reference to cs_di_free' cxsparse.cc:(.text+0x559): undefined reference to cs_di_spfree'
cxsparse.cc:(.text+0x569): undefined reference to cs_di_malloc' cxsparse.cc:(.text+0x57b): undefined reference to cs_di_cumsum'
cxsparse.cc:(.text+0x58d): undefined reference to cs_di_free' cxsparse.cc:(.text+0x60c): undefined reference to cs_di_sfree'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::CreateSparseMatrix(ceres::internal::TripletSparseMatrix*)': cxsparse.cc:(.text+0x812): undefined reference to cs_di_compress'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::ApproximateMinimumDegreeOrdering(cs_di_sparse*, int*)': cxsparse.cc:(.text+0x8a0): undefined reference to cs_di_amd'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::~CXSparse()': cxsparse.cc:(.text+0x2b): undefined reference to cs_di_free'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::Cholesky(cs_di_sparse*, cs_di_symbolic*)': cxsparse.cc:(.text+0x47): undefined reference to cs_di_chol'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::AnalyzeCholesky(cs_di_sparse*)': cxsparse.cc:(.text+0x336): undefined reference to cs_di_schol'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::AnalyzeCholeskyWithNaturalOrdering(cs_di_sparse*)': cxsparse.cc:(.text+0x343): undefined reference to cs_di_schol'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::ApproximateMinimumDegreeOrdering(cs_di_sparse*, int*)': cxsparse.cc:(.text+0x8c7): undefined reference to cs_di_free'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::TransposeMatrix(cs_di_sparse*)': cxsparse.cc:(.text+0x8d9): undefined reference to cs_di_transpose'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::MatrixMatrixMultiply(cs_di_sparse*, cs_di_sparse*)': cxsparse.cc:(.text+0x8e7): undefined reference to cs_di_multiply'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::Free(cs_di_sparse*)': cxsparse.cc:(.text+0x8f4): undefined reference to cs_di_spfree'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::Free(cs_di_symbolic*)': cxsparse.cc:(.text+0x904): undefined reference to cs_di_sfree'
/usr/local/lib/libceres.a(cxsparse.cc.o): In function ceres::internal::CXSparse::Free(cs_di_numeric*)': cxsparse.cc:(.text+0x914): undefined reference to cs_di_nfree'
collect2: error: ld returned 1 exit status
CMakeFiles/pnp.dir/build.make:148: recipe for target 'pnp' failed
make[2]: *** [pnp] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/pnp.dir/all' failed
make[1]: *** [CMakeFiles/pnp.dir/all] Error 2
Makefile:103: recipe for target 'all' failed
make: *** [all] Error 2
Any suggestions?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, thanks for sharing the code.
When I try to compile the make file, cmake ../ successes, but make failed, the error listed as follow:
make
Scanning dependencies of target pnp
[ 33%] Building CXX object CMakeFiles/pnp.dir/main.cpp.o
[ 66%] Building CXX object CMakeFiles/pnp.dir/PNPSimulation.cpp.o
[100%] Linking CXX executable pnp
/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::Solve(cs_di_symbolic*, cs_di_numeric*, double*)': cxsparse.cc:(.text+0x92): undefined reference to
cs_di_ipvec'cxsparse.cc:(.text+0xa6): undefined reference to
cs_di_lsolve' cxsparse.cc:(.text+0xba): undefined reference to
cs_di_ltsolve'cxsparse.cc:(.text+0xd3): undefined reference to
cs_di_pvec' cxsparse.cc:(.text+0x108): undefined reference to
cs_di_free'cxsparse.cc:(.text+0x114): undefined reference to
cs_di_malloc' /usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::SolveCholesky(cs_di_sparse*, double*)':cxsparse.cc:(.text+0x31a): undefined reference to
cs_di_cholsol' /usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::BlockAnalyzeCholesky(cs_di_sparse*, std::vector<int, std::allocator > const&, std::vector<int, std::allocator > const&)':cxsparse.cc:(.text+0x438): undefined reference to
cs_di_amd' cxsparse.cc:(.text+0x4ba): undefined reference to
cs_di_free'cxsparse.cc:(.text+0x4f6): undefined reference to
cs_di_calloc' cxsparse.cc:(.text+0x506): undefined reference to
cs_di_pinv'cxsparse.cc:(.text+0x516): undefined reference to
cs_di_symperm' cxsparse.cc:(.text+0x523): undefined reference to
cs_di_etree'cxsparse.cc:(.text+0x532): undefined reference to
cs_di_post' cxsparse.cc:(.text+0x546): undefined reference to
cs_di_counts'cxsparse.cc:(.text+0x551): undefined reference to
cs_di_free' cxsparse.cc:(.text+0x559): undefined reference to
cs_di_spfree'cxsparse.cc:(.text+0x569): undefined reference to
cs_di_malloc' cxsparse.cc:(.text+0x57b): undefined reference to
cs_di_cumsum'cxsparse.cc:(.text+0x58d): undefined reference to
cs_di_free' cxsparse.cc:(.text+0x60c): undefined reference to
cs_di_sfree'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::CreateSparseMatrix(ceres::internal::TripletSparseMatrix*)': cxsparse.cc:(.text+0x812): undefined reference to
cs_di_compress'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::ApproximateMinimumDegreeOrdering(cs_di_sparse*, int*)': cxsparse.cc:(.text+0x8a0): undefined reference to
cs_di_amd'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::~CXSparse()': cxsparse.cc:(.text+0x2b): undefined reference to
cs_di_free'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::Cholesky(cs_di_sparse*, cs_di_symbolic*)': cxsparse.cc:(.text+0x47): undefined reference to
cs_di_chol'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::AnalyzeCholesky(cs_di_sparse*)': cxsparse.cc:(.text+0x336): undefined reference to
cs_di_schol'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::AnalyzeCholeskyWithNaturalOrdering(cs_di_sparse*)': cxsparse.cc:(.text+0x343): undefined reference to
cs_di_schol'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::ApproximateMinimumDegreeOrdering(cs_di_sparse*, int*)': cxsparse.cc:(.text+0x8c7): undefined reference to
cs_di_free'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::TransposeMatrix(cs_di_sparse*)': cxsparse.cc:(.text+0x8d9): undefined reference to
cs_di_transpose'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::MatrixMatrixMultiply(cs_di_sparse*, cs_di_sparse*)': cxsparse.cc:(.text+0x8e7): undefined reference to
cs_di_multiply'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::Free(cs_di_sparse*)': cxsparse.cc:(.text+0x8f4): undefined reference to
cs_di_spfree'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::Free(cs_di_symbolic*)': cxsparse.cc:(.text+0x904): undefined reference to
cs_di_sfree'/usr/local/lib/libceres.a(cxsparse.cc.o): In function
ceres::internal::CXSparse::Free(cs_di_numeric*)': cxsparse.cc:(.text+0x914): undefined reference to
cs_di_nfree'collect2: error: ld returned 1 exit status
CMakeFiles/pnp.dir/build.make:148: recipe for target 'pnp' failed
make[2]: *** [pnp] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/pnp.dir/all' failed
make[1]: *** [CMakeFiles/pnp.dir/all] Error 2
Makefile:103: recipe for target 'all' failed
make: *** [all] Error 2
Any suggestions?
Thanks!
The text was updated successfully, but these errors were encountered: