melowntech / vts-mapproxy

VTS Mapproxy
BSD 2-Clause "Simplified" License
30 stars 5 forks source link

complie this project error #9

Closed veyvin closed 3 years ago

veyvin commented 5 years ago

/home/veyvin/VTS/vts-mapproxy/mapproxy/src/generatevrtwo/generatevrtwo.cpp: In member function ‘void vrtwo::{anonymous}::VrtDs::addSimpleSource(int, const boost::filesystem::path&, const geo::GeoDataset&, int, const OptionalRect&, const OptionalRect&)’: /home/veyvin/VTS/vts-mapproxy/mapproxy/src/generatevrtwo/generatevrtwo.cpp:400:64: error: no matching function for call to ‘VRTSimpleSource::XMLInit(std::__shared_ptr<CPLXMLNode, (__gnu_cxx::_Lock_policy)2>::element_type, std::nullptr_t)’ if (src->XMLInit(xmlNodeFromString(os.str()).get(), nullptr) != CE_None) { ^ In file included from /home/veyvin/VTS/vts-mapproxy/mapproxy/src/generatevrtwo/generatevrtwo.cpp:43:0: /usr/include/gdal/vrtdataset.h:873:21: note: candidate: virtual CPLErr VRTSimpleSource::XMLInit(CPLXMLNode, const char, void) virtual CPLErr XMLInit( CPLXMLNode psTree, const char , void* ) override; ^~~ /usr/include/gdal/vrtdataset.h:873:21: note: candidate expects 3 arguments, 2 provided src/generatevrtwo/CMakeFiles/mp-generatevrtwo.dir/build.make:62: recipe for target 'src/generatevrtwo/CMakeFiles/mp-generatevrtwo.dir/generatevrtwo.cpp.o' failed make[2]: [src/generatevrtwo/CMakeFiles/mp-generatevrtwo.dir/generatevrtwo.cpp.o] Error 1 CMakeFiles/Makefile2:3269: recipe for target 'src/generatevrtwo/CMakeFiles/mp-generatevrtwo.dir/all' failed make[1]: [src/generatevrtwo/CMakeFiles/mp-generatevrtwo.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

=======================================================================

gdal src version 2.4

Screenshot from 2019-07-08 15-23-30

goto this

Screenshot from 2019-07-08 15-23-46

vaclavblazek commented 5 years ago

I've updated the source code for GDAL 2.4. Can you give it a try at your side? All code in master branch.

ladislavhorky commented 3 years ago

Closing due to inactivity.