Hi Stephen,<div><br></div><div>Thanks for your improvement.</div><div>I will check it tonight.</div><div><br></div><div>Regards,</div><div><br><div class="gmail_quote">2013/3/21 Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi sanak,<br>
<br>
I figured out a nice trick for scripting the bjam.exe bootstrap. You can change your instructions like this:<br>
<br>
<br>
Boost<br>
------------------------------<u></u>------------------------------<u></u>-<br>
Use old version(1.46.1) because of boost/graph/detail/is_same.hpp issue<br>
<br>
$ cd /c/build<br>
$ wget <a href="http://sourceforge.net/projects/boost/files/boost/1.46.1/boost_1_46_1.zip" target="_blank">http://sourceforge.net/<u></u>projects/boost/files/boost/1.<u></u>46.1/boost_1_46_1.zip</a><br>
$ unzip boost_1_46_1.zip<br>
$ cd boost_1_46_1/tools/build/v2<br>
$ # the following will run the bootstrap.bat in cmd.exe and exit<br>
$ cmd //c bootstrap.bat gcc<br>
$ cp bjam.exe /c/build/boost_1_46_1/<br>
$ cd /c/build/boost_1_46_1<br>
$ bjam toolset=gcc address-model=32 define=BOOST_USE_WINDOWS_H link=static threading=multi --with-thread --prefix=/usr/local install<br>
<br>
* Above bjam build instruction is quoted from the following site.<br>
[Unable to build Boost libraries with GCC - Stack Overflow]<br>
<br>
<a href="http://stackoverflow.com/questions/5299468/unable-to-build-boost-libraries-with-gcc" target="_blank">http://stackoverflow.com/<u></u>questions/5299468/unable-to-<u></u>build-boost-libraries-with-gcc</a><br>
<br>
<br>
Also for gaul I created a gaul.path file so instead of having the used edit the includes I run:<br>
<br>
$ ./configure --enable-slang=no --enable-pthread=no --enable-shared=yes<br>
$ cat /c/build/gaul.patch | patch -p1<br>
<br>
My patch file is:<br>
<br>
$ cat /c/build/gaul.patch<br>
--- gaul-devel-0.1849-0/util/gaul/<u></u>gaul_config.h 2005-04-20 12:09:49 -0400<br>
+++ gaul-devel-0.1849-0a/util/<u></u>gaul/gaul_config.h 2013-03-11 13:47:33 -0400<br>
<br>
@@ -53,9 +53,9 @@<br>
<br>
#ifdef WIN32<br>
# ifdef BUILDING_DLL<br>
-# define FUNCPROTO __declspec (dllexport)<br>
+# define FUNCPROTO<br>
# else<br>
-# define FUNCPROTO __declspec (dllimport)<br>
+# define FUNCPROTO<br>
# endif<br>
#else<br>
# define FUNCPROTO<br>
<br>
--- gaul-devel-0.1849-0/util/gaul/<u></u>gaul_config_win.h 2005-04-14 11:08:56 -0400<br>
+++ gaul-devel-0.1849-0a/util/<u></u>gaul/gaul_config_win.h 2013-03-11 13:48:12 -0400<br>
@@ -39,9 +39,9 @@<br>
******************************<u></u>******************************<u></u>**********/<br>
<br>
#ifdef BUILDING_DLL<br>
-# define FUNCPROTO __declspec (dllexport)<br>
+# define FUNCPROTO<br>
#else<br>
-# define FUNCPROTO __declspec (dllimport)<br>
+# define FUNCPROTO<br>
#endif<br>
<br>
# if defined __CYGWIN32__ && !defined __CYGWIN__<br>
---<br>
<br>
You might want to add these to your process.<br>
<br>
Thanks,<br>
-Steve<div class="im"><br>
<br>
On 3/13/2013 10:44 AM, sanak wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Stephen,<div class="im"><br>
I have updated the MinGW32/64 build instruction,<br>
so, could you retry from boost build?<br>
(Sorry, gcc PATH settings is not necessary, because msys.bat path<br>
settings seems to be inherited by command prompt.)<br>
<a href="https://github.com/sanak/pgrouting4w/commit/e5ae697b3cb545b002702eda62c2909382ae4521" target="_blank">https://github.com/sanak/<u></u>pgrouting4w/commit/<u></u>e5ae697b3cb545b002702eda62c290<u></u>9382ae4521</a><br>
Regards,<br>
<br></div>
2013/3/13 sanak <<a href="mailto:geosanak@gmail.com" target="_blank">geosanak@gmail.com</a> <mailto:<a href="mailto:geosanak@gmail.com" target="_blank">geosanak@gmail.com</a>>><div class="im"><br>
<br>
Hi Stephen,<br>
Oops, sorry, my boost_1_46_1/tools/build/bjam.<u></u>log shows "msvc10"<br>
which I have installed...<br>
<br>
I will check after returning from work. (about 12 hour later)<br>
Regards,<br>
2013/3/13 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>
OK, it looks like I have solved ISSUE 2, I think this was caused<br>
because I built boost with the 32 bit model in the 64 bit<br>
environment. I still can not not get ISSUE 1 to resolve and I<br>
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<br>
they would be appreciated.<br>
<br>
In my msys.bat shell, I have:<br>
<br></div><div class="im">
PATH=/c/ming64/mingw64/bin/:/_<u></u>_home/woodbri/bin:.:/usr/<u></u>local/__bin:/mingw/bin:/bin:/<u></u>c/oracle/__product/10.2.0/db_<u></u>1/bin:/c/__Windows/system32:/<u></u>c/Windows:/__c/Windows/<u></u>System32/Wbem:/c/__Windows/<u></u>System32/__WindowsPowerShell/<u></u>v1.0/:/c/__Program<br>
</div><div class="im">
Files (x86)/QuickTime/QTSystem/<br>
<br>
Thanks,<br>
-Steve<br>
<br>
<br>
On 3/12/2013 11:34 AM, Stephen Woodbridge wrote:<br>
<br>
Hi Sanak,<br>
<br>
I'm still have an issue with this. Hopefully I followed your<br>
changes<br>
correctly:<br>
<br>
In my msys.bat shell I added the to the path:<br>
/c/ming64/mingw64/bin/, I<br>
have /c/ming64/ and /c/ming32/ trees setup so I can build on<br>
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></div>
c:\ming64\projects\boost_1_46_<u></u>__1\tools\build\v2\engine\src><u></u>if<div class="im"><br>
exist<br>
bootstrap rd /S /Q bootstrap<br>
<br></div>
c:\ming64\projects\boost_1_46_<u></u>__1\tools\build\v2\engine\src><u></u>md<br>
bootstrap<br>
<br>
c:\ming64\projects\boost_1_46_<u></u>__1\tools\build\v2\engine\src><u></u>cl<div class="im"><br>
/nologo /GZ<br>
/Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib<br>
advapi32.lib user32.lib /Febootstrap\jam0 command.c<br>
compile.c debug.c<br>
execnt.c expand.c filent.c glob.c hash.c hdrmacro.c<br>
headers.c jam.c<br>
jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c<br>
output.c<br>
parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c<br>
timestamp.c<br>
variable.c modules.c strings.c filesys.c builtins.c md5.c<br>
pwd.c class.c<br>
w32_getreg.c native.c modules/set.c modules/path.c<br>
modules/regex.c<br>
modules/property-set.c modules/sequence.c modules/order.c<br>
<br></div>
I looked at tools/build/v2/engine/src/__<u></u>build.bat but I'm<div class="im"><br>
not very<br>
familiar with windows bat files.<br>
<br>
-Steve<br>
<br>
On 3/12/2013 9:15 AM, sanak wrote:<br>
<br>
Hi Stephen,<br>
I updated MinGW32/64 build instruction to my "mingw" branch,<br>
and checked that MinGW64-bit build successed. (but not<br>
tested)<br></div>
<a href="https://github.com/sanak/__pgrouting4w/commit/__2a660524b53bcd80005e52917af5b3__2b31749559" target="_blank">https://github.com/sanak/__<u></u>pgrouting4w/commit/__<u></u>2a660524b53bcd80005e52917af5b3<u></u>__2b31749559</a><div class="im">
<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></div>
<mailto:<a href="mailto:woodbri@swoodbridge." target="_blank">woodbri@swoodbridge.</a>__<u></u>com<div class="im"><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<br>
pgrouting driving<br>
directions module using mingw 64 bit. See the<br>
issues below. So if<br>
anyone has any thoughts on this it would be<br>
appreciated. I will<br>
check the current state of the files into my branch<br>
in the morning<br>
here (GMT-5) if you are setup to reproduce this. It<br>
is too late to<br>
do it with a clear head tonight. I'll also move it<br>
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><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>><div class="im"><br>
<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<br>
problems compiling so<br>
installed boost_1_46_1.zip as he suggested. I was<br>
able to bootstrap<br>
1_51 and get a bjam.exe without a problem. But I<br>
could not get<br>
1_46_1 to bootstrap :(<br>
<br>
Microsoft Windows [Version 6.1.7601]<br>
Copyright (c) 2009 Microsoft Corporation. All<br>
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<br>
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></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><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>><div class="im">
<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></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<br>
in 1_51 and it<br>
seems to have worked ok, but maybe that is part of<br>
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>
<br></div><div class="im">
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></div>
In file included from<br>
<br><div class="im">
c:/ming64/projects/pgx64/pg92/<u></u>____include/postgresql/server/<u></u>__pg___config_os.h:37:0,<br>
<br>
from<br>
<br>
c:/ming64/projects/pgx64/pg92/<u></u>____include/postgresql/server/<u></u>c.__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></div>
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.<u></u>4/__.__./../../../x86_64-w64-_<u></u>_mingw32/__include/winsock2.h:<u></u>__13:2:<div class="im"><br>
<br>
warning: #warning Please include winsock2.h before<br>
windows.h<br>
[ 93%] Building CXX object<br>
<br></div><div class="im">
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></div><div class="im">
Linking CXX shared library<br>
../../../lib/librouting_dd.dll<br>
Creating library file:<br></div><div class="im">
../../../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></div>
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+<u></u>0xf898):<br>
<br>
undefined reference to<br>
`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+<u></u>0xf8a4):<br>
<br>
undefined reference to<br>
`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+<u></u>0xf8b0):<br>
<br>
undefined reference to<br>
`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>
<br></div>
[core/driving_distance/src/___<u></u>_CMakeFiles/routing_dd.dir/<u></u>all]<div class="im"><br>
Error 2<br>
make: *** [all] Error 2<br></div>
______________________________<u></u>_____________________<div class="im"><br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.<u></u>osgeo.org</a>><br></div><div class="im">
<mailto:<a href="mailto:pgrouting-dev@lists." target="_blank">pgrouting-dev@lists.</a>__<a href="http://osgeo.org" target="_blank"><u></u>osgeo.org</a><br>
<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> <<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>
<<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></div><div><div class="h5">
______________________________<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>
<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>
______________________________<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>
<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>
______________________________<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>
<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></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>