On 22 Feb 2002, (Jason E. Stewart) wrote:
> "John Utz" <[EMAIL PROTECTED]> writes:
>
> > i added the prints for debugging because i am too lame to use the
> > debugger:
> >
> > my $path;
> > ($file,$path) = fileparse($file);
> >
> > print "PATH:$path\n";
> >
> > $path =~ s|^.*/include/||;
> >
> > print "PATH:$path\n";
> >
> >
> > bash-2.04$ make
> > ./preSwig.pl --directory ./Xerces_headers
> > /usr/local/include/xerces/framework/StdInInputSource.hpp
> > PATH:/usr/local/include/xerces/framework/
> > PATH:xerces/framework/
> > Couldn't open ./Xerces_headers/xerces/framework//StdInInputSource.hpp for
> > writing at ./preSwig.pl line 44.
> >
> >
> > needs another s// step to get rid of the last slash methinks...
>
> Actually the // isn't the problem. The problem is the 'xerces' in the
> path.
:-)
yah, as soon as i did the prints i figured that out.
> You're inadvertantly using Xerces-C from CVS which has the new
> directory structure, i.e there is now a xerces/ directory before the
> src/ directory. That is for Xerces-C-1.7 which I haven't *even* begun
> to look at yet. You'll have to use the 1.6 source tarball for now
> unless you want to patch preSWIG.pl up to use the new directory
> hierarchy on your own.
thats what i am doing. but i am not using the cvs xerces-c, it's just that
i put the xerces includes in /usr/include/xerces by hand.
now i have a new error that i think relates to your confusion about me
being able to get a swig from CPAN.
bash-2.04$ make
swig -DVERSION="1.6.0_0" -I. -IHandler -I/usr/local/include/xerces
-package XML::Xerces -perl5 -c++ -shadow -o Xerces.C Xerces.i
/bin/sh: swig: command not found
make: *** [Xerces.C] Error 127
so, now i am gonna go get the 'right' swig dist and take a peek and figure
out what happens.
> jas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]