pgRouting / pgrouting

Repository contains pgRouting library. Development branch is "develop", stable branch is "master"
https://pgrouting.org
GNU General Public License v2.0
1.15k stars 366 forks source link

Errors while Installing TDSP in pgrouting #726

Closed ritwikraj1 closed 7 years ago

ritwikraj1 commented 7 years ago

**Hi,

I am following the following link to install TDSP functionality in PGRouting: https://github.com/pgRouting/pgrouting/wiki/TDSP-Tutorial-and-Example

But while executing the command "cmake -DWITH_DD=ON", it gives me the following error:**

CMake Warning (dev) at CMakeLists.txt:17 (include): Syntax Warning in cmake code at

/home/raj/Projects/pg_tdsp/pgrouting/cmake/TargetDistclean.cmake:12:124

Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it.

-- POSTGRESQL_EXECUTABLE is POSTGRESQL_EXECUTABLE-NOTFOUND -- PostgreSQL not found. FATALERROR Please check your PostgreSQL installation. -- Boost version: 1.54.0 Boost headers were found here: /usr/include Output directory for libraries is set to /usr/lib/postgresql/9.6/lib Installation directory for libraries is set to /usr/lib/postgresql/9.6/lib and for SQL files is set to /usr/share/pgrouting -- CGAL not found. FATALERROR Please check your CGAL installation, or set correct path to CGAL_INCLUDE_DIR and CGAL_LIBRARIES. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CGAL_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/driving_distance/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/core/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/tdsp/src CGAL_LIBRARIES (ADVANCED) linked by target "routing_dd" in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/driving_distance/src POSTGRESQL_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/driving_distance/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/core/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/tdsp/src

-- Configuring incomplete, errors occurred! See also "/home/raj/Projects/pg_tdsp/pgrouting/CMakeFiles/CMakeOutput.log".

**I am trying to install it on Ubuntu 14.04. Could you please help me out with the solution to this?

Thank you, Ritwik**

woodbri commented 7 years ago

I think you are probably on your own with this because this was a very old Google Summer of Code project and was never released as part of pgRouting.

Regarding your CMake issues, you have errors that tell you that you do not have all the dependencies installed.

You need to install postgresql-server-dev-9.x postgresql-contrib-9.x postgresql-client-9.x postgresql-9.x-postgis-2.3

where x is set to the version you want.

You will need to download and install CGAL: http://askubuntu.com/questions/668438/install-cgal-lib-version-4-5-1 https://launchpad.net/ubuntu/trusty/+source/cgal

-Steve W

On 2/10/2017 5:57 PM, ritwikraj1 wrote:

**Hi,

I am following the following link to install TDSP functionality in PGRouting: https://github.com/pgRouting/pgrouting/wiki/TDSP-Tutorial-and-Example

But while executing the command "cmake -DWITH_DD=ON", it gives me the following error:**

CMake Warning (dev) at CMakeLists.txt:17 (include): Syntax Warning in cmake code at

|/home/raj/Projects/pg_tdsp/pgrouting/cmake/TargetDistclean.cmake:12:124 |

Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it.

-- POSTGRESQL_EXECUTABLE is POSTGRESQL_EXECUTABLE-NOTFOUND -- PostgreSQL not found. FATALERROR Please check your PostgreSQL installation. -- Boost version: 1.54.0 Boost headers were found here: /usr/include Output directory for libraries is set to /usr/lib/postgresql/9.6/lib Installation directory for libraries is set to /usr/lib/postgresql/9.6/lib and for SQL files is set to /usr/share/pgrouting -- CGAL not found. FATALERROR Please check your CGAL installation, or set correct path to CGAL_INCLUDE_DIR and CGAL_LIBRARIES. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CGAL_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/driving_distance/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/core/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/tdsp/src CGAL_LIBRARIES (ADVANCED) linked by target "routing_dd" in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/driving_distance/src POSTGRESQL_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/driving_distance/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/core/src used as include directory in directory /home/raj/Projects/pg_tdsp/pgrouting/extra/tdsp/src

-- Configuring incomplete, errors occurred! See also "/home/raj/Projects/pg_tdsp/pgrouting/CMakeFiles/CMakeOutput.log".

**I am trying to install it on Ubuntu 14.04. Could you please help me out with the solution to this?

Thank you, Ritwik**

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pgRouting/pgrouting/issues/726, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxJgqdmVjH21IK7j7PI7C_OWYPwTiJTks5rbOtWgaJpZM4L98kb.


This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

ritwikraj1 commented 7 years ago

Hello Steve,

Thank you so much for your help. You said it was never released as part of pgRouting. Does that mean there's no way I can 'officially' add TDSP functionality in pgRouting? Do I have to compile the codes available in repository, on my own?

Thank you, Ritwik

woodbri commented 7 years ago

On 2/11/2017 6:56 PM, ritwikraj1 wrote:

Hello Steve,

Thank you so much for your help. You said it was never released as part of pgRouting. Does that mean there's no way I can 'officially' add TDSP functionality in pgRouting? Do I have to compile the codes available in repository, on my own?

Yes, you will need to compile pgrouting on your own and install it. And, the version that TDSP exists in is older than the current releases.

If your interested in doing some development, then fork the pgrouting repository, clone your fork, checkout master branch, then create a new branch off of master called mytdsp, and then merge the files in TDSP directory into your mytdsp branch. Fixup things that might be broken, and you should be able to compile that which will include the current release in master with just the TDSP files added to it. If you can get that working, then you can talk to Vickie about generating a pull request.

-Steve


This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

cvvergara commented 7 years ago

@ritwikraj1

I addd the changes of develop branch and reorganized the old tdsp code to fit into the new structure of pgRouting. I created a branch on my fork with these changes: https://github.com/cvvergara/pgrouting/tree/tofix/tdsp

Notes:

There is no current plan in the pgRouting team to fix this, but I can gladly help an external developer.

cvvergara commented 7 years ago

@ritwikraj1

I tagged and as Won't fix I am closing this issue. If you want help fixing the branch I generated for you please open an issue in my fork.