You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Don Rozenberg <ro...@mcn.org> on 2002/03/09 19:50:16 UTC

Problem using swig with XML-Xerces-1.5.2

Hi,

I am unable to build Xerces Perl with SWIG.  I am running on Linux Mandrake 
8.1.  

I was able to build Xerces.pm and run the tests using the Xerces.C in the 
distribution.  I then erased Xerces.C and tried the build sequence using SWIG 
Version 1.3.10u-20020306-1655.  The generated Xerces.C would not compile.

Using ediff, I see that ediff indicate over 3000 differences between my SWIG 
generated Xerces.C and the shipped Xerces.C.

Thinking that it was possibly related to the files in Xerces_headers I erased 
the hpp files and let the make file regenerate them.  No change.

Since I was able to build and test the vanilla distribution, I think that I 
have the correct version of Xerces C++ installed. (I installed a fresh 
XERCES-C 1.5.2).

The output of running perl Makefile.PM was:

Using XERCES_LIB = /home/rozen/pkg/xerces-c-src1_5_2/lib
Using XERCES_INCLUDE = /home/rozen/pkg/xerces-c-src1_5_2/include
Checking to see if libxerces is in your library path...Processing hints file 
hints/linux.pl
Warning: Guessing NAME [XML-Xerces-1.5.2] from current directory name.
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for Handler
Success!!
Using Xerces-C version: 1.5.2
Welcome Xerces Developer!
Processing hints file hints/linux.pl
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for XML::Xerces

I have attached a log file of the make.  I didn't attach the Xerces.C because
it is so large.

My interest is to see if I could build on your approach to generate an 
interface to Python.  It seems the first step would be to have SWIG 
processing you interface file. Any comments would be most welcome.   

Many thanks in advance,

-- 
Don Rozenberg
707-882-3601
rozen@mcn.org

Re: Problem using swig with XML-Xerces-1.5.2

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Don Rozenberg" <ro...@mcn.org> writes:

> I am unable to build Xerces Perl with SWIG.  I am running on Linux
> Mandrake 8.1.
> 
> I was able to build Xerces.pm and run the tests using the Xerces.C
> in the distribution.  I then erased Xerces.C and tried the build
> sequence using SWIG Version 1.3.10u-20020306-1655.  The generated
> Xerces.C would not compile.

The SWIG 1.3 series has been a rapidly moving target every since
1.3.6. 

In the experimental directory I've released a version of XML::Xerces
which will compile using the latest SWIG, 1.3.11. You can find it at:

  http://xml.apache.org/dist/xerces-p/experimental/

Since it is a release of Xerces-1.6, you will need Xerces-C 1.6 to
compile it.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org