[Gdal-dev] Changes to libtool (or something) break MinGW build

Ari Jolma ari.jolma at tkk.fi
Sat Apr 28 16:04:53 EDT 2007


Andrey Kiselev kirjoitti:
> On Fri, Apr 27, 2007 at 11:39:32PM +0300, Ari Jolma wrote:
>   
>>>> c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: 
>>>> cannot find /c/progetti/gdal/gdalMing/frmts/o/.libs/EnvisatFile.o
>>>>         
> I have reproduced this problem and I think it is mingw issue. It can be
> fixed with the following patch, but I don't want to check it in, I would
> like to dig into this problem more.
>
> --- GNUmakefile	(revision 11369)
> +++ GNUmakefile	(working copy)
> @@ -3,13 +3,13 @@
>  
>  include GDALmake.opt
>  
> -GDAL_OBJ	=	$(GDAL_ROOT)/frmts/o/*.o \
> -			$(GDAL_ROOT)/gcore/*.o \
> -			$(GDAL_ROOT)/port/*.o \
> -			$(GDAL_ROOT)/alg/*.o
> +GDAL_OBJ	=	./frmts/o/*.o \
> +			./gcore/*.o \
> +			./port/*.o \
> +			./alg/*.o
>  
>  ifeq ($(OGR_ENABLED),yes)
> -GDAL_OBJ += $(GDAL_ROOT)/ogr/ogrsf_frmts/o/*.o
> +GDAL_OBJ += ./ogr/ogrsf_frmts/o/*.o
>  endif
>  
>  include ./ogr/file.lst
>   

This works, thanks. The problem is that GDAL_ROOT is (in my case) 
/c/dev/gdal and ld.exe would like to have it c:/dev/gdal. After a quick 
test it looks like just changing GDAL_ROOT in GDALmake.opt to 
c:/dev/gdal fixes the problem too.

Ari





More information about the Gdal-dev mailing list