ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Problem building guide

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Wed, 04 Aug 2004 18:54:31 +0200
Joerg Mayer wrote:

Ulf,

I've just spent half an hour trying to build the guide on a suse 9.1
Well, you're happy! I needed half a month to build the guide the first time :-(

The makefile is still far from being perfect, I know. It still needs some more fine tuning.

First I needed to change the path to docbook-xsl, unfortunately there
is no comment in the catalog file that the Makefile needs to be changed
too.
You might first read Readme.txt which will tell you to use appropriate settings in both files.

To quote it:
"The current Makefile is running under Win32 in the cygwin environment, so it uses GNU make and such. It should be pretty easy to use it in UNIX environments too.
Using Microsoft make (nmake) is not supported."

... but it doesn't seem to be pretty easy :-(

Also, the fop command is just fop on suse, just as it should be.
well, if fop is in your path, that should be working pretty well. As it's not in mine (and fop is not installable directly through cygwin),
I've choosen to hard code the path where to find it on my system.

Is there a reason why you hard coded two different shell scripts into
Makefile?
Sorry, don't get the point. Which shell scripts do you mean?

And after a) finding the correct path for docbook-xsl and
b) changing catalog.xml and Makefile to use that path and
...as mentioned in the Readme.txt...

c) installing
fop and
...as mentioned in the Readme.txt...

d) fixing Makefile to use fop
...as mentioned in the Readme.txt...

I'm now presented with the
following error:

jmayer@egg:~/work/ethereal/trunk/docbook> make
--- VALIDATING XML ---
"xmllint" --valid --noout user-guide.xml
cp "/opt/kde3/share/apps/ksgmltools2/docbook/xsl"/images/note.png ./graphics
cp "/opt/kde3/share/apps/ksgmltools2/docbook/xsl"/images/tip.png ./graphics
cp "/opt/kde3/share/apps/ksgmltools2/docbook/xsl"/images/warning.png ./graphics
--- PDF A4 PAPER ---
"xsltproc" --stringparam paper.type A4 --nonet custom_layer_pdf.xsl user-guide.xml > user-guide.fo
Making portrait pages on A4 paper (210mmx297mm)
"fop" user-guide.fo user-guide.pdf
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop
make: *** [eug_pdf_a4] Error 1

Any idea how to get over this?
you might first try to create the html versions using:

make eug_html_chunked

to see if that part works ok, as it don't need fop.


Didn't saw that fop problem before, as I'm using fop.bat which looks quite different compared to fop.sh.

The fo intermediate file seemed to be generated, but when trying to convert it to pdf, one (or any?) of the java classes could not be loaded.

Maybe something to do with the CLASSPATH or such, but I'm unsure.

Regards, ULFL