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
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:
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
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