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

ORB-SLAM3, make error #50

Closed
xiaoyuamw opened this issue Aug 11, 2020 · 13 comments
Closed

ORB-SLAM3, make error #50

xiaoyuamw opened this issue Aug 11, 2020 · 13 comments

Comments

@xiaoyuamw
Copy link

xiaoyuamw commented Aug 11, 2020

Hi:
when i made the ORB-SLAM3, the following errors have occurred!
Anyone who can answer my problems? Thank you !


/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:1455:12: warning: unused variable ‘t_inertial_only’ [-Wunused-variable]
double t_inertial_only = std::chrono::duration_cast<std::chrono::duration >(t1 - t0).count();
^
CMakeFiles/ORB_SLAM3.dir/build.make:110: recipe for target 'CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o] Error 1
CMakeFiles/Makefile2:400: recipe for target 'CMakeFiles/ORB_SLAM3.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


@jj-gomez
Copy link
Member

Hi @xiaoyuamw, I can guess the error comes from the LocalMapping file however you don't provide the error messages. Could you please post the full output you are getting when building ORB-SLAM3?

Regards.

@xiaoyuamw
Copy link
Author

These are the full output of error messages you wanted, i really hope that they are usefull for you. Thank you again!

In file included from /usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h:152:0,
from /usr/local/include/eigen3/Eigen/SparseCore:37,
from /usr/local/include/eigen3/Eigen/Sparse:17,
from /home/xy/ORB-SLAM3/ORB_SLAM3/Thirdparty/g2o/g2o/solvers/linear_solver_eigen.h:30,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/Optimizer.h:36,
from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:23:
/usr/local/include/eigen3/Eigen/src/SparseCore/../plugins/MatrixCwiseUnaryOps.h: At global scope:
/usr/local/include/eigen3/Eigen/src/SparseCore/../plugins/MatrixCwiseUnaryOps.h:77:32: warning: ‘template class std::binder1st’ is deprecated [-Wdeprecated-declarations]
inline const CwiseUnaryOp<std::binder1st<std::equal_to >, const Derived>
^
In file included from /usr/include/c++/5/bits/stl_function.h:1128:0,
from /usr/include/c++/5/string:48,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from /home/xy/ORB-SLAM3/ORB_SLAM3/Thirdparty/DBoW2/DBoW2/BowVector.h:13,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/Frame.h:27,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/MapPoint.h:24,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/KeyFrame.h:23,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:23,
from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:20:
/usr/include/c++/5/backward/binders.h:108:11: note: declared here
class binder1st
^
In file included from /usr/local/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h:152:0,
from /usr/local/include/eigen3/Eigen/SparseCore:37,
from /usr/local/include/eigen3/Eigen/Sparse:17,
from /home/xy/ORB-SLAM3/ORB_SLAM3/Thirdparty/g2o/g2o/solvers/linear_solver_eigen.h:30,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/Optimizer.h:36,
from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:23:
/usr/local/include/eigen3/Eigen/src/SparseCore/../plugins/MatrixCwiseUnaryOps.h: In member function ‘const Eigen::CwiseUnaryOp<std::binder1st<std::equal_to<typename Eigen::internal::traits::Scalar> >, const Derived> Eigen::SparseMatrixBase::cwiseEqual(const Scalar&) const’:
/usr/local/include/eigen3/Eigen/src/SparseCore/../plugins/MatrixCwiseUnaryOps.h:80:28: warning: ‘template class std::binder1st’ is deprecated [-Wdeprecated-declarations]
return CwiseUnaryOp<std::binder1st<std::equal_to >,const Derived>
^
In file included from /usr/include/c++/5/bits/stl_function.h:1128:0,
from /usr/include/c++/5/string:48,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from /home/xy/ORB-SLAM3/ORB_SLAM3/Thirdparty/DBoW2/DBoW2/BowVector.h:13,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/Frame.h:27,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/MapPoint.h:24,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/KeyFrame.h:23,
from /home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:23,
from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:20:
/usr/include/c++/5/backward/binders.h:108:11: note: declared here
class binder1st
^
In file included from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:20:0:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h: In constructor ‘ORB_SLAM3::LocalMapping::LocalMapping(ORB_SLAM3::System*, ORB_SLAM3::Atlas*, float, bool, const string&)’:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:169:10: warning: ‘ORB_SLAM3::LocalMapping::bInitializing’ will be initialized after [-Wreorder]
bool bInitializing;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:156:10: warning: ‘bool ORB_SLAM3::LocalMapping::mbAbortBA’ [-Wreorder]
bool mbAbortBA;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:32:1: warning: when initialized here [-Wreorder]
LocalMapping::LocalMapping(System* pSys, Atlas pAtlas, const float bMonocular, bool bInertial, const string &_strSeqName):
^
In file included from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:20:0:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:163:10: warning: ‘ORB_SLAM3::LocalMapping::mbAcceptKeyFrames’ will be initialized after [-Wreorder]
bool mbAcceptKeyFrames;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:91:10: warning: ‘bool ORB_SLAM3::LocalMapping::mbNewInit’ [-Wreorder]
bool mbNewInit;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:32:1: warning: when initialized here [-Wreorder]
LocalMapping::LocalMapping(System
pSys, Atlas pAtlas, const float bMonocular, bool bInertial, const string &_strSeqName):
^
In file included from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:20:0:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:93:18: warning: ‘ORB_SLAM3::LocalMapping::mIdxInit’ will be initialized after [-Wreorder]
unsigned int mIdxInit;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:88:12: warning: ‘double ORB_SLAM3::LocalMapping::mScale’ [-Wreorder]
double mScale;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:32:1: warning: when initialized here [-Wreorder]
LocalMapping::LocalMapping(System
pSys, Atlas pAtlas, const float bMonocular, bool bInertial, const string &_strSeqName):
^
In file included from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:20:0:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:104:10: warning: ‘ORB_SLAM3::LocalMapping::mbNotBA2’ will be initialized after [-Wreorder]
bool mbNotBA2;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LocalMapping.h:100:9: warning: ‘int ORB_SLAM3::LocalMapping::mIdxIteration’ [-Wreorder]
int mIdxIteration;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:32:1: warning: when initialized here [-Wreorder]
LocalMapping::LocalMapping(System
pSys, Atlas pAtlas, const float bMonocular, bool bInertial, const string &_strSeqName):
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc: In member function ‘void ORB_SLAM3::LocalMapping::Run()’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:229:20: warning: unused variable ‘t_procKF’ [-Wunused-variable]
double t_procKF = std::chrono::duration_cast<std::chrono::duration<double,std::milli> >(t1 - t0).count();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:230:20: warning: unused variable ‘t_MPcull’ [-Wunused-variable]
double t_MPcull = std::chrono::duration_cast<std::chrono::duration<double,std::milli> >(t2 - t1).count();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:231:20: warning: unused variable ‘t_CheckMP’ [-Wunused-variable]
double t_CheckMP = std::chrono::duration_cast<std::chrono::duration<double,std::milli> >(t3 - t2).count();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:232:20: warning: unused variable ‘t_searchNeigh’ [-Wunused-variable]
double t_searchNeigh = std::chrono::duration_cast<std::chrono::duration<double,std::milli> >(t4 - t3).count();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:233:20: warning: unused variable ‘t_Opt’ [-Wunused-variable]
double t_Opt = std::chrono::duration_cast<std::chrono::duration<double,std::milli> >(t5 - t4).count();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:234:20: warning: unused variable ‘t_KF_cull’ [-Wunused-variable]
double t_KF_cull = std::chrono::duration_cast<std::chrono::duration<double,std::milli> >(t6 - t5).count();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:235:20: warning: unused variable ‘t_Insert’ [-Wunused-variable]
double t_Insert = std::chrono::duration_cast<std::chrono::duration<double,std::milli> >(t8 - t7).count();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc: In member function ‘void ORB_SLAM3::LocalMapping::CreateNewMapPoints()’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:396:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while((vpNeighKFs.size()<=nn)&&(pKF->mPrevKF)&&(count++<nn))
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:476:22: warning: unused variable ‘invfx2’ [-Wunused-variable]
const float &invfx2 = pKF2->invfx;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:477:22: warning: unused variable ‘invfy2’ [-Wunused-variable]
const float &invfy2 = pKF2->invfy;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:421:18: warning: unused variable ‘invfx1’ [-Wunused-variable]
const float &invfx1 = mpCurrentKeyFrame->invfx;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:422:18: warning: unused variable ‘invfy1’ [-Wunused-variable]
const float &invfy1 = mpCurrentKeyFrame->invfy;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc: In member function ‘void ORB_SLAM3::LocalMapping::KeyFrameCulling()’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:1002:75: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
: (i < pKF -> NLeft) ? pKF -> mvKeys[i].octave
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc: In member function ‘void ORB_SLAM3::LocalMapping::InitializeIMU(float, float, bool)’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:1232:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(mpAtlas->KeyFramesInMap()<nMinKF)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:1246:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(vpKF.size()<nMinKF)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc: In member function ‘void ORB_SLAM3::LocalMapping::ScaleRefinement()’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:1422:15: warning: unused variable ‘N’ [-Wunused-variable]
const int N = vpKF.size();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LocalMapping.cc:1455:12: warning: unused variable ‘t_inertial_only’ [-Wunused-variable]
double t_inertial_only = std::chrono::duration_cast<std::chrono::duration >(t1 - t0).count();
^
CMakeFiles/ORB_SLAM3.dir/build.make:278: recipe for target 'CMakeFiles/ORB_SLAM3.dir/src/KeyFrame.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM3.dir/src/KeyFrame.cc.o] Error 1
In file included from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:20:0:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LoopClosing.h: In constructor ‘ORB_SLAM3::LoopClosing::LoopClosing(ORB_SLAM3::Atlas
, ORB_SLAM3::KeyFrameDatabase*, ORB_SLAM3::ORBVocabulary*, bool)’:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LoopClosing.h:197:10: warning: ‘ORB_SLAM3::LoopClosing::mnFullBAIdx’ will be initialized after [-Wreorder]
bool mnFullBAIdx;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LoopClosing.h:161:9: warning: ‘int ORB_SLAM3::LoopClosing::mnLoopNumCoincidences’ [-Wreorder]
int mnLoopNumCoincidences;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:35:1: warning: when initialized here [-Wreorder]
LoopClosing::LoopClosing(Atlas pAtlas, KeyFrameDatabase pDB, ORBVocabulary pVoc, const bool bFixScale):
^
In file included from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:20:0:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LoopClosing.h:170:9: warning: ‘ORB_SLAM3::LoopClosing::mnMergeNumCoincidences’ will be initialized after [-Wreorder]
int mnMergeNumCoincidences;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LoopClosing.h:160:10: warning: ‘bool ORB_SLAM3::LoopClosing::mbLoopDetected’ [-Wreorder]
bool mbLoopDetected;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:35:1: warning: when initialized here [-Wreorder]
LoopClosing::LoopClosing(Atlas pAtlas, KeyFrameDatabase pDB, ORBVocabulary pVoc, const bool bFixScale):
^
In file included from /home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:20:0:
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LoopClosing.h:169:10: warning: ‘ORB_SLAM3::LoopClosing::mbMergeDetected’ will be initialized after [-Wreorder]
bool mbMergeDetected;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/include/LoopClosing.h:162:9: warning: ‘int ORB_SLAM3::LoopClosing::mnLoopNumNotFound’ [-Wreorder]
int mnLoopNumNotFound;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:35:1: warning: when initialized here [-Wreorder]
LoopClosing::LoopClosing(Atlas pAtlas, KeyFrameDatabase pDB, ORBVocabulary pVoc, const bool bFixScale):
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc: In member function ‘bool ORB_SLAM3::LoopClosing::NewDetectCommonRegions()’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:441:29: warning: unused variable ‘CurrentBowVec’ [-Wunused-variable]
const DBoW2::BowVector &CurrentBowVec = mpCurrentKF->mBowVec;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc: In member function ‘bool ORB_SLAM3::LoopClosing::DetectCommonRegionsFromBoW(std::vector<ORB_SLAM3::KeyFrame
>&, ORB_SLAM3::KeyFrame
&, ORB_SLAM3::KeyFrame
&, g2o::Sim3&, int&, std::vector<ORB_SLAM3::MapPoint
>&, std::vector<ORB_SLAM3::MapPoint
>&)’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:619:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<vpCovKFi.size(); ++j)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:634:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<vpCovKFi.size(); ++j)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:644:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0; k < vvpMatchedMPs[j].size(); ++k)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:806:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(nNumKFs < 3 && j<vpCurrentCovKFs.size())
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:695:21: warning: unused variable ‘nInitialCov’ [-Wunused-variable]
int nInitialCov = vpCovKFi.size();
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:888:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<vnStage.size(); ++i)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:580:9: warning: unused variable ‘nNumGuidedMatching’ [-Wunused-variable]
int nNumGuidedMatching = 0;
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc: In member function ‘int ORB_SLAM3::LoopClosing::FindMatchesByProjection(ORB_SLAM3::KeyFrame
, ORB_SLAM3::KeyFrame
, g2o::Sim3&, std::set<ORB_SLAM3::MapPoint
>&, std::vector<ORB_SLAM3::MapPoint
>&, std::vector<ORB_SLAM3::MapPoint*>&)’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:973:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j < vpKFs.size() && nInserted < nNumCovisibles)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc: In member function ‘void ORB_SLAM3::LoopClosing::MergeLocal()’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:1348:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(spLocalWindowKFs.size() < numTemporalKFs && nNumTries < nMaxTries)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:1412:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(spMergeConnectedKFs.size() < numTemporalKFs && nNumTries < nMaxTries)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc: In member function ‘void ORB_SLAM3::LoopClosing::printReprojectionError(std::set<ORB_SLAM3::KeyFrame*>&, ORB_SLAM3::KeyFrame*, std::__cxx11::string&)’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:1913:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<vpMPs.size(); ++j)
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc: In member function ‘void ORB_SLAM3::LoopClosing::MergeLocal2()’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:1950:9: warning: unused variable ‘numTemporalKFs’ [-Wunused-variable]
int numTemporalKFs = 11; //TODO (set by parameter): Temporal KFs in the local window if the map is inertial.
^
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc: In member function ‘void ORB_SLAM3::LoopClosing::SearchAndFuse(const KeyFrameAndPose&, std::vector<ORB_SLAM3::MapPoint*>&)’:
/home/xy/ORB-SLAM3/ORB_SLAM3/src/LoopClosing.cc:2300:13: warning: unused variable ‘numFused’ [-Wunused-variable]
int numFused = matcher.Fuse(pKFi,cvScw,vpMapPoints,4,vpReplacePoints);
^
CMakeFiles/ORB_SLAM3.dir/build.make:110: recipe for target 'CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o] Error 1
CMakeFiles/ORB_SLAM3.dir/build.make:662: recipe for target 'CMakeFiles/ORB_SLAM3.dir/src/MLPnPsolver.cpp.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM3.dir/src/MLPnPsolver.cpp.o] Error 1
CMakeFiles/ORB_SLAM3.dir/build.make:134: recipe for target 'CMakeFiles/ORB_SLAM3.dir/src/LoopClosing.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM3.dir/src/LoopClosing.cc.o] Error 1
CMakeFiles/Makefile2:400: recipe for target 'CMakeFiles/ORB_SLAM3.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
xy@hp:~/ORB-SLAM3/ORB_SLAM3/build$

