Problems installing Time Dependent Routing code
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 30/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- cmake, postgresql
- Domaine
- build-system, databases
Piste de recherche
The issue is a compilation error in extra/driving_distance/src/boost_drivedist.cpp related to Boost adjacency_list and edge_weight_t. Start by examining the CMake configuration and Boost version compatibility. Check the pgRouting build instructions and the specific Boost graph library usage. The last comment was over 7 years ago, so the codebase and dependencies have likely changed significantly. Look for updated build scripts or similar issues in the repository to understand current build practices.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I am following instructions here to installing time dependent routing. When I attempt to compile the code with the Time Dependent Routing in it on Ubuntu 14.04, I get a series of errors:
Building CXX object extra/driving_distance/src/CMakeFiles/routing_dd.dir/boost_drivedist.o In file included from /usr/include/boost/graph/adjacency_list.hpp:246:0, from /home/ubuntu/workspace/pgrouting/extra/driving_distance/src/boost_drivedist.cpp:25: /usr/include/boost/graph/detail/adjacency_list.hpp: In instantiation of ‘struct boost::detail::adj_list_any_edge_pmap::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, Vertex, Edge>, Edge, boost::edge_weight_t>’: /usr/include/boost/graph/detail/adjacency_list.hpp:2684:12: required from ‘struct boost::detail::adj_list_choose_edge_pmap<boost::edge_weight_t, boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, Vertex, Edge>, Edge>’ /usr/include/boost/graph/detail/adjacency_list.hpp:2689:14: required from ‘struct boost::detail::adj_list_edge_property_selector::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, Vertex, Edge>, Edge, boost::edge_weight_t>’ /usr/include/boost/graph/properties.hpp:208:12: required from ‘struct boost::detail::edge_property_map<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, Vertex, Edge>, boost::edge_weight_t>’ /usr/include/boost/graph/properties.hpp:228:10: required from ‘struct boost::property_map<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, Vertex, Edge>, boost::edge_weight_t>’ /home/ubuntu/workspace/pgrouting/extra/driving_distance/src/boost_drivedist.cpp:87:39: required from here /usr/include/boost/graph/detail/adjacency_list.hpp:2652:29: error: forming reference to void typedef value_type& reference; ^ /usr/include/boost/graph/detail/adjacency_list.hpp:2653:35: error: forming reference to void typedef const value_type& const_reference; ^ /usr/include/boost/graph/detail/adjacency_list.hpp:2657:61: error: forming reference to void typename Graph::vertex_descriptor,Property,Tag> type; ^ /usr/include/boost/graph/detail/adjacency_list.hpp:2660:68: error: forming reference to void typename Graph::vertex_descriptor,const Property, Tag> const_type; ^ /home/ubuntu/workspace/pgrouting/extra/driving_distance/src/boost_drivedist.cpp: In function ‘int boost_dijkstra_dist(edge_t*, unsigned int, int, double, bool, bool, path_element_t**, int*, char**)’: /home/ubuntu/workspace/pgrouting/extra/driving_distance/src/boost_drivedist.cpp:88:27: error: no matching function for call to ‘get(boost::edge_weight_t, graph_t&)’ get(edge_weight, graph); ^ /home/ubuntu/workspace/pgrouting/extra/driving_distance/src/boost_drivedist.cpp:88:27: note: candidates are: In file included from /usr/include/boost/graph/adjacency_list.hpp:36:0, from /home/ubuntu/workspace/pgrouting/extra/driving_distance/src/boost_drivedist.cpp:25: /usr/include/boost/property_map/property_map.hpp:179:19: note: template<class T> const T& get(const T*, std::ptrdiff_t) inline const T& get(const T* pa, std::ptrdiff_t k) { return pa[k]; } ^ /usr/include/boost/property_map/property_map.hpp:179:19: note: template argument deduction/substitution failed: /home/ubuntu/workspace/pgrouting/extra/driving_distance/src/boost_drivedist.cpp:88:27: note: mismatched types ‘const T*’ and ‘boost::edge_weight_t’ get(edge_weight, graph);
I wondered if this was due to the boost version (1.54), or the CGAL version (10.0.1). I have tried following the instructions here and using the pgrouting4w fork, but that gave similar errors.
Anyone know how this library can be built? Since it hasn't been updated since 2011, the build systems and all the libraries must have changed so I assume it's something to do with that.
- Langage dominant
- C++
- Étoiles
- 1.4k
- Forks
- 397
- Merge moyen
- 2 j 16 h
- PR mergées (30 j)
- 8
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de pgRouting/pgrouting
-
Integer underflow and buffer overrun in detail::count_rows on disconnected distance matricesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 3 jours
-
Add details to CONTRIBUTING.mdOuverteAdministrative Enhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 3 jours
-
points_input Developers docPeut-être pris @withaman69 l’a pris il y a 101 jours. OuverteC/C++ Developers Doc. good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
pgRouting/pgrouting#973 · 10 commentaires ·
Les mainteneurs répondent en général sous 3 jours
-
get_check_data developers docPeut-être pris @withaman69 l’a pris il y a 103 jours. OuverteC/C++ Developers Doc. good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
pgRouting/pgrouting#972 · 7 commentaires ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de pgRouting/pgrouting
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
-
comp-rbac
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ClickHouse/ClickHouse#131875 ·
Les mainteneurs répondent en général sous 1 jour
-
doku help wanted
Difficulté 2/5 Une demi-journée Accessibilité débutants 68/100
-
e2e-display: drag_window_by_sidebar_top looks for a sidebar title the daemon chip now replacesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
contour-terminal/contour#2388 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ReyeMe/SaturnRingLib#152 ·