[gdal-dev] 1.7.0 MSYS build broken in GPX

Ari Jolma ari.jolma at gmail.com
Wed Dec 16 13:22:31 EST 2009


Roger,

I have no problems with building the GPX driver.

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?).

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
>


-- 
Prof. Ari Jolma
Environmental Management Information Technology
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 4511 address: POBox 5300, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://geoinformatics.tkk.fi



More information about the gdal-dev mailing list