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

Alexander Bruy alexander.bruy at gmail.com
Wed Oct 19 05:16:51 EDT 2011


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
GAUL-devel-0.1849-0.
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 \
   -DWITH_T
SP=ON \
   -DWITH_DD=ON \
   -DBoost_INCLUDE_DIR=/usr/local/include \
   -DPOSTGRESQL_INCLUDE_
DIR=/d/pgsql/include/server \
   -DPOSTGRESQL_LIBRARIES=/d/pgsql/lib \
   -DPOSTGRESQL_EX
ECUTABLE=/d/pgsql/bin \
   -DGAUL_INCLUDE_DIR=/usr/local/include \
   -DGAUL_LIBRARIES=/u
sr/local/lib \
   -DGAUL_UTIL_LIBRARIES=/usr/local/lib \
   -DCGAL_INCLUDE_DIR=/usr/local
/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

Thanks
-- 
Alexander Bruy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logs.tar.bz2
Type: application/x-bzip2
Size: 1871 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20111019/12e4a99d/logs.tar.bz2


More information about the pgrouting-dev mailing list