[gdal-dev] GDAL 1.5.0 questions
Roger Bivand
Roger.Bivand at nhh.no
Wed Jan 2 06:23:17 EST 2008
On Tue, 1 Jan 2008, Mateusz Loskot wrote:
> Roger Bivand wrote:
>> Second on MSYS/MinGW building GDAL - up to and including 1.4.4, my
>> installation of MSYS (1.0.10) just worked with ./configure, as
>> suggested on:
>>
>> http://trac.osgeo.org/gdal/wiki/BuildingWithMinGW
>>
>> But 1.5.0 does not build without editing libtool at line 6114 to sed
>> out the MSYS-anchored absolute path and replace it by a relative path
>> (or possibly a Windows drive-based absolute path. Once the lnkscript
>> only has relative path names, make runs to completion, and the
>> resulting binaries, used with the R bindings in the rgdal package,
>> check through without error.
>>
>> I'd welcome any suggestions for reducing the size of the libraries,
>> and if possible a fix to make path names in lnkscript relative (some
>> are, but some are not).
>
> Roger,
>
> I'd add that MinGW users may need to deal with problems and should be
> [1] prepared to apply fixes manually.
>
> Also, if you know how to fix this issue, without breaking non-MinGW
> configuration, I'd be thankful if you could submit [2] ticket and
> attach patch.
I've opened ticket #2127 with suggested fix:
change line 5657 in ./ltmain.sh (or the correct line in the file it
originates from) from:
$ECHO "$obj" >> $output
to
$ECHO "$obj" | ${SED} -e 's/.*gdal-[0-9].[0-9].[0-9]/\./' >> $output
(checked on MSYS and Linux RHEL4). Probably there is a better way of
getting the build directory name - I am building in the source tree rather
than outside. This is probably too small to be worth a patch, and in any
case ltmain.sh claims to be the output of ltmain.m4sh.
The export CXXFLAGS=-O2 and export CFLAGS=-O2 route to avoiding large DLLs
also works on MSYS.
Roger
>
> [1] http://trac.osgeo.org/gdal/wiki/SupportedCompilers#UnsupportedCompilers
>
> [2] http://trac.osgeo.org/gdal/wiki#BugTracking
>
> Cheers
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the gdal-dev
mailing list