[gdal-dev] 1.7.0 MSYS build broken in GPX

Roger Bivand Roger.Bivand at nhh.no
Thu Dec 17 03:25:31 EST 2009


On Wed, 16 Dec 2009, Ari Jolma wrote:

> Roger,
>
> I have no problems with building the GPX driver.

Ari,

Thanks. My problem was the presence in /usr/local/include of 1.6 GDAL 
headers, and that directory being ahead of the build tree includes. I 
build without --prefix= set in ./configure, so default to /usr/local.

>
> However, I've got several problems with the basic build process with MSYS. I 
> seem to need to run libtoolize, aclocal, and autoconf (is the libtool in repo 
> old?). Then I need to fix the cpl_config.h with MSYS related defines 
> (something broken in the MSYS autotools I have?).

The only problem I see regularly is that ltmain.sh needs editing in one 
place to change the path that linking looks for, something like the remark 
in the Wiki MinGW build comments.

Roger

>
> With those fixes there are no problems in the actual make.
>
> This was just tried with svn update. My MSYS and MinGW should be very up to 
> date.
>
> Ari
>
> Roger Bivand kirjoitti:
>> Hi,
>> 
>> I've probably missed something, but while 1.6.3 builds OK with EXPAT for 
>> GPX on MSYS, 1.7.0 revision 18238 doesn't. The problem is in:
>> 
>> libtool: compile:  g++ -O2 -Wall -I.. -I../.. -I/usr/local/include 
>> -I/home/s1155 /gdal_svn/gdal/port -I/home/s1155/gdal_svn/gdal/gcore 
>> -I/home/s1155/gdal_svn/gdal/alg -I/home/s1155/gdal_svn/gdal/ogr 
>> -I/home/s1155/gdal_svn/gdal/ogr/ogrsf_frmts -DOGR_ENABLED
>> -I/home/s1155/gdal_svn/gdal/port -DHAVE_EXPAT -c ogrgpxlayer.cpp
>> -DDLL_EXPORT -DPIC -o ../o/.libs/ogrgpxlayer.o
>> ogrgpxlayer.cpp: In function 'char* OGRGPX_GetUTF8String(const char*)':
>> ogrgpxlayer.cpp:1088: error: 'CPLIsUTF8' was not declared in this scope
>> ogrgpxlayer.cpp:1106: error: 'CPLForceToASCII' was not declared in this 
>> scope
>> make[3]: *** [../o/ogrgpxlayer.lo] Error 1
>> 
>> I can't see why CPLIsUTF8 is not being picked up from port/cpl_strings.h. 
>> These are recent changes - has anyone else seen the problem?
>> 
>> Motivation - trying to build an rgdal Windows binary using MSYS in the 
>> usual way to let R/SAGA people try out the GDAL SAGA driver. I could drop 
>> expat for now, but I'll need it again when 1.7.0 is released for GPX and 
>> KML.
>> 
>> Grateful for pointers,
>> 
>> Roger
>> 
>
>
>

-- 
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