On 05/25/2012 05:13 AM, George Kirkham wrote:
Chris,
I appreciate you assistance. I cannot email you the Ubuntu files as
yet, but I intend to do so. However when I tested this in Debian, I
also had a problem, which I believe is because of incorrectly formed
"rm" command lines, but it might be that being the first time I have
installed SWF Tools, that the files it wants to delete do not yet
exist, and that the rm lines are there for re-installation or
installation of a new version ???
Please read and if you have more knowledge than me, please comment,
correct my misunderstandings.
I have attached files from a Debian installation which has errors. I
had thought that I had been successful in building a Debian package
but maybe I was wrong.
The three files are from the three steps
./configure (debswfconfigure.log)
make (debswfmake.log)
make install (debswfinst.log)
/usr/bin/install -c -m 644 ./simple_viewer.swf
/usr/local/share/swftools/swfs/simple_viewer.swf
/usr/bin/install -c -m 644 ./keyboard_viewer.swf
/usr/local/share/swftools/swfs/keyboard_viewer.swf
/usr/bin/install -c -m 644 ./PreLoaderTemplate.swf
/usr/local/share/swftools/swfs/PreLoaderTemplate.swf
/usr/bin/install -c -m 644 ./tessel_loader.swf
/usr/local/share/swftools/swfs/tessel_loader.swf
/usr/bin/install -c -m 644 ./swft_loader.swf
/usr/local/share/swftools/swfs/swft_loader.swf
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
As for the above error message, the file
"/usr/local/share/swftools/swfs/simple_viewer.swf" does exist but the
file "/usr/local/share/swftools/swfs/default_viewer.swf" does not
exist, and I am guessing that the script is trying to remove the same
file but is confused between simple_viewer.swf and default_viewer.swf ?
install:
$(mkinstalldirs) $(pkgdatadir)
$(mkinstalldirs) $(pkgdatadir)/swfs
$(INSTALL_DATA) ./simple_viewer.swf
$(pkgdatadir)/swfs/simple_viewer.swf
$(INSTALL_DATA) ./keyboard_viewer.swf
$(pkgdatadir)/swfs/keyboard_viewer.swf
$(INSTALL_DATA) ./PreLoaderTemplate.swf
$(pkgdatadir)/swfs/PreLoaderTemplate.swf
$(INSTALL_DATA) ./tessel_loader.swf
$(pkgdatadir)/swfs/tessel_loader.swf
$(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf
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
uninstall:
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/keyboard_viewer.swf
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/PreLoaderTemplate.swf
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/tessel_loader.swf
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/swft_loader.swf
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_loader.swf
I don't understand the syntax of this line;
rm -f /usr/local/share/swfs/default_viewer.swf -o -L
/usr/local/share/swfs/default_viewer.swf
Was the line created wrongly, or was it created for a different
Operating system, because according to my reading of the Debian man
pages, this is wrong syntax, there is no -o and no -L parameters?
I deleted the two "rm" lines which have what I believe is the
incorrect syntax, and then ran "make install", which then completed
successfully and to test I then ran;
root@deb6:/usr/adm/swftools/swftools-0.9.2# pdf2swf --version
pdf2swf - part of swftools 0.9.2
*George Kirkham *
*IT Manager *
*Co-operative Research Centre for Greenhouse Gas Technologies (CO2CRC) *
Ground Floor, NFF House, 14-16 Brisbane Avenue
Barton ACT 2600
GPO Box 463,
Canberra, ACT 2601
P: +61 (0)2 6120 1610 M:No Mobile F:+61 (0)2 6273 7181 E:
[email protected] W:www.co2crc.com.au
At Friday, 25/05/2012 on 7:41 pm Chris Ohmstede wrote:
On 05/24/2012 08:24 PM, George Kirkham wrote:
Hi, is this the correct location to post question to?
I would like to compile and install SWF Tools *swftools-0.9.2.exe
<http://www.swftools.org/swftools-0.9.2.exe>* in Ubuntu 12.04
however when I follow the steps in the
http://wiki.swftools.org/wiki/Installation the installation has
many warnings and errors. I have found that installing to Debian
is not an issue but there seems to be differences in Ubuntu that
causes issues. I am working with Ubuntu server 32 bit and 64 bit.
If I run "make distclean", and then run through the installation
process again, then the ""make" succeeds and I can do a "make
install", but I am not confident in the result due to the large
number of warnings.
The error message "Hunk #22 FAILED at 703." Is a concern, but I
do not know what this indicates.
Does anyone know how to compile SWFTools under Ubuntu ? and if so
could you please let me know the steps the work without major
errors or warnings.
*How to compile/link swftools on Unix/Linux/BSD? *
Download swftools-0.x.x.tar.gz. Then type, on the command-line:
tar -zvxf swftools-0.x.x.tar
cd swftools-0.x.x
./configure
make
make install
*Warning messages *
config.status: creating lib/action/Makefile
config.status: creating src/Makefile
config.status: creating lib/pdf/Makefile
config.status: creating swfs/Makefile
config.status: creating lib/lame/Makefile
config.status: creating lib/readers/Makefile
config.status: creating config.h
root@chat:/home/itsupport/om/swftools# make>../swftoolsmake.log
modules/swffont.c: In function âisSWFâ:
modules/swffont.c:572:10: warning: ignoring return value of
âfreadâ, declared with attribute warn_unused_result [-Wunused-result]
rfxswf.c: In function âswf_WriteCGIâ:
rfxswf.c:1888:8: warning: ignoring return value of âwriteâ,
declared with attribute warn_unused_result [-Wunused-result]
lame/VbrTag.c: In function âPutVbrTagâ:
lame/VbrTag.c:803:14: warning: ignoring return value of âfreadâ,
declared with attribute warn_unused_result [-Wunused-result]
lame/VbrTag.c:822:7: warning: ignoring return value of âfreadâ,
declared with attribute warn_unused_result [-Wunused-result]
as3/abc.c: In function âtraits_parseâ:
as3/abc.c:469:6: warning: format â%pâ expects argument of type
âvoid *â, but argument 4 has type âintâ [-Wformat]
as3/pool.c: In function âpool_find_namespaceâ:
as3/pool.c:969:9: warning: format â%pâ expects argument of type
âvoid *â, but argument 4 has type âintâ [-Wformat]
as3/builtin.c:4032:1: warning: initialisation from incompatible
pointer type [enabled by default]
as3/builtin.c:4032:1: warning: (near initialisation for
âflash_utils_flash_proxy_constant.<anonymous>.sâ) [enabled by
default]
as3/builtin.c:5469:1: warning: initialisation from incompatible
pointer type [enabled by default]
as3/builtin.c:5469:1: warning: (near initialisation for
â_AS3_constant.<anonymous>.sâ) [enabled by default]
as3/import.c: In function âas3_import_fileâ:
as3/import.c:243:10: warning: ignoring return value of âfreadâ,
declared with attribute warn_unused_result [-Wunused-result]
ar: creating librfxswf.a
cc1plus: warning: command line option â-Wimplicitâ is valid for
C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option â-Wimplicitâ is valid for
C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option â-Wimplicitâ is valid for
C/ObjC but not for C++ [enabled by default
.
.
.
cc1plus: warning: command line option â-Wimplicitâ is valid for
C/ObjC but not for C++ [enabled by default]
ar: creating ../libgfxpdf.a
png.c: In function âpng_read_headerâ:
png.c:102:10: warning: ignoring return value of âfreadâ, declared
with attribute warn_unused_result [-Wunused-result]
ar: creating libbase.a
ar: creating libgfx.a
ar: creating libgfxswf.a
gocr/database.c: In function âocr_dbâ:
gocr/database.c:401:10: warning: ignoring return value of
âfgetsâ, declared with attribute warn_unused_result [-Wunused-result]
ar: creating libocr.a
png2swf.c: In function âpng_read_headerâ:
png2swf.c:166:10: warning: ignoring return value of âfreadâ,
declared with attribute warn_unused_result [-Wunused-result]
png2swf.c: In function âpng_get_dwordâ:
png2swf.c:146:10: warning: ignoring return value of âfreadâ,
declared with attribute warn_unused_result [-Wunused-result]
swfdump.c: In function âmainâ:
swfdump.c:1151:9: warning: ignoring return value of âreadâ,
declared with attribute warn_unused_result [-Wunused-result]
font2swf.c: In function âmainâ:
font2swf.c:118:11: warning: ignoring return value of âgetcwdâ,
declared with attribute warn_unused_result [-Wunused-result]
swfbytes.c: In function âswf_IsSWFâ:
swfbytes.c:338:9: warning: ignoring return value of âreadâ,
declared with attribute warn_unused_result [-Wunused-result]
cc1plus: warning: command line option â-Wimplicitâ is valid for
C/ObjC but not for C++ [enabled by default]
rm -f librfxswf.a
ar r librfxswf.a modules/swfaction.o modules/swfbits.o
modules/swfbutton.o modules/swfcgi.o modules/swfdraw.o
modules/swfdump.o modules/swffilter.o modules/swffont.o
modules/swfobject.o modules/swfrender.o modules/swfshape.o
modules/swfsound.o modules/swftext.o modules/swftools.o
modules/swfalignzones.o rfxswf.o drawer.o lame/psymodel.o
lame/fft.o lame/newmdct.o lame/quantize.o lame/takehiro.o
lame/reservoir.o lame/quantize_pvt.o lame/vbrquantize.o
lame/encoder.o lame/id3tag.o lame/version.o lame/tables.o
lame/util.o lame/bitstream.o lame/set_get.o lame/VbrTag.o
lame/lame.o h.263/dct.o h.263/h263tables.o h.263/swfvideo.o
action/assembler.o action/compile.o action/lex.swf4.o
action/lex.swf5.o action/libming.o action/swf4compiler.tab.o
action/swf5compiler.tab.o action/actioncompiler.o as3/abc.o
as3/pool.o as3/files.o as3/opcodes.o as3/code.o as3/registry.o
as3/builtin.o as3/tokenizer.yy.o as3/parser.tab.o as3/scripts.o
as3/compiler.o as3/import.o as3/expr.o as3/parser_help.o
as3/state.o as3/common.o as3/initcode.o as3/assets.o
ar: creating librfxswf.a
ranlib librfxswf.a
cd pdf;make libgfxpdf
make[2]: Entering directory `/home/user/om/swftools/lib/pdf'
Extracting xpdf-3.02.tar.gz
Applying security patches...
find . \( -name "*.cc" -or -name "*.h" -or -name "*.c" \) -exec
cp {} {}.orig \;
Hunk #22 FAILED at 703.
Hunk #23 FAILED at 719.
I have also tried
LDFLAGS="-L/usr/lib/i386-linux-gnu"
CPPFLAGS="-I/usr/local/include" CXXLIBS="-lstdc++" ./configure
But the results are the same.
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
existing subscription, please kindly point your favourite web browser
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>
Hi George
Can you show the output of ./configure? It's been a while since I
needed to do an Ubuntu build but I might be able to pick out your
missing packages if any.
Chris
root@deb6:/usr/adm/swftools/swftools-0.9.2# find . -type f -name
"*.*" -print0 | xargs -0 -e grep -nH -e "default_viewer.swf"
./swfs/Makefile.in:44: rm -f
$(pkgdatadir)/swfs/default_viewer.swf -o -L
$(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:45: $(LN_S)
$(pkgdatadir)/swfs/simple_viewer.swf
$(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:55: $(UNINSTALL_DATA)
$(pkgdatadir)/swfs/default_viewer.swf
Binary file ./src/pdf2swf.o matches
./src/pdf2swf.c:402: sprintf(buf, "%s/default_viewer.swf", SWFDIR);
./src/pdf2swf.1:57: The viewer swf to be used is determined by
a symlink named "default_viewer.swf" in
Hi George
You are correct with the rm commands. This was found and discussed in
an email to this list titled:
"Can't compile swftools 0.9.2 on RHEL 5.8 (x86_64)"
sent on May 1, 2012. It uses the same solution as yours.
I found a few packages that you are missing. I'm not sure how important
they are but install these:
libfontconfig1-dev
libfftw3-dev
libzzip-dev
Hope it works out
Chris
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
existing subscription, please kindly point your favourite web browser
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>