<div dir="ltr"><div><div><div><div><div><div><div>thanks dave and steve,<br><br></div><div>now it built and installed successfully.<br></div><div><br></div><div>it took three more things:</div><div><br></div>1) adding #include <sstream> to k_targets_boost_wrapper.cpp<br>

<br></div>2)changing #include "boost/property_map/property_map.hpp" to #include "boost/property_map.hpp" in ./src/apsp_johnson/src/apsp_johnson_boost_wrapper.cpp<br><br></div>3)adding to ./src/tsp/src/tsp2.c just under the line #include <math.h>:<br>

</div>        #ifndef INIFINITY<br></div>        # define INFINITY (1.0/0.0)<br></div>        #endif<br><br></div>best,<br><br>ian<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 1, 2013 at 5:11 AM, Dave Potts <span dir="ltr"><<a href="mailto:dave.potts@pinan.co.uk" target="_blank">dave.potts@pinan.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/08/13 05:03, Stephen Woodbridge wrote:<br>
hi Ian,<br>
<br>
I am running this software on Ubunto 12.04<br>
<br>
I had some initial build issues mainly sorted by upgrade bits and bobs.<br>
<br>
I am running<br>
<br>
cmake 2.8.11<br>
gcc version 4.6.3<br>
bootst version 1.4.8<br>
postgis  POSTGIS="2.0.0 r9605" GEOS="3.3.8-CAPI-1.7.8" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.9.2, released 2012/10/08" LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER<br>


<br>
The development version compiles out of the box.<br>
<br>
I not suggesting that you upgrade to any of these versions, but its a set up that works.<br>
<br>
regards<span class="HOEnZb"><font color="#888888"><br>
<br>
Dave</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ian,<br>
<br>
This looks like something involving the includes in your old version of gcc. I'm running gcc version 4.7.2 (Debian 4.7.2-5) which is very new, but I also was compiling with gcc version 4.3.2 (Debian 4.3.2-1.1) and had no problems with that.<br>


