Phylliida / orbslam-windows

Easy build for ORB Slam 2 on Windows
GNU General Public License v3.0
130 stars 73 forks source link

Unable to run the mono_tum example #18

Open Gasethata opened 4 years ago

Gasethata commented 4 years ago

Hi everyone, please help.

I have a similar problem running the mono_tum file. 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:🆔: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::_Getcat(class std::locale::facet const ,class std::locale const )" (?_Getcat@?$ctype@D@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: int __cdecl std::codecvt<char,char,int>::in(int &,char const ,char const ,char const &,char ,char ,char &)const " (?in@?$codecvt@DDH@std@@QEBAHAEAHPEBD1AEAPEBDPEAD3AEAPEAD@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: int __cdecl std::codecvt<char,char,int>::out(int &,char const ,char const ,char const &,char ,char ,char &)const " (?out@?$codecvt@DDH@std@@QEBAHAEAHPEBD1AEAPEBDPEAD3AEAPEAD@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: int __cdecl std::codecvt<char,char,int>::unshift(int &,char ,char ,char &)const " (?unshift@?$codecvt@DDH@std@@QEBAHAEAHPEAD1AEAPEAD@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: static unsigned int64 cdecl std::codecvt<char,char,int>::_Getcat(class std::locale::facet const ,class std::locale const )" (?_Getcat@?$codecvt@DDH@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::locale __cdecl std::ios_base::getloc(void)const " (?getloc@ios_base@std@@qeba?AVlocale@2@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base )" (?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@z) already defined in libcpmt.lib(ios.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "protected: cdecl std::basic_streambuf<char,struct std::char_traits >::basic_streambuf<char,struct std::char_traits >(void)" (??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@iEAA@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: virtual __cdecl std::basic_streambuf<char,struct std::char_traits >::~basic_streambuf<char,struct std::char_traits >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::locale cdecl std::basic_streambuf<char,struct std::char_traits >::getloc(void)const " (?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@qeba?AVlocale@2@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: int cdecl std::basic_streambuf<char,struct std::char_traits >::sgetc(void)" (?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits >::snextc(void)" (?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: int cdecl std::basic_streambuf<char,struct std::char_traits >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: int64 cdecl std::basic_streambuf<char,struct std::char_traits >::sputn(char const ,__int64)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits >::setg(char ,char ,char )" (?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "protected: void cdecl std::basic_streambuf<char,struct std::char_traits >::setp(char ,char )" (?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "protected: void cdecl std::basic_streambuf<char,struct std::char_traits >::_Init(void)" (?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: virtual cdecl std::basic_ios<char,struct std::char_traits >::~basic_ios<char,struct std::char_traits >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: void cdecl std::basic_ios<char,struct std::char_traits >::clear(int,bool)" (?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: void cdecl std::basic_ios<char,struct std::char_traits >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: char __cdecl std::basic_ios<char,struct std::char_traits >::widen(char)const " (?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: cdecl std::basic_ostream<char,struct std::char_traits >::basic_ostream<char,struct std::char_traits >(class std::basic_streambuf<char,struct std::char_traits > ,bool)" (??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in ORB_SLAM2.lib(System.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: virtual cdecl std::basic_ostream<char,struct std::char_traits >::~basic_ostream<char,struct std::char_traits >(void)" (??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: void __cdecl std::basic_ostream<char,struct std::char_traits >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & cdecl std::basic_ostream<char,struct std::char_traits >::operator<<(class std::basic_ostream<char,struct std::char_traits > & (cdecl)(class std::basic_ostream<char,struct std::char_traits > &))" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@z@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & __cdecl std::basic_ostream<char,struct std::char_traits >::operator<<(int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & cdecl std::basic_ostream<char,struct std::char_traits >::operator<<(double)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z) already defined in ORB_SLAM2.lib(System.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & cdecl std::basic_ostream<char,struct std::char_traits >::put(char)" (?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & __cdecl std::basic_ostream<char,struct std::char_traits >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: cdecl std::basic_istream<char,struct std::char_traits >::basic_istream<char,struct std::char_traits >(class std::basic_streambuf<char,struct std::char_traits > ,bool)" (??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: virtual cdecl std::basic_istream<char,struct std::char_traits >::~basic_istream<char,struct std::char_traits >(void)" (??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: bool __cdecl std::basic_istream<char,struct std::char_traits >::_Ipfx(bool)" (?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits > & cdecl std::basic_istream<char,struct std::char_traits >::operator>>(int &)" (??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z) already defined in ORB_SLAM2.lib(System.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits > & cdecl std::basic_istream<char,struct std::char_traits >::seekg(class std::fpos)" (?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@z) already defined in pangolin.lib(iPacketStream.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: cdecl std::basic_iostream<char,struct std::char_traits >::basic_iostream<char,struct std::char_traits >(class std::basic_streambuf<char,struct std::char_traits > )" (??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: virtual cdecl std::basic_iostream<char,struct std::char_traits >::~basic_iostream<char,struct std::char_traits >(void)" (??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "struct _iobuf * cdecl std::_Fiopen(char const ,int,int)" (?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z) already defined in libcpmt.lib(fiopen.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits > & cdecl std::basic_istream<char,struct std::char_traits >::operator>>(double &)" (??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & cdecl std::basic_ostream<char,struct std::char_traits >::operator<<(unsigned int64)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z) already defined in ORB_SLAM2.lib(Optimizer.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & __cdecl std::basic_ostream<char,struct std::char_traits >::operator<<(class std::ios_base & (cdecl)(class std::ios_base &))" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@z@Z) already defined in ORB_SLAM2.lib(System.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "struct std::_Smanip cdecl std::resetiosflags(int)" (?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z) already defined in libcpmt.lib(iomanip.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & cdecl std::basic_ostream<char,struct std::char_traits >::operator<<(bool)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z) already defined in ORB_SLAM2.lib(Viewer.obj) 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "protected: cdecl std::basic_ios<char,struct std::char_traits >::basic_ios<char,struct std::char_traits >(void)" (??0?$basic_ios@DU?$char_traits@D@std@@@std@@iEAA@XZ) already defined in mono_tum.obj 1>msvcprt.lib(MSVCP120.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits > & cdecl std::basic_istream<char,struct std::char_traits >::operator>>(bool &)" (??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z) already defined in ORB_SLAM2.lib(Viewer.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _hypot already defined in LIBCMT.lib(hypot.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: memmove already defined in LIBCMT.lib(memcpy.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: free already defined in LIBCMT.lib(free.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: malloc already defined in LIBCMT.lib(malloc.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: memcpy_s already defined in LIBCMT.lib(memcpy_s.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: "public: cdecl std::exception::exception(char const * const &,int)" (??0exception@std@@QEAA@AEBQEBDH@Z) already defined in LIBCMT.lib(stdexcpt.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: "public: cdecl std::exception::exception(class std::exception const &)" (??0exception@std@@QEAA@AEBV01@@z) already defined in LIBCMT.lib(stdexcpt.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: "public: virtual cdecl std::exception::~exception(void)" (??1exception@std@@UEAA@XZ) already defined in LIBCMT.lib(stdexcpt.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: fclose already defined in LIBCMT.lib(fclose.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: fflush already defined in LIBCMT.lib(fflush.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: fgetc already defined in LIBCMT.lib(fgetc.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: fgetpos already defined in LIBCMT.lib(fgetpos.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: fputc already defined in LIBCMT.lib(fputc.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: fsetpos already defined in LIBCMT.lib(fsetpos.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _fseeki64 already defined in LIBCMT.lib(fseeki64.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: fwrite already defined in LIBCMT.lib(fwrite.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: setvbuf already defined in LIBCMT.lib(setvbuf.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: ungetc already defined in LIBCMT.lib(ungetc.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _lock_file already defined in LIBCMT.lib(_file.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _unlock_file already defined in LIBCMT.lib(_file.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: "public: __cdecl std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QEAA@PEBD@Z) already defined in LIBCMT.lib(stdexcpt.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: abort already defined in LIBCMT.lib(abort.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _get_daylight already defined in LIBCMT.lib(timeset.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _get_timezone already defined in LIBCMT.lib(timeset.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _tzset already defined in LIBCMT.lib(tzset.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _finite already defined in LIBCMT.lib(_finite.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: memchr already defined in LIBCMT.lib(memchr.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: toupper already defined in LIBCMT.lib(toupper.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: tolower already defined in LIBCMT.lib(tolower.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: realloc already defined in LIBCMT.lib(realloc.obj) 1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: cdecl type_info::type_info(class type_info const &)" (??0type_info@@Aeaa@AEBV0@@z) already defined in LIBCMT.lib(typinfo.obj) 1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __cdecl type_info::operator=(class type_info const &)" (??4type_info@@AEAAAEAV0@AEBV0@@z) already defined in LIBCMT.lib(typinfo.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: "public: char const cdecl type_info::_name_internal_method(struct type_info_node )const " (?_name_internal_method@type_info@@QEBAPEBDPEAU__type_info_node@@@z) already defined in LIBCMT.lib(typinfo.obj) 1>MSVCRT.lib(MSVCR120.dll) : error LNK2005: _vsnprintf_s already defined in LIBCMT.lib(vsnprnc.obj) 1> Creating library C:/Users/GasethataMaduenyane/Documents/ORB-SLAM/orbslam-windows-master/orbslam-windows-master/build/Release/mono_tum.lib and object C:/Users/GasethataMaduenyane/Documents/ORB-SLAM/orbslam-windows-master/orbslam-windows-master/build/Release/mono_tum.exp 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>C:\Users\GasethataMaduenyane\Documents\ORB-SLAM\orbslam-windows-master\orbslam-windows-master\Examples\Monocular\Release\mono_tum.exe : fatal error LNK1169: one or more multiply defined symbols found ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

matiasfrosini commented 4 years ago

If you want to build any of the examples (such as mono_euroc), do the following:

Right click on that project and go to Properties -> C/C++ -> Code Generation, and change Runtime Library to Multi-threaded (/MT). Then press apply Right click on it and press build Then you will find them, say if you do mono_, in (orbslam-windows\Examples\Monocular\Release)

Gasethata commented 4 years ago

Hi Matia, Thanks for your response. I have managed to compile and run the mono_tum app successfully. My struggles was that I did not build the whole project with consistency. Say using debug or release. Thank you.

However, I'm facing rather a challenge than an error, hopefully you may help.

I would like to use the pose estimation from orb slam to calculate homography for the images. The aim is to compare with the homography I have cumputed myself.

Or even better if I can get the orb features for frames in orb slam and use them to calculate homography.

I have already calculated homography my self but the aim is to use something from orb slam that cam enable me to compare to my homography.

This is in line with my thesis and would really appreciate your help in anyway. Thank you.