You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Robert Kylberg <bo...@sbcglobal.net> on 2003/03/14 02:53:17 UTC

Build problems... please help/advise...

Hi,

I'm new to FOP, just joined the mailing list and I'm not sure what  
exactly is going on so I'd *really* appreciate it if someone could  
explain how to build FOP from the latest src (if it is even possible).  
I've been unable to build FOP from the src archive as of 3/11. A couple  
of the error messages I get are:

[javac]  
/Users/bkylberg/Projects/xml-fop/src/java/org/apache/fop/image/ 
analyser/SVGReader.java:204: Method createSVGDocument(java.lang.String,  
java.io.InputStream) not found in class  
org.apache.batik.dom.svg.SAXSVGDocumentFactory [javac]                  
SVGDocument doc = (SVGDocument) factory.createSVGDocument(uri, fis);

[javac]  
/Users/bkylberg/Projects/xml-fop/src/java/org/apache/fop/render/ps/ 
PSTextPainter.java:93: class org.apache.fop.render.ps.PSTextPainter  
must be declared abstract. It does not define java.awt.geom.Rectangle2D  
getBounds(org.apache.batik.gvt.TextNode) from interface  
org.apache.batik.gvt.TextPainter.

and so on until the build fails...

The first error can be corrected by calling createDocument instead of  
createSVGDocument. createSVGDocument is an undefined API on  
SAXSVGDocumentFactory so I'm not sure how anyone has been able to  
compile this (ref:  
http://xml.apache.org/batik/javadoc/org/apache/batik/dom/svg/ 
SAXSVGDocumentFactory.html ).

The second error is due to the fact that PSTextPainter claims to  
implement TextPainter (ref:  
http://xml.apache.org/batik/javadoc/org/apache/batik/gvt/ 
TextPainter.html ) but is in fact missing API implementations, among  
which getBounds is one. In fact I believe the implementation of  
PSTextPainter.getOutline(TextNode node) is altogether wrong insofar as  
PROXY_PAINTER isa StrokingTextPainter whose getOutline method takes a  
TextNode *and* a boolean (ref:  
http://xml.apache.org/batik/javadoc/org/apache/batik/gvt/renderer/ 
StrokingTextPainter.html ).

According to the mailing list archives PSTextPainter was recently  
submitted and added to the repository (ref:  
http://marc.theaimsgroup.com/?l=fop-dev&m=104737262930539&w=2 and  
http://marc.theaimsgroup.com/?l=fop-dev&m=104735385419249&w=2 ).

Perhaps everyone is using a different version of Java than I am ;-) but  
if not, then I'm wondering how anyone is able to build FOP given these  
defects? Am I the only one whose tried to build FOP from scratch in the  
past 2 days?

Any advice would be greatly appreciated.

-- Bob


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