Open M-Cyclone opened 3 years ago
hi Misaka,
I have a similar problem like yours. i have managed to build the project up until building ORB-SLAM (all dependencies satisfied) only stuck with running the mono_tum example.
I seem to not understand step 3. of 'Applications': Right click the mono_tum project and then click generate.
When i right click on mono_tum, there is no option for 'Generate'.
I have tried to build the mono_tum project but it is always failing. I have tried to follow the instructions from this project as well, still getting stuck when running the mono_tum. https://github.com/Phylliida/orbslam-windows
Have you ran mono_tum successfully? I only want to execute the mono_tum at this point. Please help with any ideas.
Below is the errors I get:
1>------ Build started: Project: mono_tum, Configuration: Release x64 ------
1>g2o.lib(hyper_graph.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(optimizable_graph.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(robust_kernel.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(types_sba.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(types_six_dof_expmap.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(types_seven_dof_expmap.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(solver.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(sparse_optimizer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(timeutil.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(optimization_algorithm_levenberg.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(robust_kernel_impl.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(batch_stats.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(parameter_container.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(jacobian_workspace.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(string_tools.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(hyper_graph_action.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(cache.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(estimate_propagator.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(optimization_algorithm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(property.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(optimization_algorithm_with_hessian.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(robust_kernel_factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>g2o.lib(parameter.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in mono_tum.obj
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "void cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) already defined in libcpmt.lib(xthrow.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "void cdecl std::_Xlength_error(char const )" (?_Xlength_error@std@@YAXPEBD@Z) already defined in libcpmt.lib(xthrow.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "void __cdecl std::_Xout_of_range(char const )" (?_Xout_of_range@std@@YAXPEBD@Z) already defined in libcpmt.lib(xthrow.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "char const __cdecl std::_Syserror_map(int)" (?_Syserror_map@std@@YAPEBDH@Z) already defined in libcpmt.lib(syserror.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "char const cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPEBDH@Z) already defined in libcpmt.lib(syserror.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: cdecl std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QEAA@H@Z) already defined in libcpmt.lib(xlock.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: cdecl std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QEAA@XZ) already defined in libcpmt.lib(xlock.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "bool __cdecl std::uncaught_exception(void)" (?uncaught_exception@std@@YA_NXZ) already defined in libcpmt.lib(uncaught.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: cdecl std::locale::id::operator unsigned int64(void)" (??Bid@locale@std@@QEAA_KXZ) already defined in mono_tum.obj
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ) already defined in libcpmt.lib(locale0.obj)
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: bool cdecl std::codecvt_base::always_noconv(void)const " (?always_noconv@codecvt_base@std@@QEBA_NXZ) already defined in mono_tum.obj
1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: static unsigned int64 cdecl std::ctype
Hi, I got some issues about the file "mono_tum" when rebuild the project "mono_tum". Here's the output I got when rebuild the file:
1>------ Rebuild All started: Project: mono_tum, Configuration: Debug x64 ------ 1>Building Custom Rule D:/Study/02Postgraduate/SLAM/Code/ORB_SLAM2/ORB_SLAM2/CMakeLists.txt 1>mono_tum.cc 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(81,22): error C2039: 'monotonic_clock': is not a member of 'std::chrono' 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(708): message : see declaration of 'std::chrono' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(81,22): error C3083: 'monotonic_clock': the symbol to the left of a '::' must be a type 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(81,68): error C2039: 'monotonic_clock': is not a member of 'std::chrono' 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(708): message : see declaration of 'std::chrono' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(81,68): error C3083: 'monotonic_clock': the symbol to the left of a '::' must be a type 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(81,85): error C2039: 'now': is not a member of 'std::chrono' 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(708): message : see declaration of 'std::chrono' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(81,88): error C3861: 'now': identifier not found 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(81,90): error C2514: 'std::chrono::time_point': class template cannot be constructed 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(176): message : see declaration of 'std::chrono::time_point' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(90,22): error C2039: 'monotonic_clock': is not a member of 'std::chrono' 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(708): message : see declaration of 'std::chrono' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(90,22): error C3083: 'monotonic_clock': the symbol to the left of a '::' must be a type 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(90,68): error C2039: 'monotonic_clock': is not a member of 'std::chrono' 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(708): message : see declaration of 'std::chrono' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(90,68): error C3083: 'monotonic_clock': the symbol to the left of a '::' must be a type 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(90,85): error C2039: 'now': is not a member of 'std::chrono' 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(708): message : see declaration of 'std::chrono' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(90,88): error C3861: 'now': identifier not found 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(90,90): error C2514: 'std::chrono::time_point': class template cannot be constructed 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\chrono(176): message : see declaration of 'std::chrono::time_point' 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(93,86): error C2676: binary '-': 'std::chrono::time_point' does not define this operator or a conversion to a type acceptable to the predefined operator 1>D:\Study\02Postgraduate\SLAM\Code\ORB_SLAM2\ORB_SLAM2\Examples\Monocular\mono_tum.cc(93,37): error C2672: 'std::chrono::duration_cast': no matching overloaded function found 1>Done building project "mono_tum.vcxproj" -- FAILED. ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
I use google and most of the answers are talking about someting like c++11 but I'm not sure about how to fix it.