public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Compiling fop to native windows
       [not found] <194BC8DA86084946B01DD44BC622D7BA@alpin.local>
@ 2011-05-04  8:48 ` Andrew Haley
  0 siblings, 0 replies; only message in thread
From: Andrew Haley @ 2011-05-04  8:48 UTC (permalink / raw)
  To: java; +Cc: gcc-help

On 04/05/11 09:35, Dominik Psenner wrote:
> Greetings,
> 
> I'm trying to compile the java FOP (formatting objects processor) to run
> natively on windows. One may ask: WHY? The reason is that we have some
> computers on which we are not allowed to install a JRE but we would anyway
> love to use FOP for rendering docbook documents to PDF. Unfortunately I ran
> into some trouble compiling it, which is why I'm searching for help on this
> list.
> 
> This is where it fails:
> 
> --- QUOTE ---
> org/apache/fop/accessibility/AccessibilityPreprocessor.java: In class
> 'org.apache.fop.accessibility.AccessibilityPreprocessor':
> org/apache/fop/accessibility/AccessibilityPreprocessor.java: In constructor
> '(javax.xml.transform.sax.TransformerHandler,javax.xml.transform.Transformer
> ,org.apache.fop.apps.FOUserAgent,org.xml.sax.helpers.DefaultHandler)':
> In file included from
> org/apache/fop/accessibility/AccessibilityEventProducer.java:0:0,
>                  from
> org/apache/fop/accessibility/AccessibilityEventProducer.java:42,
>                  from
> org/apache/fop/accessibility/AccessibilityEventProducer.java:43,
>                  from org/apache/fop/accessibility/Accessibility.java:44,
>                  from org/apache/fop/Version.java:37,
>                  from org/apache/fop/ResourceEventProducer.java:1,
>                  from org/apache/fop/ResourceEventProducer.java:52,
>                  from org/apache/fop/ResourceEventProducer.java:58,
>                  from <built-in>:3:
> org/apache/fop/accessibility/AccessibilityPreprocessor.java:50:0: error:
> cannot find file for class
> org.apache.commons.io.output.ByteArrayOutputStream
> org/apache/fop/accessibility/AccessibilityPreprocessor.java:50: confused by
> earlier errors, bailing out
> make: *** [fop.exe] Error 1
> --- QUOTE ---
> 
> What I've done so far is:
> 
> * use maven to fetch all required dependencies
> * use cygwin for:
>   * make (3.81)
>   * gcj-4 (4.5.0)
> * use make as frontend to gcj
> 
> I pasted the Makefile here: http://pastebin.com/yEJGzEbA
> And the pom.xml here: http://pastebin.com/LRbJMVMd
> 
> What I do not get is, that there's definitely the .class file for
> ByteArrayOutputStream in commons-io-1.3.1.jar. Can someone explain me what I
> am doing wrong here?

I don't understand how this is supposed to work.  You have to compile
all the dependencies and link them together; all you seem to be doing
is putting the dependencies in the CLASSPATH.  I'd first try compiling
every jar with -findirect-dispatch and then linking them all.

Andrew.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-04  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <194BC8DA86084946B01DD44BC622D7BA@alpin.local>
2011-05-04  8:48 ` Compiling fop to native windows Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).