swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Cannot compile swftools from CVS


From: Bertrand L.
Subject: Re: [Swftools-common] Cannot compile swftools from CVS
Date: Mon, 8 Oct 2007 17:16:32 +0200

Hi Matthias,

I tried your method but it didn't work well.

I downloaded the xpdf 3.02 source and ran your perl script, I got lots
of text coming from successful patching, but I also got the following
suspect messages :

patching file config.h
Hunk #1 FAILED at 53.
1 out of 2 hunks FAILED -- saving rejects to file config.h.rej

and at the end :

Hunk #1 succeeded at 919 (offset -6 lines).
Died at inject-xpdf.pl line 18.

Running again "make" gave me the same errors. Looking at the command
line, I guessed that I needed to make a symbolic link from
/lib/pdf/xpdf-3.02 to /lib/pdf/xpdf

I ran "make" again, this time the GfxOutputDev.cc compiled
successfully but the next file failed with the following errors :

g++ -c -DHAVE_CONFIG_H   -I/home/test/include -I/usr/include/freetype2
-Ilame -fPIC -fPIC -Wparentheses -Wimplicit -Wreturn-type -O
-fomit-frame-pointer  -I ./ -I xpdf InfoOutputDev.cc -o
InfoOutputDev.o
In file included from xpdf/SplashOutputDev.h:21,
                 from InfoOutputDev.cc:2:
xpdf/OutputDev.h:155: error: type specifier omitted for parameter `Object'
xpdf/OutputDev.h:155: error: syntax error before `*' token
xpdf/OutputDev.h:190: error: type specifier omitted for parameter `Object'
xpdf/OutputDev.h:190: error: syntax error before `*' token
xpdf/OutputDev.h:193: error: type specifier omitted for parameter `Object'
xpdf/OutputDev.h:193: error: syntax error before `*' token
xpdf/OutputDev.h:196: error: type specifier omitted for parameter `Object'
xpdf/OutputDev.h:196: error: syntax error before `*' token
xpdf/OutputDev.h:201: error: type specifier omitted for parameter `Object'
xpdf/OutputDev.h:201: error: syntax error before `*' token
xpdf/OutputDev.h:220: error: `Ref' was not declared in this scope
xpdf/OutputDev.h:220: error: syntax error before `)' token
xpdf/OutputDev.h:92: error: `NULL' was not declared in this scope
xpdf/OutputDev.h:93: error: `NULL' was not declared in this scope
make[2]: *** [InfoOutputDev.o] Error 1

Since I saw a xpdf-3.01 folder in lib/pdf, I also tried to use the
3.01 version of xpdf source, I got exactly the same message from the
perl scripts. I made a symbolic link as before and tried make, and
this time I got this :

g++ -c -DHAVE_CONFIG_H   -I/home/test/include -I/usr/include/freetype2
-Ilame -fPIC -fPIC -Wparentheses -Wimplicit -Wreturn-type -O
-fomit-frame-pointer  -I ./ -I xpdf GFXOutputDev.cc -o GFXOutputDev.o
GFXOutputDev.cc: In member function « char*
   GFXOutputDev::writeEmbeddedFontToFile(XRef*, GfxFont*) »:
GFXOutputDev.cc:1707: error: no matching function for call to `FoFiType1C::
   convertToType1(int, NULL, int, void (&)(void*, char*, int), FILE*&)'
xpdf/FoFiType1C.h:162: error: candidates are: void
   FoFiType1C::convertToType1(char**, int, void (*)(void*, char*, int), void*)
make[2]: *** [GFXOutputDev.o] Error 1

Any idea ?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]