@jj-gomez
Copy link
Member

Hi @xiaoyuamw, I cannot still see the error. I believe you are not copying all the ouput (maybe because your terminal removes old messages). Could you try to redirect all the output to a logfile and upload it? You can do it as it follows:

./build.sh &> log.txt

@xiaoyuamw
Copy link
Author

Hi @jjgr3496, thank you fou your answer. I have made again by your method, this time you can see the full uotput of error messages. Thank you again!
log.txt

@jj-gomez
Copy link
Member

Hi @xiaoyuamw, thanks for updating the log. I have finally been able to spot the errors:

  • At Map.h, in line 140, you should put the name space before list and string (the line should end up looking like this: void printReprojectionError(std::list<KeyFrame*> &lpLocalWindowKFs, KeyFrame* mpCurrentKF, std::string &name, std::string &name_folder);). This error seems to pop up depending of the version of your compiler.

  • At MLPnPsolver.cpp, we call the method Eigen::SparseMatrix<double>.setIdentity(), however your compiler seems like cannot find it. Please, check your Eigen version (remember we require a version grater than 3.1.1).

  • Finally, the last error looks like a problem when finding the file openssl/md5.h. You should first install in your system the openssl library (https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/).

These are all the errors I can find from your log. If you keep finding some issues building, paste me again the log!

