Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error #4

Open
Hao-HUST opened this issue Jul 30, 2020 · 0 comments
Open

Compile Error #4

Hao-HUST opened this issue Jul 30, 2020 · 0 comments

Comments

@Hao-HUST
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant