<div>Hi Stephen,</div><div> </div><div>I have updated the MinGW32/64 build instruction,</div><div>so, could you retry from boost build?</div><div>(Sorry, gcc PATH settings is not necessary, because msys.bat path settings seems to be inherited by command prompt.)</div>

<div><a href="https://github.com/sanak/pgrouting4w/commit/e5ae697b3cb545b002702eda62c2909382ae4521" target="_blank">https://github.com/sanak/pgrouting4w/commit/e5ae697b3cb545b002702eda62c2909382ae4521</a></div>
<div> </div><div>Regards,<br><br></div><div class="gmail_quote">2013/3/13 sanak <span dir="ltr"><<a href="mailto:geosanak@gmail.com" target="_blank">geosanak@gmail.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">


<div>Hi Stephen,</div><div> </div><div>Oops, sorry, my boost_1_46_1/tools/build/bjam.log shows "msvc10" which I have installed...<br><br>I will check after returning from work. (about 12 hour later)</div><div> </div>



<div>Regards,</div><div><div><div> </div><div class="gmail_quote">2013/3/13 Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span><br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">OK, it looks like I have solved ISSUE 2, I think this was caused because I built boost with the 32 bit model in the 64 bit environment. I still can not not get ISSUE 1 to resolve and I had to rebuild it using the bjam I built under 1_51.<br>





<br>
To fix ISSUE to:<br>
<br>
1. rebuilt boost_1_46_1 as 64 bit model using bjam from 1_51<br>
2. rebuild CGAL<br>
3. rebuild pgrouting<br>
<br>
So I have at least on cuild of pgRouting<br>
<br>
So making progress in small steps :)<br>
<br>
If you have any additional thoughts on getting boost to build they would be appreciated.<br>
<br>
In my msys.bat shell, I have:<br>
<br>
PATH=/c/ming64/mingw64/bin/:/<u></u>home/woodbri/bin:.:/usr/local/<u></u>bin:/mingw/bin:/bin:/c/oracle/<u></u>product/10.2.0/db_1/bin:/c/<u></u>Windows/system32:/c/Windows:/<u></u>c/Windows/System32/Wbem:/c/<u></u>Windows/System32/<u></u>WindowsPowerShell/v1.0/:/c/<u></u>Program Files (x86)/QuickTime/QTSystem/<br>





<br>
Thanks,<br>
  -Steve<div><div><br>
<br>
On 3/12/2013 11:34 AM, Stephen Woodbridge wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hi Sanak,<br>
<br>
I'm still have an issue with this. Hopefully I followed your changes<br>
correctly:<br>
<br>
In my msys.bat shell I added the to the path: /c/ming64/mingw64/bin/, I<br>
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<br>
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<br>
/Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib<br>
advapi32.lib user32.lib /Febootstrap\jam0  command.c compile.c debug.c<br>
execnt.c expand.c filent.c glob.c hash.c hdrmacro.c headers.c jam.c<br>
jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c<br>
parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c timestamp.c<br>
variable.c modules.c strings.c filesys.c builtins.c md5.c pwd.c class.c<br>
w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c<br>
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<br>
familiar with windows bat files.<br>
<br>
-Steve<br>
<br>
On 3/12/2013 9:15 AM, sanak wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
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>





<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>
<mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>><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>
    <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>
    <<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>
    c:\ming64\projects\boost_1_46_<u></u>__1>bootstrap.bat mingw<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>
<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>
    <<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>
    c:\ming64\projects\boost_1_46_<u></u>__1><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>
    core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>alpha.c.obj<br>
    [ 86%] Building CXX object<br>
<br>
core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>alpha_drivedist.cpp.obj<br>
<br>
    In file included from<br>
<br>
c:/ming64/projects/pgx64/pg92/<u></u>__include/postgresql/server/<u></u>pg___config_os.h:37:0,<br>
<br>
                      from<br>
    c:/ming64/projects/pgx64/pg92/<u></u>__include/postgresql/server/c.<u></u>h:__87,<br>
                      from<br>
<br>
c:/ming64/projects/pgx64/pg92/<u></u>__include/postgresql/server/__<u></u>postgres.h:47,<br>
<br>
                      from<br>
<br>
c:/ming64/projects/pgrouting/_<u></u>_core/driving_distance/src/__<u></u>alpha.h:27,<br>
                      from<br>
<br>
c:/ming64/projects/pgrouting/_<u></u>_core/driving_distance/src/__<u></u>alpha_drivedist.cpp:46:<br>
<br>
<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:<br>
<br>
    warning: #warning Please include winsock2.h before windows.h<br>
    [ 93%] Building CXX object<br>
<br>
core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>boost_drivedist.cpp.obj<br>
<br>
    [100%] Building C object<br>
<br>
core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/__<u></u>drivedist.c.obj<br>
    Linking CXX shared library ../../../lib/librouting_dd.dll<br>
    Creating library file: ../../../lib/librouting_dd.__<u></u>dll.a<br>
<br>
c:/ming64/msys/local/lib/__<u></u>libboost_thread-mgw45-mt-1_46_<u></u>__1.a(thread.o):<br>
    duplicate section<br>
<br>
`.data$_ZTVN5boost16exception_<u></u>__detail10clone_implINS0___<u></u>19error_info_injectorISt9bad__<u></u>_allocEEEE[vtable<br>
<br>
    for<br>
<br>
boost::exception_detail::__<u></u>clone_impl<boost::exception___<u></u>detail::error_info_injector<__<u></u>std::bad_alloc><br>
<br>
     >]' has different size<br>
<br>
c:/ming64/msys/local/lib/__<u></u>libCGAL.a(all_files.cpp.obj):_<u></u>_all_files.cpp:(.text+0xf898):<br>
<br>
    undefined reference to  `boost::system::generic___<u></u>category()'<br>
<br>
c:/ming64/msys/local/lib/__<u></u>libCGAL.a(all_files.cpp.obj):_<u></u>_all_files.cpp:(.text+0xf8a4):<br>
<br>
    undefined reference to `boost::system::generic___<u></u>category()'<br>
<br>
c:/ming64/msys/local/lib/__<u></u>libCGAL.a(all_files.cpp.obj):_<u></u>_all_files.cpp:(.text+0xf8b0):<br>
<br>
    undefined reference to `boost::system::system___<u></u>category()'<br>
    collect2: ld returned 1 exit status<br>
    make[2]: *** [lib/librouting_dd.dll] Error 1<br>
    make[1]: ***<br>
    [core/driving_distance/src/__<u></u>CMakeFiles/routing_dd.dir/all] Error 2<br>
    make: *** [all] Error 2<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> <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>><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>
</blockquote>
<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>
</blockquote>
<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></div></blockquote></div><br>