pgRouting / vrprouting

Vehicle Routing Problems on the Database
GNU General Public License v2.0
21 stars 6 forks source link

Compiling error in macos: fatal error: 'structures/generic/matrix.h' file not found #39

Open geohuz opened 2 years ago

geohuz commented 2 years ago

Problem

make
[  2%] Building C object src/vroom/CMakeFiles/vroom.dir/vroom.c.o
[  4%] Building CXX object src/vroom/CMakeFiles/vroom.dir/vroom_driver.cpp.o
In file included from /Users/geohuz/Downloads/vrprouting-0.3.0/src/vroom/vroom_driver.cpp:39:
In file included from /Users/geohuz/Downloads/vrprouting-0.3.0/include/cpp_common/vrp_vroom_problem.hpp:45:
/Users/geohuz/Downloads/vrprouting-0.3.0/include/cpp_common/base_matrix.h:41:10: fatal error: 'structures/generic/matrix.h' file not found
#include "structures/generic/matrix.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/vroom/CMakeFiles/vroom.dir/vroom_driver.cpp.o] Error 1
make[1]: *** [src/vroom/CMakeFiles/vroom.dir/all] Error 2
make: *** [all] Error 2

To Reproduce Download the 0.3.0 zip file from release page, unzip and follow the documentation, the make step gives me above error.

Platform/versions

SELECT version();
-- PostgreSQL 14.4 on aarch64-apple-darwin20.6.0, compiled by Apple clang version 12.0.5 (clang-1205.0.22.9), 64-bit

SELECT postgis_full_version();
-- POSTGIS="3.2.1 v2.4.3-153-g6e2f271" [EXTENSION] PGSQL="140" GEOS="3.10.2-CAPI-1.16.0" PROJ="8.1.1" LIBXML="2.9.14" LIBJSON="0.15" LIBPROTOBUF="1.4.0" WAGYU="0.5.0 (Internal)" (core procs from "3.2.1 v2.4.3-122-gd5d0b81" need upgrade)

SELECT pgr_version(); -- 3.3.1
noppw commented 8 months ago

I got the same issue but in debian 11 and PostgreSQL 15