<div>Hi Stephen,</div><div> </div><div>I updated MinGW32/64 build instruction to my "mingw" branch,</div><div>and checked that MinGW64-bit build successed. (but not tested)</div><div><a href="https://github.com/sanak/pgrouting4w/commit/2a660524b53bcd80005e52917af5b32b31749559">https://github.com/sanak/pgrouting4w/commit/2a660524b53bcd80005e52917af5b32b31749559</a></div>
<div>so, retry from boost build about ISSUE1. (Thanks Pieter!)</div><div> </div><div>Regards,<br></div><div class="gmail_quote">2013/3/12 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">Hi all,<br>
<br>
I'm stuck at the moment trying to link the pgrouting driving directions module using mingw 64 bit. See the issues below. So if anyone has any thoughts on this it would be appreciated. I will check the current state of the files into my branch in the morning here (GMT-5) if you are setup to reproduce this. It is too late to do it with a clear head tonight. I'll also move it back to Linux and 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>
<br>
ISSUE 1:<br>
<br>
I first installed boost_1_51.zip but ran into problems compiling so installed boost_1_46_1.zip as he suggested. I was able to bootstrap 1_51 and get a bjam.exe without a problem. But I could not get 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>
   <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 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 core/driving_distance/src/<u></u>CMakeFiles/routing_dd.dir/<u></u>alpha.c.obj<br>
[ 86%] Building CXX object core/driving_distance/src/<u></u>CMakeFiles/routing_dd.dir/<u></u>alpha_drivedist.cpp.obj<br>
In file included from c:/ming64/projects/pgx64/pg92/<u></u>include/postgresql/server/pg_<u></u>config_os.h:37:0,<br>
                 from c:/ming64/projects/pgx64/pg92/<u></u>include/postgresql/server/c.h:<u></u>87,<br>
                 from c:/ming64/projects/pgx64/pg92/<u></u>include/postgresql/server/<u></u>postgres.h:47,<br>
                 from c:/ming64/projects/pgrouting/<u></u>core/driving_distance/src/<u></u>alpha.h:27,<br>
                 from 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-mingw32/<u></u>include/winsock2.h:13:2: warning: #warning Please include winsock2.h before windows.h<br>
[ 93%] Building CXX object core/driving_distance/src/<u></u>CMakeFiles/routing_dd.dir/<u></u>boost_drivedist.cpp.obj<br>
[100%] Building C object 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>
c:/ming64/msys/local/lib/<u></u>libboost_thread-mgw45-mt-1_46_<u></u>1.a(thread.o): duplicate section `.data$_ZTVN5boost16exception_<u></u>detail10clone_implINS0_<u></u>19error_info_injectorISt9bad_<u></u>allocEEEE[vtable for boost::exception_detail::<u></u>clone_impl<boost::exception_<u></u>detail::error_info_injector<<u></u>std::bad_alloc> >]' has different size<br>

c:/ming64/msys/local/lib/<u></u>libCGAL.a(all_files.cpp.obj):<u></u>all_files.cpp:(.text+0xf898): 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): 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): 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]: *** [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><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></div><br>