[pgrouting-users] Build Failure of 2.5.1 on Ubuntu 16.04 (Docker)

Getting the following error building PG Routing 2.5.1 on Ubuntu 16.04

[ 49%] Building C object src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o
/tmp/pgrouting/src/alpha_shape/src/alpha.c: In function ‘alphashape’:
/tmp/pgrouting/src/alpha_shape/src/alpha.c:287:16: error: ‘DBL_MAX’ undeclared (first use in this function)
if (x == DBL_MAX && y == DBL_MAX) {
^
/tmp/pgrouting/src/alpha_shape/src/alpha.c:287:16: note: each undeclared identifier is reported only once for each function it appears in
src/alpha_shape/src/CMakeFiles/alpha_shape.dir/build.make:62: recipe for target ‘src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o’ failed
make[2]: *** [src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o] Error 1
make[1]: *** [src/alpha_shape/src/CMakeFiles/alpha_shape.dir/all] Error 2
CMakeFiles/Makefile2:555: recipe for target ‘src/alpha_shape/src/CMakeFiles/alpha_shape.dir/all’ failed
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2

Hi Andrew,

Have you installed all the dependencies?
http://docs.pgrouting.org/2.5/en/pgRouting-installation.html#dependencies

Ubuntu and Debian are well tested and packages are built and released very soon after a new pgRouting release usually.
If you want to compile yourself, please make sure you have the following dev libraries installed:

  • postgresql-server-dev-all

  • libboost-graph-dev

  • libcgal-dev

Best regards,

Daniel

···

On Fri, Nov 10, 2017 at 11:20 AM, Andrew Joseph <ap.joseph1337@gmail.com> wrote:

Getting the following error building PG Routing 2.5.1 on Ubuntu 16.04

[ 49%] Building C object src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o
/tmp/pgrouting/src/alpha_shape/src/alpha.c: In function ‘alphashape’:
/tmp/pgrouting/src/alpha_shape/src/alpha.c:287:16: error: ‘DBL_MAX’ undeclared (first use in this function)
if (x == DBL_MAX && y == DBL_MAX) {
^
/tmp/pgrouting/src/alpha_shape/src/alpha.c:287:16: note: each undeclared identifier is reported only once for each function it appears in
src/alpha_shape/src/CMakeFiles/alpha_shape.dir/build.make:62: recipe for target ‘src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o’ failed
make[2]: *** [src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o] Error 1
make[1]: *** [src/alpha_shape/src/CMakeFiles/alpha_shape.dir/all] Error 2
CMakeFiles/Makefile2:555: recipe for target ‘src/alpha_shape/src/CMakeFiles/alpha_shape.dir/all’ failed
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/pgrouting-users

Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: https://georepublic.info

Hello Andrew,

I think its the same issue as here,
Can you try the solutions I posted and give me feedback, so that I can make a patch

https://github.com/pgRouting/pgrouting/issues/963

Vicky

···

On Thu, Nov 9, 2017 at 8:20 PM, Andrew Joseph <ap.joseph1337@gmail.com> wrote:

Getting the following error building PG Routing 2.5.1 on Ubuntu 16.04

[ 49%] Building C object src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o
/tmp/pgrouting/src/alpha_shape/src/alpha.c: In function ‘alphashape’:
/tmp/pgrouting/src/alpha_shape/src/alpha.c:287:16: error: ‘DBL_MAX’ undeclared (first use in this function)
if (x == DBL_MAX && y == DBL_MAX) {
^
/tmp/pgrouting/src/alpha_shape/src/alpha.c:287:16: note: each undeclared identifier is reported only once for each function it appears in
src/alpha_shape/src/CMakeFiles/alpha_shape.dir/build.make:62: recipe for target ‘src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o’ failed
make[2]: *** [src/alpha_shape/src/CMakeFiles/alpha_shape.dir/alpha.c.o] Error 1
make[1]: *** [src/alpha_shape/src/CMakeFiles/alpha_shape.dir/all] Error 2
CMakeFiles/Makefile2:555: recipe for target ‘src/alpha_shape/src/CMakeFiles/alpha_shape.dir/all’ failed
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/pgrouting-users

Georepublic UG (haftungsbeschränkt)
Salzmannstraße 44, 
81739 München, Germany

Vicky Vergara
Operations Research

eMail: vicky@[georepublic.de](http://georepublic.de)
Web: [https://georepublic.info](https://georepublic.info)

Tel: +49 (089) 4161 7698-1
Fax: +49 (089) 4161 7698-9

Commercial register: Amtsgericht München, HRB 181428
CEO: Daniel Kastl