Thanks Chris (2) :)

I changed the line in lib/graphcut.c to

#include "mem.h"

which compiled past the last error, but stopped with a new different one :( 
(+attached file).

ar: creating librfxswf.a
ranlib librfxswf.a
make[1]: *** No rule to make target `pdf/VectorGraphicOutputDev.cc', needed by 
`libgfxpdf.a'.  Stop.
make[1]: Leaving directory `/root/swftools-2010-10-12-2000/lib'
make: *** [all] Error 2

Maybe I should try swftools 0.9.0 or 0.9.1 first?

Regards,
Andreas

 make
making all in m4...
cd m4;make all
make[1]: Entering directory `/root/swftools-2010-10-12-2000/m4'
make[1]: Leaving directory `/root/swftools-2010-10-12-2000/m4'
making all in lib...
cd lib;make all
make[1]: Entering directory `/root/swftools-2010-10-12-2000/lib'
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfaction.c -o modules/swfaction.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfbits.c -o modules/swfbits.o
modules/swfbits.c: In function ‘file_empty_output_buffer’:
modules/swfbits.c:443: warning: ignoring return value of ‘fwrite’, declared 
with attribute warn_unused_result
modules/swfbits.c: In function ‘file_term_destination’:
modules/swfbits.c:456: warning: ignoring return value of ‘fwrite’, declared 
with attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfbutton.c -o modules/swfbutton.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfcgi.c -o modules/swfcgi.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfdraw.c -o modules/swfdraw.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfdump.c -o modules/swfdump.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swffilter.c -o modules/swffilter.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swffont.c -o modules/swffont.o
modules/swffont.c: In function ‘isSWF’:
modules/swffont.c:572: warning: ignoring return value of ‘fread’, declared 
with attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfobject.c -o modules/swfobject.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfrender.c -o modules/swfrender.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfshape.c -o modules/swfshape.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfsound.c -o modules/swfsound.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swftext.c -o modules/swftext.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swftools.c -o modules/swftools.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  modules/swfalignzones.c -o modules/swfalignzones.o
In file included from modules/swfalignzones.c:2:
modules/../graphcut.c: In function ‘posqueue_notempty’:
modules/../graphcut.c:103: warning: cast from pointer to integer of different 
size
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  rfxswf.c -o rfxswf.o
rfxswf.c: In function ‘swf_WriteCGI’:
rfxswf.c:1888: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  drawer.c -o drawer.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  h.263/dct.c -o h.263/dct.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  h.263/h263tables.c -o h.263/h263tables.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  h.263/swfvideo.c -o h.263/swfvideo.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/assembler.c -o action/assembler.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/compile.c -o action/compile.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/lex.swf4.c -o action/lex.swf4.o
lex.swf4.c: In function ‘swf4lex’:
swf4compiler.flex:239: warning: ignoring return value of ‘fwrite’, declared 
with attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/lex.swf5.c -o action/lex.swf5.o
lex.swf5.c: In function ‘swf5lex’:
swf5compiler.flex:303: warning: ignoring return value of ‘fwrite’, declared 
with attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/libming.c -o action/libming.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/swf4compiler.tab.c -o action/swf4compiler.tab.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/swf5compiler.tab.c -o action/swf5compiler.tab.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  action/actioncompiler.c -o action/actioncompiler.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/abc.c -o as3/abc.o
as3/abc.c: In function ‘traits_parse’:
as3/abc.c:469: warning: cast from pointer to integer of different size
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/pool.c -o as3/pool.o
as3/pool.c: In function ‘pool_find_namespace’:
as3/pool.c:968: warning: cast from pointer to integer of different size
as3/pool.c: In function ‘pool_dump’:
as3/pool.c:1234: warning: ignoring return value of ‘fwrite’, declared with 
attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/files.c -o as3/files.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/opcodes.c -o as3/opcodes.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/code.c -o as3/code.o
as3/code.c: In function ‘lookupswitch_print’:
as3/code.c:258: warning: cast from pointer to integer of different size
as3/code.c:261: warning: cast from pointer to integer of different size
as3/code.c: In function ‘code_dump2’:
as3/code.c:993: warning: cast from pointer to integer of different size
as3/code.c:999: warning: format ‘%02x’ expects type ‘unsigned int’, but 
argument 3 has type ‘long long unsigned int’
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/registry.c -o as3/registry.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/builtin.c -o as3/builtin.o
as3/builtin.c:4032: warning: initialization from incompatible pointer type
as3/builtin.c:5469: warning: initialization from incompatible pointer type
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/parser.tab.c -o as3/parser.tab.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/tokenizer.yy.c -o as3/tokenizer.yy.o
tokenizer.yy.c: In function ‘as3_lex’:
tokenizer.lex:706: warning: ignoring return value of ‘fwrite’, declared 
with attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/scripts.c -o as3/scripts.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/compiler.c -o as3/compiler.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/import.c -o as3/import.o
as3/import.c: In function ‘as3_import_file’:
as3/import.c:243: warning: ignoring return value of ‘fread’, declared with 
attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/expr.c -o as3/expr.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/common.c -o as3/common.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/initcode.c -o as3/initcode.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -I 
/usr/include/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O 
-fomit-frame-pointer  as3/assets.c -o as3/assets.o
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  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/parser.tab.o as3/tokenizer.yy.o 
as3/scripts.o as3/compiler.o as3/import.o as3/expr.o as3/common.o 
as3/initcode.o as3/assets.o
ar: creating librfxswf.a
ranlib librfxswf.a
make[1]: *** No rule to make target `pdf/VectorGraphicOutputDev.cc', needed by 
`libgfxpdf.a'.  Stop.
make[1]: Leaving directory `/root/swftools-2010-10-12-2000/lib'
make: *** [all] Error 2

On 05.11.2010, at 11:59, Chris wrote:

>> On Fri, 5 Nov 2010 12:38:29 +0000
>> "Andreas M. Eberharter" <[email protected]> wrote:
> 
>> In file included from modules/swfalignzones.c:2:
>> modules/../graphcut.c:27:20: error: ../mem.h: No such file or directory
> 
> 'mem.h' is in the lib directory.
> 
> Change,
> 
> #include "../mem.h"
> 
> in 'graphcut.c' to give the correct path?  Worth a try.
> 
> Regards,
> 
> 
> 
> 
> Chis(2) ;o)

Reply via email to