Opened 17 years ago

Closed 17 years ago

#1924 closed defect (fixed)

GDAL with Xerces support

Reported by: buijten Owned by: Mateusz Łoskot
Priority: normal Milestone: 1.4.3
Component: ConfigBuild Version: unspecified
Severity: normal Keywords: xerces ili interlis
Cc: warmerdam

Description

Hi,

I'm trying to compile GDAL with xerces on OS-X 10.4:

./configure --with-xerces --with-xerces-inc=/Library/xerces-c_2_8_0-gcc_4_0/include --with-xerces-lib="-L/Library/xerces-c_2_8_0-gcc_4_0/lib -lxerces-c -lpthread"

but make reports an error:

g++ -Wall -O2 -I/Library/xerces-c_2_8_0-gcc_4_0/include -I/Library/xerces-c_2_8_0-gcc_4_0/include/xercesc -DOGR_ENABLED -I/Users/admin/Desktop/gdal-1.4.2/port -I.. -c reader.cpp -fno-common -DPIC -o ../../o/.libs/reader.o

reader.cpp: In member function 'virtual void ParserHandler::startElement(const XMLCh*, const XMLCh*, const XMLCh*, const xercesc_2_8::Attributes&)': reader.cpp:250: error: invalid use of undefined type 'const struct xercesc_2_8::Attributes'

Does anyone know more about this? Thanks!

Change History (4)

comment:1 by warmerdam, 17 years ago

Cc: warmerdam added
Component: defaultConfigBuild
Keywords: xerces ili interlis added
Owner: changed from warmerdam to Mateusz Łoskot

This looks like it might be the same issue as bug #1799 which is fixed in trunk and 1.4 branch.

Could you try http://download.osgeo.org/gdal/daily/gdal-svn-trunk-2007.10.19.tar.gz or perhaps grab a snapshot from the 1.4 branch of subversion if you are familiar with doing that?

I'm turning this over to Mateusz for followup as needed.

comment:2 by Mateusz Łoskot, 17 years ago

Status: newassigned

buijten, There is one very important detail missing in your report: what version of GDAL do you use?

Recently, Xerces support in GDAL has been improved and I've tested it with Xerces 2.7.0, 2.8.0 and Xerces 3.0.0 (SVN). But, everything here depends on what version of GDAL do you use, so please be more precise. Thanks!

comment:3 by Mateusz Łoskot, 17 years ago

Milestone: 1.4.3

comment:4 by Mateusz Łoskot, 17 years ago

Resolution: fixed
Status: assignedclosed

I tested building GDAL from trunk and branches/1.4 on Mac OS X 10.4 using Xerces 2.8.0 and everything works well.

I'm closing this defect. Please, reopen this ticket if you'll find it's still not working.

Note: See TracTickets for help on using tickets.