<HTML dir=ltr><HEAD><TITLE>[GRASS-dev] Linking gdal 1.5.1 in mingw</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR><BASE href=http://mailstore.rossoalice.alice.it/exchange/Alice000000001264700/Bozze/R:%20[GRASS-dev]%20Linking%20gdal%201.5.1%20in%20mingw.EML/1_text.htm></HEAD>
<BODY>
<DIV id=idOWAReplyText55422 dir=ltr>
<DIV dir=ltr><FONT color=#000000 size=2>Hi Joel,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>&gt;Has any one successfully compiled GDAL 1.5.1 using the above guide?</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>yes, sure, I never publish anything if I don't check it's actually working ;-)</FONT></DIV>
<DIV dir=ltr><FONT size=2>did you hacked <FONT face="Courier New">gdal-1.5.1\GNUmakefile</FONT>?</FONT></DIV></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Marco Pasetti</FONT><BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>Da:</B> grass-dev-bounces@lists.osgeo.org per conto di Joel Pitt<BR><B>Inviato:</B> mar 22/04/2008 10.54<BR><B>A:</B> Grass Developers List<BR><B>Oggetto:</B> [GRASS-dev] Linking gdal 1.5.1 in mingw<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi all,<BR><BR>I've struggled with this for most of today, so thought see if anyone<BR>here had any clues to my troubles.<BR><BR>I'm following the below guide to compile GRASS and related libraries<BR>from scratch on Windows using MinGW:<BR><BR><A href="http://www.webalice.it/marco.pasetti/grass/BuildFromSource.html">http://www.webalice.it/marco.pasetti/grass/BuildFromSource.html</A><BR><BR>I've gotten up to compiling GDAL, but it doesn't link... saying:<BR><BR>----<BR><BR>libtool: link: g++ -shared -nostdlib<BR>C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../dllcrt2.o<BR>C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/crtbegin.o<BR>.libs/libgdal.la.lnkscript&nbsp; -L/usr/local/lib<BR>/usr/local/lib/libgeos_c.dll.a /usr/local/lib/libgeos.dll.a<BR>-L/usr/local/sqlite/lib /usr/local/sqlite/lib/libsqlite3.dll.a<BR>-LC:/msys/local/pgsql/lib -lpq<BR>-LC:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5<BR>-LC:/msys/mingw/bin/../lib/gcc<BR>-LC:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib<BR>-LC:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/../../.. -lstdc++<BR>-lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32<BR>-ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt<BR>C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.5/crtend.o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -o<BR>.libs/libgdal-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib<BR>-Xlinker .libs/libgdal.dll.a<BR>C:\msys\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:<BR>cannot find /usr/local/src/gdal-1.5.1/ogr/ogrsf_frmts/o/.libs/arraylist.o<BR>collect2: ld returned 1 exit status<BR>make[1]: *** [libgdal.la] Error 1<BR>make[1]: Leaving directory `/usr/local/src/gdal-1.5.1'<BR>make: *** [check-lib] Error 2<BR><BR>----<BR><BR>When I check for the missing file,<BR>/usr/local/src/gdal-1.5.1/ogr/ogrsf_frmts/o/.libs/arraylist.o seems to<BR>be sitting there with appropriate permissions and all.<BR><BR>Looking around, alot of the GDAL compilation guides say to configure<BR>using "--without-libtool" but that just results in lots of undefined<BR>references.<BR><BR>Has any one successfully compiled GDAL 1.5.1 using the above guide?<BR><BR>Thanks in advance for any help,<BR><BR>J<BR>_______________________________________________<BR>grass-dev mailing list<BR>grass-dev@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</A><BR></FONT></P></DIV></BODY></HTML>