<div dir="ltr"><div>@Sanak<br><br></div>Pleasure<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 12, 2013 at 5:34 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sanak,<br>
<br>
I'm still have an issue with this. Hopefully I followed your changes correctly:<br>
<br>
In my msys.bat shell I added the to the path: /c/ming64/mingw64/bin/, I have /c/ming64/ and /c/ming32/ trees setup so I can build on either.<br>
<br>
start cmd<br>
gcc -v               # is found and run<br>
bootstrap.bat gcc    # fails<br>
bootstrap.bat mingw  # fails<br>
<br>
exit<br>
<br>
$ cat tools/build/bjam.log<br>
###<br>
### Using 'msvc' toolset.<br>
###<br>
<br>
c:\ming64\projects\boost_1_46_<u></u>1\tools\build\v2\engine\src>if exist bootstrap rd /S /Q bootstrap<br>
<br>
c:\ming64\projects\boost_1_46_<u></u>1\tools\build\v2\engine\src>md bootstrap<br>
<br>
c:\ming64\projects\boost_1_46_<u></u>1\tools\build\v2\engine\src>cl /nologo /GZ /Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib /Febootstrap\jam0  command.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c pwd.c class.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c<br>

<br>
I looked at tools/build/v2/engine/src/<u></u>build.bat but I'm not very familiar with windows bat files.<br>
<br>
-Steve<div class="im"><br>
<br>
On 3/12/2013 9:15 AM, sanak wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi Stephen,<br>
I updated MinGW32/64 build instruction to my "mingw" branch,<br>
and checked that MinGW64-bit build successed. (but not tested)<br>
<a href="https://github.com/sanak/pgrouting4w/commit/2a660524b53bcd80005e52917af5b32b31749559" target="_blank">https://github.com/sanak/<u></u>pgrouting4w/commit/<u></u>2a660524b53bcd80005e52917af5b3<u></u>2b31749559</a><br>

so, retry from boost build about ISSUE1. (Thanks Pieter!)<br>
Regards,<br>
2013/3/12 Stephen Woodbridge <<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a><br></div>
<mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>><div class="im"><br>
<br>
    Hi all,<br>
<br>
    I'm stuck at the moment trying to link the pgrouting driving<br>
    directions module using mingw 64 bit. See the issues below. So if<br>
    anyone has any thoughts on this it would be appreciated. I will<br>
    check the current state of the files into my branch in the morning<br>
    here (GMT-5) if you are setup to reproduce this. It is too late to<br>
    do it with a clear head tonight. I'll also move it back to Linux and<br>
    try again there as I have changed a lot of files.<br>
<br>
    Thanks,<br>
       -Steve<br>
<br>
    I have followed Sanak's directions from:<br></div>
    <a href="https://github.com/sanak/__pgrouting4w/blob/master/BUILD.__mingw64" target="_blank">https://github.com/sanak/__<u></u>pgrouting4w/blob/master/BUILD.<u></u>__mingw64</a><div class="im"><br>
    <<a href="https://github.com/sanak/pgrouting4w/blob/master/BUILD.mingw64" target="_blank">https://github.com/sanak/<u></u>pgrouting4w/blob/master/BUILD.<u></u>mingw64</a>><br>
<br>
    ISSUE 1:<br>