Regards.

@xiaoyuamw
Copy link
Author

Hi @jjgr3496, i have met such an error this time, maybe you can help me to solve it. Thank you again!

[ 71%] Linking CXX shared library ../lib/libORB_SLAM3.so
/usr/bin/ld: 找不到 -lboost_serialization
collect2: error: ld returned 1 exit status
CMakeFiles/ORB_SLAM3.dir/build.make:805: recipe for target '../lib/libORB_SLAM3.so' failed
make[2]: *** [../lib/libORB_SLAM3.so] Error 1
CMakeFiles/Makefile2:400: recipe for target 'CMakeFiles/ORB_SLAM3.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@jj-gomez
Copy link
Member

Hi @xiaoyuamw, could you please upload again the build log file with the new error?

@xiaoyuamw
Copy link
Author

xiaoyuamw commented Aug 13, 2020

Hi @jjgr3496, i have uploaded the full output of the build log file, maybe you can find out where the errors happened. Thank you again!
log.txt

@jj-gomez
Copy link
Member

Hi again @xiaoyuamw, after reading carefully the log file, I finally found the error (I had to translate from Chinese to English to discover the error :P). It seems that you don have installed the lboost_serialization so the compilation fails. Please, try to install that library and compile again.

@xiaoyuamw
Copy link
Author

Hi @jjgr3496, i have run the ORB-SLAM3 successfully, and i will take a further study of this greatful project made by you and your team, thanks very much again!

@kanishkanarch
Copy link

@jjgr3496 Hello Juan, I admire your work in SLAM and have used your ORB-SLAM3 package in my research earlier.
Earlier before when I compiled the repository, I solved the small errors myself, but I don't know how to solve errors this time. Can you please check my log file and help me identify what can be done?
Thanks
This is the log file of ./build.sh

@kanishkanarch
Copy link

Update:
I successfully compiled the project. The error was coming from a broken OpenSSL version that I installed apart from the version that comes with Ubuntu 18.04.
Thank you

@rickkcir
Copy link

Hi again @xiaoyuamw, after reading carefully the log file, I finally found the error (I had to translate from Chinese to English to discover the error :P). It seems that you don have installed the lboost_serialization so the compilation fails. Please, try to install that library and compile again.

Thank you. I meet the same issue. Through installed the boost, I successfully compiled the project. How to installed the boost? You could watch my blog.

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

5 participants