<br>
You might try adding to k_targets_boost_wrapper.cpp:<br>
<br>
#include <sstream><br>
<br>
It might need to be explicitly included on your version.<br>
<br>
-Steve<br>
<br>
<br>
On 7/31/2013 4:26 PM, Ian Tangert wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Steve,<br>
<br>
I got alot farther with pgrouting 2.0 over 1.05 but the make && make<br>
install stopped with the following error:<br>
<br>
/sources/pgrouting/src/<u></u>kdijkstra/src/k_targets_boost_<u></u>wrapper.cpp: In<br>
function ‘std::string toString(T)’:<br>
/sources/pgrouting/src/<u></u>kdijkstra/src/k_targets_boost_<u></u>wrapper.cpp:282:<br>
error: invalid use of undefined type ‘struct std::stringstream’<br>
/usr/lib/gcc/x86_64-redhat-<u></u>linux/4.1.2/../../../../<u></u>include/c++/4.1.2/iosfwd:83: <br>
error: declaration of ‘struct std::stringstream’<br>
make[2]: ***<br>
[src/kdijkstra/src/CMakeFiles/<u></u>kdijkstra.dir/k_targets_boost_<u></u>wrapper.cpp.o] <br>
Error 1<br>
make[1]: *** [src/kdijkstra/src/CMakeFiles/<u></u>kdijkstra.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
a few things i did:<br>
<br>
i had to change the following cgal reference in the CMakeCache.txt<br>
   =/usr/local/cgal/3.6.1/lib/<u></u>libCGAL.so<br>
<br>
Also, my make was:<br>
   make -DWITH_DD=ON -WITH_TSP=ON .<br>
        ......<br>
       configuring done, generating done, no errors<br>
<br>
make && make install<br>
targets for trsp, astar, and dijkstra were built, but I don't understand<br>
what the     new error means<br>
<br>
On Wed, Jul 31, 2013 at 3:27 PM, Stephen Woodbridge<br>
<<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>> wrote:<br>
<br>
    Hi Ian,<br>
<br>
    What version of pgRouting are you trying to install?<br>
    I strongly recommend us 2.0.0 which is in beta and far more stable<br>
    than 1.05.<br>
<br>
    git clone <a href="https://github.com/pgRouting/__pgrouting.git" target="_blank">https://github.com/pgRouting/_<u></u>_pgrouting.git</a><br>
    <<a href="https://github.com/pgRouting/pgrouting.git" target="_blank">https://github.com/pgRouting/<u></u>pgrouting.git</a>><br>
    cd pgrouting<br>
    git checkout develop<br>
    mkdir build<br>
    cd build<br>
    cmake  -DWITH_DD=ON ..<br>
    make && sudo make install<br>
    cd ..<br>
    tools/<a href="http://test-runner.pl" target="_blank">test-runner.pl</a> <<a href="http://test-runner.pl" target="_blank">http://test-runner.pl</a>><br>
<br>
    Read this for more information:<br>
    <a href="https://github.com/pgRouting/__pgrouting/tree/develop" target="_blank">https://github.com/pgRouting/_<u></u>_pgrouting/tree/develop</a><br>
    <<a href="https://github.com/pgRouting/pgrouting/tree/develop" target="_blank">https://github.com/pgRouting/<u></u>pgrouting/tree/develop</a>><br>
<br>
    -Steve<br>
<br>
<br>
    On 7/31/2013 3:10 PM, Ian Tangert wrote:<br>
<br>
        hello,<br>
<br>
        when i run make i get the following errors<br>
<br>
        make<br>
        [  8%] Building C object<br>
        extra/tsp/src/CMakeFiles/__<u></u>routing_tsp.dir/tsp.o<br>
        In file included from<br>
        /usr/pgsql-9.1/include/server/<u></u>__nodes/execnodes.h:17,<br>
                           from<br>
        /usr/pgsql-9.1/include/server/<u></u>__executor/execdesc.h:18,<br>
                           from<br>
        /usr/pgsql-9.1/include/server/<u></u>__executor/executor.h:17,<br>
                           from<br>
        /usr/pgsql-9.1/include/server/<u></u>__funcapi.h:21,<br>
                           from<br>
        /sources/pgrouting/pgrouting/_<u></u>_extra/tsp/src/tsp.c:26:<br>
<br>
        if i edit the the files listed in the error output above so that the<br>
        line that says #include "node/somefile.h" has the full path to<br>
        the file<br>
        to be included (/usr/pgsql-9.1/include/__<u></u>server/node/somefile.h)<br>
        then the<br>
        make command no longer produces an error.  but any time there is<br>
        a new<br>
        file to be included i need to edit the first file to include the<br>
        full<br>
        path and on and on.  Is there something i am missing so that<br>
        that the<br>
        pgrouting make "knows" that everything can be found somewhere in<br>
        /usr/pgsql-9.1/include?<br>
<br>
        my CMakeCahce.txt file looks like this:<br>
POSTGRESQL_INCLUDE_DIR:__<u></u>FILEPATH=/usr/pgsql-9.1/__<u></u>include<br>
<br>
        I am trying to install this on CentOS 5.5 with a postgresql<br>
        installation<br>
        that came from 9.1.9-1PGDG.rhel5, postgis also successfully<br>
        installed<br>
        and extension created in database<br>
<br>
        would it work if i just kept adding the full path in the include<br>
        line in<br>
        the *.h files, and if I did would that mess anything up for<br>
        postgres in<br>
        general?<br>
<br>
        thanks for any advice<br>
<br>
        ps my cmake -DWITH_TSP=ON -DWITH_DD=ON . output looks like this:<br>
<br>
        Boost headers were found here: /usr/include<br>
        Output directory for libraries is set to /usr/pgsql-9.1/lib<br>
        Installation directory for libraries is set to<br>
        /usr/pgsql-9.1/lib and<br>
        for SQL files is set to /usr/share/pgrouting<br>
        Installation directory for libraries is set to /usr/pgsql-9.1/lib<br>
        -- Configuring done<br>
        -- Generating done<br>
        -- Build files have been written to: /sources/pgrouting/pgrouting<br>
<br>
<br>
        ______________________________<u></u>___________________<br>
        Pgrouting-users mailing list<br>
        Pgrouting-users@lists.osgeo.__<u></u>org<br>
        <mailto:<a href="mailto:Pgrouting-users@lists.osgeo.org" target="_blank">Pgrouting-users@lists.<u></u>osgeo.org</a>><br>
<a href="http://lists.osgeo.org/__mailman/listinfo/pgrouting-__users" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/pgrouting-__<u></u>users</a><br>
<<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-<u></u>users</a>><br>
<br>
<br>
    ______________________________<u></u>___________________<br>
    Pgrouting-users mailing list<br>
    Pgrouting-users@lists.osgeo.__<u></u>org<br>
    <mailto:<a href="mailto:Pgrouting-users@lists.osgeo.org" target="_blank">Pgrouting-users@lists.<u></u>osgeo.org</a>><br>
    <a href="http://lists.osgeo.org/__mailman/listinfo/pgrouting-__users" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/pgrouting-__<u></u>users</a><br>
<<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-<u></u>users</a>><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org" target="_blank">Pgrouting-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-<u></u>users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org" target="_blank">Pgrouting-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-<u></u>users</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org" target="_blank">Pgrouting-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-<u></u>users</a><br>
</div></div></blockquote></div><br></div>