RemoteSensingFrank / UAVProduct

处理无人机影像的代码,使用了OpenMVG,openMVS以及GDAL库等,实现影像几何校正,影像拼接,点云生成等功能
242 stars 128 forks source link

compile error #10

Open gisnewbird opened 4 years ago

gisnewbird commented 4 years ago

大家好,我在编译的时候应该是版本对应的问题,出现了下面的提示: UAVProcessGeoMosaic.cpp:(.text+0x3900): undefined reference to stlplus::folder_exists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' UAVProcessGeoMosaic.cpp:(.text+0x393b): undefined reference tostlplus::folder_files(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' CMakeFiles/UAVProcess.dir/UAVICPProc.cpp.o: In function `UAVICPExtract::UAVICPExtractMatchesEnvi(std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >, EXTRACT_TYPE)': UAVICPProc.cpp:(.text+0x1de): undefined reference to openMVG::image::Image<unsigned char>::Image()' UAVICPProc.cpp:(.text+0x1ed): undefined reference toopenMVG::image::Image::Image()' UAVICPProc.cpp:(.text+0x514): undefined reference to openMVG::matching::DistanceRatioMatch(float, openMVG::matching::EMatcherType const&, openMVG::features::Regions const&, openMVG::features::Regions const&, std::vector<openMVG::matching::IndMatch, std::allocator<openMVG::matching::IndMatch> >&)' UAVICPProc.cpp:(.text+0x715): undefined reference toopenMVG::features::PointFeature::y() const' UAVICPProc.cpp:(.text+0x738): undefined reference to openMVG::features::PointFeature::x() const' UAVICPProc.cpp:(.text+0x75c): undefined reference toopenMVG::features::PointFeature::y() const' UAVICPProc.cpp:(.text+0x780): undefined reference to openMVG::features::PointFeature::x() const' UAVICPProc.cpp:(.text+0x8b0): undefined reference toopenMVG::image::Image::~Image()' UAVICPProc.cpp:(.text+0x8bf): undefined reference to openMVG::image::Image<unsigned char>::~Image()' UAVICPProc.cpp:(.text+0x11b8): undefined reference toopenMVG::image::Image::~Image()' UAVICPProc.cpp:(.text+0x11cc): undefined reference to openMVG::image::Image<unsigned char>::~Image()' CMakeFiles/UAVProcess.dir/UAVICPProc.cpp.o: In functionUAVICPImportICPs(std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >)': UAVICPProc.cpp:(.text+0x133b): undefined reference to openMVG::sfm::Load(openMVG::sfm::SfM_Data&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, openMVG::sfm::ESfM_Data)' UAVICPProc.cpp:(.text+0x17f0): undefined reference toopenMVG::sfm::Save(openMVG::sfm::SfM_Data const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, openMVG::sfm::ESfM_Data)' collect2: error: ld returned 1 exit status UAVProduct/CMakeFiles/UAVProcess.dir/build.make:421: recipe for target 'UAVProduct/UAVProcess' failed make[2]: [UAVProduct/UAVProcess] Error 1 CMakeFiles/Makefile2:91: recipe for target 'UAVProduct/CMakeFiles/UAVProcess.dir/all' failed make[1]: [UAVProduct/CMakeFiles/UAVProcess.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 这个问题还没有解决,希望能有人帮忙看一下,谢谢

RemoteSensingFrank commented 4 years ago

有些依赖库的版本不对,你看看你的openMVG的test是否都能通