[pgrouting-users] Error compiling pgRouting 2.0 on Ubuntu 10.04

Luís de Sousa luis.a.de.sousa at gmail.com
Wed Dec 4 08:43:42 PST 2013


Hello everyone, I'm trying to compile pgRouting 2.0 on Ubuntu 10.04 (kernel
2.6.32-49-server). I have managed to install all the software required
except for Sphinx and TexLive (I don't need the documentation at this
stage). The result is what you see below. I'm using gcc 4.4.3, which is not
that new, could it be the cause? What else then?

Thanks.

$ cmake ..
-- PGROUTING_GIT_TAG: pgrouting-2.0.0
-- PGROUTING_GIT_BUILD: 0
-- PGROUTING_GIT_HASH: d6ed2cb
-- PGROUTING_GIT_BRANCH: master
-- PGROUTING_VERSION_REVISION_NAME: d6ed2cb master
-- PGROUTING_VERSION_REVISION_HASH: d6ed2cb
-- UNIX=1
-- WIN32=
-- POSTGRESQL_EXECUTABLE is /usr/lib/postgresql/8.4/bin/postgres
-- POSTGRESQL_PG_CONFIG is /usr/bin/pg_config
-- POSTGRESQL_INCLUDE_DIR: /usr/include/postgresql/8.4/server
-- POSTGRESQL_LIBRARIES: /usr/lib
-- Boost version: 1.40.0
-- Boost headers were found here: /usr/include
-- POSTGRESQL_VERSION_STRING is PostgreSQL 8.4.17
-- POSTGRESQL_VERSION is 8.4.17
-- PGSQL_VERSION is 84
-- Install directory for libraries is set to /usr/lib/postgresql/8.4/lib
-- Contrib directory for SQL files is set to
/usr/share/postgresql/8.4/contrib/pgrouting-2.0
-- Boost version: 1.40.0
-- Found the following Boost libraries:
--   thread
-- CGAL_INCLUDE_DIR=/usr/include
-- CGAL_LIBRARIES=/usr/lib/libCGAL.so
-- BOOST_THREAD_LIBRARIES=/usr/lib/libboost_thread-mt.so
-- GMP_LIBRARIES=/usr/lib/libgmp.so
-- Found CGAL: /usr/include, /usr/lib/libCGAL.so,
/usr/lib/libboost_thread-mt.so, /usr/lib/libgmp.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/desousa/pgrouting/build

