package (#21) - any workarounds for cmake bug for dd-package? (#76) - Message List

any workarounds for cmake bug for dd-package?

As described in ticket #85, there is a problem building pgrouting-1.0 with "cmake -DWITH_DD=ON . && make" or "cmake -DWITH=TSP=ON -DWITH_DD=ON . && make" (all other cmake combinations without "-DWITH_DD" are working fine):

/opt/built/pgrouting-1.0/core/src/dijkstra.c:22:22: error: postgres.h: No such file or directory

I´m using the following system and libs:

opensuse-10.3

postgresql-8.2.4

postgis-1.3.2

boost(-devel)-1.33.1

CGAL-3.3.1

gaul-devel-0.1849-0

Any suggestions?

  • Message #280

    It works with "core", "tsp" and "dd" for me now using the following instructions.

    For "core":

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

    1. untar to /opt/built/pgrouting-1.0

    2. cd /opt/built/pgrouting-1.0

    3. open CMakeLists.txt and add "${POSTGRESQL_INCLUDE_DIR}" to line 85:

    SET(PGROUTING_INCLUDE_DIRECTORIES ${POSTGRESQL_INCLUDE_DIR} ${PGROUTING_SOURCE_DIR}/core ${PGROUTING_SOURCE_DIR}/core/src ${PGROUTING_SOURCE_DIR}/extra ${PGROUTING_SOURCE_DIR}/extra/tsp ${PGROUTING_SOURCE_DIR}/extra/tsp/src ${PGROUTING_SOURCE_DIR}/extra/driving_distance ${PGROUTING_SOURCE_DIR}/extra/driving_distance/src )

    4. cmake .

    5. make

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

    For "tsp":

    steps 1-3 of "core"

    4. cmake -DWITH_TSP=ON .

    5. make routing_tsp

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

    For "dd":

    steps 1-3 of "core"

    4. cmake -DWITH_DD=ON .

    5. make routing_dd

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

    Hope it helps someone...

    • Message #282

      Nevertheless, I still can´t import the routing_tsp.sql and routing_dd.sql in my postgres database (see thread "using routing_tsp on linux"). :-( The windows binaries are working fine.