[pgrouting-dev] custom compile

Daniel Kastl daniel at georepublic.de
Wed Dec 1 21:36:09 EST 2010


Hi,

This is an interesting question.
Actually (at least I) haven't thought about this yet.

I know that at least SQL install path is defined in line 67 in the file:
https://github.com/pgRouting/pgrouting/blob/v1.05/CMakeLists.txt#L67
(I actually just changed it to /usr/share/pgrouting recently in the
development branch, because "postlbs" was an idea in the beginning of
pgRouting we won't follow anymore)

I suppose that there should be a way to configure customs paths with CMAKE,
but without reading more about it I don't know how. SQL path might
be hard-coded though. If someone knows what could be done and knows better,
please let me know.

Daniel



2010/12/1 Emre Ersin <emree at mobiliz.com.tr>

> Hi,
>
> I am trying to compile all the mapserver stuff in a custom directory
> /opt/emap. Everything built fine except pgrouting.
> How can I define postgresql, cgal, boost directories during cmake process?
> I was hoping that they were defined in CMakeLists.txt but it seems I am
> missing something...
>
> /opt/src/pgrouting-1.05# cmake -DBoost_INCLUDE_DIR=/opt/src/boost_1_45_0
> -DWITH_DD=ON -DCGAL_INCLUDE_DIR=/opt/emap -DCGAL_LIBRARIES=/opt/emap
> -DPOSTGRESQL_INCLUDE_DIR=/opt/emap -DPOSTGRESQL_LIBRARIES=/opt/emap
> -DSQL_INSTALL_PATH=/opt/emap  .
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> Boost headers were found here: /opt/src/boost_1_45_0
> Output directory for libraries is set to /opt/emap/lib/postgresql
> -- Found PGROUTING_CORE core: /opt/src/pgrouting-1.05/core/src
> Installation directory for libraries is set to /opt/emap/lib/postgresql and
> for SQL files is set to /usr/share/postlbs
> -- Configuring done
> WARNING: Target "routing_dd" requests linking to directory "/opt/emap".
>  Targets may link only to libraries.  CMake is dropping the item.
> -- Generating done
> -- Build files have been written to: /opt/src/pgrouting-1.05
>
>
>
> Emre ERSİN
>
>
> _______________________________________________
> pgrouting-dev mailing list
> pgrouting-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-dev
>



-- 
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20101202/6af8bd8b/attachment.html


More information about the pgrouting-dev mailing list