[pgrouting-dev] pgRouting 2.0 Update

Stephen Woodbridge woodbri at swoodbridge.com
Wed Mar 13 08:02:25 PDT 2013


On 3/13/2013 10:02 AM, Sandro Santilli wrote:
> On Wed, Mar 13, 2013 at 08:24:52AM -0400, Stephen Woodbridge wrote:
>> Hi strk,
>>
>> On 3/13/2013 3:14 AM, Sandro Santilli wrote:
>>> Hi Stephen,
>>> is the branch supposed to be buildable on linux ?
>>
>> More or less, I have been changing between linux and windows to keep
>> the cmake changes working on both side. It needs me to push some
>> stuff back for linux which will happen later today.
>>
>> BUT - at this point it is only "buildable", it does not install and
>> has not been tested. I also have a lot of changes to make to it for
>> postgis 2.x compatibility.
>
> It's not buildable here, with cmake 2.8.7:

This might be a problem. I'm running cmake version 2.8.10.2 and I might 
need to up the minimum version to 2.8.10 as I think that is the version 
that allows you to build obj files in a tree and then assembly them into 
a single library, which is what I'm doing.

>   -- Configuring done
>   CMake Error at CMakeLists.txt:139 (ADD_LIBRARY):
>    Cannot find source file:
>
>      $<TARGET_OBJECTS:astar>
>
>    Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
>    .hxx .in .txx
>
> And the same message repeated for:
>
>    $<TARGET_OBJECTS:dijkstra>
>    $<TARGET_OBJECTS:shooting_star>
>    $<TARGET_OBJECTS:trsp>
>
> Then:
>
>   CMake Error in core/astar/src/CMakeLists.txt:
>    Cannot find source file:
>
>      OBJECT
>
>    Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
>    .hxx .in .txx
>
> and the same message repeated for:
>
>   CMake Error in core/dijkstra/src/CMakeLists.txt:
>   CMake Error in core/shooting_star/src/CMakeLists.txt:
>   CMake Error in core/trsp/src/CMakeLists.txt:
>
> And finally:
>
>   -- Build files have been written to: /usr/src/pgrouting/pgrouting/b
>
> With cmake exit code being 1 and `make` returning:
>
>   make: *** No targets specified and no makefile found.  Stop.
>
> This is invoking cmake from outside the source dir, ie:
>
>   mkdir b; cd b; cmake -DWITH_TSP=ON -DWITH_DD=ON ..

My cmake files were not designed to work outside the source tree. I 
think all your errors above are a result of this. I didn't think about 
doing this, but there is no reason that I could support this at some 
point. I'm very new to working with cmake so suggestions, help and/or 
pull requests would be appreciated. I suspect that I would need to 
establish the root of the src tree, then make all the paths absolute or 
something along those lines. Do you have an example of a project that 
does this?

> With current seq-devel-2_0 (commit 825b40e049e4b21787c27f00aae49b0382279842)

I just pushed a minor fix to add -fPIC so the libraries will link now on 
linux. 825b40e..209c592  sew-devel-2_0 -> sew-devel-2_0

Thank you for taking the time to test this and report back.

-Steve

> --strk;
> _______________________________________________
> pgrouting-dev mailing list
> pgrouting-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-dev
>



More information about the pgrouting-dev mailing list