Ticket #1924 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

GDAL with Xerces support

Reported by: buijten Owned by: mloskot
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

Changed 6 years ago by warmerdam

  • cc warmerdam added
  • keywords xerces ili interlis added
  • component changed from default to ConfigBuild
  • owner changed from warmerdam to mloskot

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.

Changed 6 years ago by mloskot

  • status changed from new to assigned

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!

Changed 6 years ago by mloskot

  • milestone set to 1.4.3

Changed 6 years ago by mloskot

  • status changed from assigned to closed
  • resolution set to fixed

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.