Error when trying to build with Dockerfile
mhosman opened this issue · comments
Hey @iedmrc, when I build with Dockerfile I get an error when is trying to install VROOM:
routing/libosrm_wrapper.cpp: In member function 'virtual vroom::Matrix<unsigned int> vroom::routing::LibosrmWrapper::get_matrix(const std::vector<vroom::Location>&) const':
routing/libosrm_wrapper.cpp:46:51: error: no matching function for call to 'osrm::OSRM::Table(osrm::engine::api::TableParameters&, osrm::util::json::Object&) const'
osrm::Status status = _osrm.Table(params, result);
^
In file included from ./routing/libosrm_wrapper.h:14,
from routing/libosrm_wrapper.cpp:16:
/usr/local/include/osrm/osrm.hpp:96:12: note: candidate: 'osrm::engine::Status osrm::OSRM::Table(const osrm::engine::api::TableParameters&, osrm::engine::api::ResultT&) const'
Status Table(const TableParameters ¶meters, osrm::engine::api::ResultT &result) const;
^~~~~
/usr/local/include/osrm/osrm.hpp:96:12: note: no known conversion for argument 2 from 'osrm::util::json::Object' to 'osrm::engine::api::ResultT&' {aka 'mapbox::util::variant<osrm::util::json::Object, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, flatbuffers::FlatBufferBuilder>&'}
routing/libosrm_wrapper.cpp: In member function 'virtual void vroom::routing::LibosrmWrapper::add_route_info(vroom::Route&) const':
routing/libosrm_wrapper.cpp:111:51: error: no matching function for call to 'osrm::OSRM::Route(osrm::engine::api::RouteParameters&, osrm::util::json::Object&) const'
osrm::Status status = _osrm.Route(params, result);
^
In file included from ./routing/libosrm_wrapper.h:14,
from routing/libosrm_wrapper.cpp:16:
/usr/local/include/osrm/osrm.hpp:87:12: note: candidate: 'osrm::engine::Status osrm::OSRM::Route(const osrm::engine::api::RouteParameters&, osrm::engine::api::ResultT&) const'
Status Route(const RouteParameters ¶meters, osrm::engine::api::ResultT &result) const;
^~~~~
/usr/local/include/osrm/osrm.hpp:87:12: note: no known conversion for argument 2 from 'osrm::util::json::Object' to 'osrm::engine::api::ResultT&' {aka 'mapbox::util::variant<osrm::util::json::Object, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, flatbuffers::FlatBufferBuilder>&'}
make: *** [makefile:52: routing/libosrm_wrapper.o] Error 1
Worked just by installing first VROOM and then OSRM-Backend