[pgrouting-users] build pgRouting 1.05 DARP tree

Eduardo Kanegae eduardo.kanegae at gmail.com
Tue Jun 3 12:49:58 PDT 2014


hi there,

I'm running PostGIS 2.0.4 on PostgreSQL 8.4.12 (CentOS 6.3) and I'm
trying to build pgRouting 1.05 (the DARP branch) but it gives me the
following error:
...
[  7%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
[ 14%] Building CXX object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp_solver.o
Linking CXX shared library ../../../lib/librouting_tsp.so
[ 14%] Built target routing_tsp
[ 21%] Building C object extra/darp/src/CMakeFiles/routing_darp.dir/darp.o
[ 28%] Building CXX object
extra/darp/src/CMakeFiles/routing_darp.dir/darp_solver.o
Linking CXX shared library ../../../lib/librouting_darp.so
[ 28%] Built target routing_darp
Scanning dependencies of target routing_dd
[ 35%] Building C object
extra/driving_distance/src/CMakeFiles/routing_dd.dir/alpha.o
[ 42%] Building CXX object
extra/driving_distance/src/CMakeFiles/routing_dd.dir/alpha_drivedist.o
In file included from /usr/local/include/CGAL/internal/Exact_type_selector.h:39,
                 from /usr/local/include/CGAL/Filtered_kernel.h:35,
                 from
/usr/local/src/pgrouting-1.05-darp/extra/driving_distance/src/alpha_drivedist.cpp:35:
/usr/local/include/CGAL/Mpzf.h: In function âCGAL::Mpzf
CGAL::Mpzf_square(const CGAL::Mpzf&)â:
/usr/local/include/CGAL/Mpzf.h:709: error: âmpn_sqrâ was not declared
in this scope
make[2]: ** [extra/driving_distance/src/CMakeFiles/routing_dd.dir/alpha_drivedist.o]
Erro 1
make[1]: ** [extra/driving_distance/src/CMakeFiles/routing_dd.dir/all] Erro 2
make: ** [all] Erro 2
...

Here's my "ccmake" config params:
- - -
Boost_DIR                        /usr/lib64/boost
Boost_INCLUDE_DIR                /usr/include
Boost_LIBRARY_DIRS               /usr/lib
CGAL_INCLUDE_DIR                 /usr/local/include
CGAL_LIBRARIES                   /usr/local/lib/libCGAL.so
CMAKE_AR                         /usr/bin/ar
CMAKE_BACKWARDS_COMPATIBILITY    2.4
CMAKE_BUILD_TYPE
CMAKE_COLOR_MAKEFILE             ON
CMAKE_CXX_COMPILER               /usr/bin/c++
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG            -g
CMAKE_CXX_FLAGS_MINSIZEREL       -Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE          -O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2 -g
CMAKE_C_COMPILER                 /usr/bin/gcc
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG              -g
CMAKE_C_FLAGS_MINSIZEREL         -Os -DNDEBUG
CMAKE_C_FLAGS_RELEASE            -O3 -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO     -O2 -g
CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_MINSIZE
CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELWITH
CMAKE_EXPORT_COMPILE_COMMANDS    OFF
CMAKE_INSTALL_PREFIX             /usr/local
CMAKE_LINKER                     /usr/bin/ld
CMAKE_MAKE_PROGRAM               /usr/bin/gmake
CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS_DEBU
CMAKE_MODULE_LINKER_FLAGS_MINS
CMAKE_MODULE_LINKER_FLAGS_RELE
CMAKE_MODULE_LINKER_FLAGS_RELW
CMAKE_NM                         /usr/bin/nm
CMAKE_OBJCOPY                    /usr/bin/objcopy
CMAKE_OBJDUMP                    /usr/bin/objdump
CMAKE_RANLIB                     /usr/bin/ranlib
CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS_DEBU
CMAKE_SHARED_LINKER_FLAGS_MINS
CMAKE_SHARED_LINKER_FLAGS_RELE
CMAKE_SHARED_LINKER_FLAGS_RELW
CMAKE_SKIP_INSTALL_RPATH         OFF
CMAKE_SKIP_RPATH                 OFF
CMAKE_STRIP                      /usr/bin/strip
CMAKE_USE_RELATIVE_PATHS         OFF
CMAKE_VERBOSE_MAKEFILE           OFF
EXECUTABLE_OUTPUT_PATH
GAUL_INCLUDE_DIR                 /usr/local/include
GAUL_LIBRARIES                   /usr/local/lib/libgaul.so
GAUL_UTIL_LIBRARIES              /usr/local/lib/libgaul_util.so
LIBRARY_OUTPUT_PATH              /usr/lib64/pgsql
PGROUTING_CORE_INCLUDE_DIR       /usr/local/src/pgrouting-1.05-darp/core/src
POSTGRESQL_EXECUTABLE            /usr/bin/postgres
POSTGRESQL_INCLUDE_DIR           /usr/include/pgsql/server
POSTGRESQL_LIBRARIES             /usr/lib64/pgsql
WITH_CGAL                        ON
WITH_DARP                        ON
WITH_DD                          ON
WITH_GAUL                        ON
WITH_PostgreSQL                  ON
WITH_TSP                         ON
- - -

As far as I know DARP module is only available at this 1.05 darp
branch. Or should I try to build pgRouting 2 + PostGIS 2.1.3 +
PostgreSQL 9.x ?

ps.:
a) CGAL installed is 4.4
b) GAUL installed is version 0.1849

thanks for any help.

Eduardo Patto Kanegae
http://www.webmapit.com | @webmapit


More information about the Pgrouting-users mailing list