[pgrouting-dev] Building pgRouting on Windows against PostgreSQL 9.1 and PostGIS 2.0

Hi all,

I try to build latest pgRouting (a0c6c189f4) on Windows using MinGW,
PostgreSQL 9.1
and PostGIS 2.0. I read all available build instructions (which seems
to be a bit outdated,
at least for Windows) [0, 1] and start.

After installing MinGW and MSYS I compile Boost 1.47.0, CGAL 3.9 and
PostgreSQL 9.1 and PostGIS 2.0 were installed from binary installers.

Run cmake with this command
cmake -G"MSYS Makefiles" \
   -DCMAKE_INSTALL_PREFIX=/usr/local/pgrouting \
   -DBoost_INCLUDE_DIR=/usr/local/include \
DIR=/d/pgsql/include/server \
   -DPOSTGRESQL_LIBRARIES=/d/pgsql/lib \
ECUTABLE=/d/pgsql/bin \
   -DGAUL_INCLUDE_DIR=/usr/local/include \
sr/local/lib \
   -DGAUL_UTIL_LIBRARIES=/usr/local/lib \
/include \
   -DCGAL_LIBRARIES=/usr/local/lib \

There are several strings with

CreateProcessError: Не удается найти указанный файл.

in cmake output but configuring completes without errors. When I run make
I get lots of errors like this

[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.obj

In file included from d:/pgsql/include/server/postgres.h:47:0,

                 from g:/src/pgRouting-a0c6c18/extra/tsp/src/tsp.h:25,

                 from g:/src/pgRouting-a0c6c18/extra/tsp/src/tsp.c:22:

d:/pgsql/include/server/c.h:284:2: error: #error must have a working 64-bit inte
ger datatype

In file included from g:/src/pgRouting-a0c6c18/extra/tsp/src/tsp.h:25:0,

                 from g:/src/pgRouting-a0c6c18/extra/tsp/src/tsp.c:22:

d:/pgsql/include/server/postgres.h:550:28: error: unknown type name 'int64'

Full configure and build logs attached. Any hints how to solve this problems?

[0] http://www.pgrouting.org/docs/howto/build_on_windows.html
[1] http://www.pgrouting.org/docs/1.x/install.html

P.S.: sorry for my English

Alexander Bruy

logs.tar.bz2 (1.83 KB)