$ make
Scanning dependencies of target trsp
[  2%] Building C object src/trsp/src/CMakeFiles/trsp.dir/trsp.c.o
[  5%] Building CXX object src/trsp/src/CMakeFiles/trsp.dir/trsp_core.cpp.o
[  8%] Building CXX object
src/trsp/src/CMakeFiles/trsp.dir/GraphDefinition.cpp.o
[  8%] Built target trsp
Scanning dependencies of target astar
[ 11%] Building C object src/astar/src/CMakeFiles/astar.dir/astar.c.o
[ 14%] Building CXX object
src/astar/src/CMakeFiles/astar.dir/astar_boost_wrapper.cpp.o
[ 14%] Built target astar
Scanning dependencies of target dijkstra
[ 17%] Building C object
src/dijkstra/src/CMakeFiles/dijkstra.dir/dijkstra.c.o
[ 20%] Building CXX object
src/dijkstra/src/CMakeFiles/dijkstra.dir/boost_wrapper.cpp.o
[ 20%] Built target dijkstra
Scanning dependencies of target kdijkstra
[ 22%] Building CXX object
src/kdijkstra/src/CMakeFiles/kdijkstra.dir/k_targets_boost_wrapper.cpp.o
[ 25%] Building C object
src/kdijkstra/src/CMakeFiles/kdijkstra.dir/k_targets_sp.c.o
[ 25%] Built target kdijkstra
Scanning dependencies of target apsp_johnson
[ 28%] Building C object
src/apsp_johnson/src/CMakeFiles/apsp_johnson.dir/apsp_johnson.c.o
[ 31%] Building CXX object
src/apsp_johnson/src/CMakeFiles/apsp_johnson.dir/apsp_johnson_boost_wrapper.cpp.o
[ 31%] Built target apsp_johnson
Scanning dependencies of target apsp_warshall
[ 34%] Building C object
src/apsp_warshall/src/CMakeFiles/apsp_warshall.dir/apsp.c.o
[ 37%] Building CXX object
src/apsp_warshall/src/CMakeFiles/apsp_warshall.dir/apsp_boost_wrapper.cpp.o
[ 37%] Built target apsp_warshall
Scanning dependencies of target routing
Linking CXX shared library lib/librouting.so
[ 37%] Built target routing
Scanning dependencies of target bd_dijkstra
[ 40%] Building C object
src/bd_dijkstra/src/CMakeFiles/bd_dijkstra.dir/bdsp.c.o
[ 42%] Building CXX object
src/bd_dijkstra/src/CMakeFiles/bd_dijkstra.dir/bdsp_core.cpp.o
[ 45%] Building CXX object
src/bd_dijkstra/src/CMakeFiles/bd_dijkstra.dir/BiDirDijkstra.cpp.o
[ 45%] Built target bd_dijkstra
Scanning dependencies of target bd_astar
[ 48%] Building C object
src/bd_astar/src/CMakeFiles/bd_astar.dir/bdastar.c.o
[ 51%] Building CXX object
src/bd_astar/src/CMakeFiles/bd_astar.dir/MinHeap.cpp.o
[ 54%] Building CXX object
src/bd_astar/src/CMakeFiles/bd_astar.dir/bdastar_core.cpp.o
[ 57%] Building CXX object
src/bd_astar/src/CMakeFiles/bd_astar.dir/BiDirAStar.cpp.o
[ 57%] Built target bd_astar
Scanning dependencies of target routing_bd
Linking CXX shared library lib/librouting_bd.so
[ 57%] Built target routing_bd
Scanning dependencies of target routing_tsp
[ 60%] Building C object src/tsp/src/CMakeFiles/routing_tsp.dir/tsp2.c.o
[ 62%] Building C object src/tsp/src/CMakeFiles/routing_tsp.dir/tsplib.c.o
Linking C shared library ../../../lib/librouting_tsp.so
[ 62%] Built target routing_tsp
Scanning dependencies of target routing_ksp
[ 65%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/BaseGraph.cpp.o
[ 68%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/BasePath.cpp.o
[ 71%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/DijkstraShortestPathAlg.cpp.o
[ 74%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/Graph.cpp.o
[ 77%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/HeaderTest.cpp.o
[ 80%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/YenTopKShortestPathsAlg.cpp.o
[ 82%] Building C object src/ksp/src/CMakeFiles/routing_ksp.dir/ksp.c.o
[ 85%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/KSPDriver.cpp.o
[ 88%] Building CXX object
src/ksp/src/CMakeFiles/routing_ksp.dir/KSPGraph.cpp.o
In file included from
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:24,
                 from /usr/include/postgresql/8.4/server/executor/spi.h:16,
                 from /home/desousa/pgrouting/src/ksp/src/KSPGraph.cpp:16:
/usr/include/postgresql/8.4/server/nodes/primnodes.h:1155: error: expected
unqualified-id before ‘using’
/usr/include/postgresql/8.4/server/nodes/primnodes.h:1155: error: expected
‘;’ before ‘using’
In file included from /usr/include/postgresql/8.4/server/executor/spi.h:16,
                 from /home/desousa/pgrouting/src/ksp/src/KSPGraph.cpp:16:
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:176: error: expected
unqualified-id before ‘typeid’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:259: error: expected
unqualified-id before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:259: error: expected
‘;’ before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:459: error: expected
unqualified-id before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:459: error: expected
‘;’ before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:556: error: expected
unqualified-id before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:556: error: expected
‘;’ before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:1170: error: expected
unqualified-id before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:1170: error: expected
‘;’ before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:1674: error: expected
unqualified-id before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:1674: error: expected
‘;’ before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:2088: error: expected
unqualified-id before ‘typename’
/usr/include/postgresql/8.4/server/nodes/parsenodes.h:2088: error: expected
‘;’ before ‘typename’
make[2]: *** [src/ksp/src/CMakeFiles/routing_ksp.dir/KSPGraph.cpp.o] Error 1
make[1]: *** [src/ksp/src/CMakeFiles/routing_ksp.dir/all] Error 2
make: *** [all] Error 2




--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/Error-compiling-pgRouting-2-0-on-Ubuntu-10-04-tp4025407.html
Sent from the pgRouting-users mailing list archive at Nabble.com.


More information about the Pgrouting-users mailing list