Hi, [1]

Looking for anyone who has experience with compiling SWF Tools, and
who could comment on the following statements of mine.

I have been looking for a way to compile/install the latest version
of  SWF Tools in both Debian and Ubuntu.

My attempts in both fail with errors, however I have found a way in
Debian, by manually changing (I believe correcting) the swftools make
script.

What I would like to know is, "Is the SWF Tools package have a fault
and is creating an incorrect script for Debian installations?"

Here is what I have found.

I ran the following steps and then got the below error message;

./configure >../swfconfigure.log 2>&1
make >../debswfmake.log 2>&1
make install >../debswfinst.log

The "make install" generated the following error message and then
stopped.
rm -f /usr/local/share/swftools/swfs/default_viewer.swf -o -L
/usr/local/share/swftools/swfs/default_viewer.swf
rm: invalid option -- 'o'
Try `rm --help' for more information.
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/adm/swftools/swftools-0.9.2/swfs'
make: *** [install] Error 2

Using the below search line, I located the files swfs/Make and
swfs/Make.in
find . -type f -name "*.*" -print0 | xargs -0 -e grep -nH -e
"default_viewer.swf"

In these files were the lines;
    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L
$(pkgdatadir)/swfs/default_viewer.swf
    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf
$(pkgdatadir)/swfs/default_viewer.swf
    rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L
$(pkgdatadir)/swfs/default_loader.swf
    $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf
$(pkgdatadir)/swfs/default_loader.swf

As this is the first time that I have installed SWF Tools, there
cannot be a file called "$(pkgdatadir)/swfs/default_viewer.swf", that
is the file "/usr/local/share/swftools/swfs/default_viewer.swf", and
maybe this is the only error in the script?

However reading the Debian man pages, I cannot find any "-o -L"
parameters, so is the rest of this line also incorrect, or is there
more happening here than the man pages explain?

If I remove the two lines which will cause the script to stop, and
then run "make install", the script runs without errors and swftools
is correctly installed.

/usr/adm/swftools/swftools-0.9.2# pdf2swf --version
pdf2swf - part of swftools 0.9.2

At this point  I am happy that the installation works well, but I am
not happy in that I believe there is an error in the SWF Tools
installation package, and believe that the SWF Tools team should fix
this.

I also have tested the below line after the default_viewer.swf link
(pointing to simple_viewer.swf) was installed and so existed, and the
rm command still fails as "-o -L" in invalid in Debian (or so I
believe).
rm -f /usr/local/share/swftools/swfs/default_viewer.swf -o -L
/usr/local/share/swftools/swfs/default_viewer.swf



Links:
------
[1] mailto:[email protected]

Reply via email to