<br>
    I first installed boost_1_51.zip but ran into problems compiling so<br>
    installed boost_1_46_1.zip as he suggested. I was able to bootstrap<br>
    1_51 and get a bjam.exe without a problem. But I could not get<br>
    1_46_1 to bootstrap :(<br>
<br>
    Microsoft Windows [Version 6.1.7601]<br>
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.<br>
<br></div>
    c:\ming64\projects\boost_1_46_<u></u>__1>bootstrap.bat mingw<div class="im"><br>
    Building Boost.Jam build engine<br>
    'cl' is not recognized as an internal or external command,<br>
    operable program or batch file.<br>
<br>
    Failed to build Boost.Jam build engine.<br>
    Please consult bjam.log for furter diagnostics.<br>
<br>
    You can try to obtain a prebuilt binary from<br>
<br></div>
    <a href="http://sf.net/project/__showfiles.php?group_id=7586&__package_id=72941" target="_blank">http://sf.net/project/__<u></u>showfiles.php?group_id=7586&__<u></u>package_id=72941</a><div class="im"><br>
    <<a href="http://sf.net/project/showfiles.php?group_id=7586&package_id=72941" target="_blank">http://sf.net/project/<u></u>showfiles.php?group_id=7586&<u></u>package_id=72941</a>><br>
<br>
    Also, you can file an issue at <a href="http://svn.boost.org" target="_blank">http://svn.boost.org</a><br>
    Please attach bjam.log in that case.<br>
<br></div>
    c:\ming64\projects\boost_1_46_<u></u>__1><div class="im"><br>
<br>
    So I built 1_46_1 using the bjam.exe that I built in 1_51 and it<br>
    seems to have worked ok, but maybe that is part of the problem.<br>
<br>
    ISSUE 2:<br>
<br>
    Is the follow mess from the linker<br>
<br>
    Scanning dependencies of target routing_dd<br>
    [ 80%] Building C object<br></div>
    core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>alpha.c.obj<br>
    [ 86%] Building CXX object<br>
    core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>alpha_drivedist.cpp.obj<br>
    In file included from<br>
    c:/ming64/projects/pgx64/pg92/<u></u>__include/postgresql/server/<u></u>pg___config_os.h:37:0,<br>
                      from<br>
    c:/ming64/projects/pgx64/pg92/<u></u>__include/postgresql/server/c.<u></u>h:__87,<br>
                      from<br>
    c:/ming64/projects/pgx64/pg92/<u></u>__include/postgresql/server/__<u></u>postgres.h:47,<br>
                      from<br>
    c:/ming64/projects/pgrouting/_<u></u>_core/driving_distance/src/__<u></u>alpha.h:27,<br>
                      from<br>
    c:/ming64/projects/pgrouting/_<u></u>_core/driving_distance/src/__<u></u>alpha_drivedist.cpp:46:<br>
    c:\ming64\mingw64\bin\../lib/_<u></u>_gcc/x86_64-w64-mingw32/4.5.4/<u></u>.__./../../../x86_64-w64-<u></u>mingw32/__include/winsock2.h:<u></u>13:2:<div class="im"><br>
    warning: #warning Please include winsock2.h before windows.h<br>
    [ 93%] Building CXX object<br></div>
    core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>boost_drivedist.cpp.obj<br>
    [100%] Building C object<br>
    core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>drivedist.c.obj<div class="im"><br>
    Linking CXX shared library ../../../lib/librouting_dd.dll<br></div>
    Creating library file: ../../../lib/librouting_dd.__<u></u>dll.a<br>
    c:/ming64/msys/local/lib/__<u></u>libboost_thread-mgw45-mt-1_46_<u></u>__1.a(thread.o):<br>
    duplicate section<br>
    `.data$_ZTVN5boost16exception_<u></u>__detail10clone_implINS0___<u></u>19error_info_injectorISt9bad__<u></u>_allocEEEE[vtable<br>
    for<br>
    boost::exception_detail::__<u></u>clone_impl<boost::exception___<u></u>detail::error_info_injector<__<u></u>std::bad_alloc><br>
     >]' has different size<br>
    c:/ming64/msys/local/lib/__<u></u>libCGAL.a(all_files.cpp.obj):_<u></u>_all_files.cpp:(.text+0xf898):<br>
    undefined reference to  `boost::system::generic___<u></u>category()'<br>
    c:/ming64/msys/local/lib/__<u></u>libCGAL.a(all_files.cpp.obj):_<u></u>_all_files.cpp:(.text+0xf8a4):<br>
    undefined reference to `boost::system::generic___<u></u>category()'<br>
    c:/ming64/msys/local/lib/__<u></u>libCGAL.a(all_files.cpp.obj):_<u></u>_all_files.cpp:(.text+0xf8b0):<br>
    undefined reference to `boost::system::system___<u></u>category()'<div class="im"><br>
    collect2: ld returned 1 exit status<br>
    make[2]: *** [lib/librouting_dd.dll] Error 1<br>
    make[1]: ***<br></div>
    [core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/all] Error 2<div class="im"><br>
    make: *** [all] Error 2<br></div>
    ______________________________<u></u>___________________<br>
    pgrouting-dev mailing list<br>
    <a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a> <mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.<u></u>osgeo.org</a>><br>

    <a href="http://lists.osgeo.org/__mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/pgrouting-dev</a><br>
    <<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><u></u>><div class="im"><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</div></div></blockquote></div><br></div>