Bugzilla – Bug 1254
cups-filters cannot be compiled with poppler 0.31.0
Last modified: 2015-02-18 03:25:45 UTC
getAntialias method has been removed from GlobalParams class, and cups-filters 1.0.62 now fails to compile. filter/pdftoopvp/OPVPOutputDev.cxx: In member function 'void OPVPOutputDev::startDoc(XRef*)': filter/pdftoopvp/OPVPOutputDev.cxx:281:23: error: 'class GlobalParams' has no member named 'getAntialias'
*** Bug 1256 has been marked as a duplicate of this bug. ***
There are more issues later on: filter/pdftoijs.cxx:439:41: error: no matching function for call to ‘SplashOutputDev::SplashOutputDev(SplashColorMode&, int&, GBool&, SplashColor, bool, bool)’ reverseVideo,paperColor,gTrue,gFalse); ^ In file included from filter/pdftoijs.cxx:41:0: /usr/include/poppler/SplashOutputDev.h:171:3: note: candidate: SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, SplashThinLineMode, GBool) SplashOutputDev(SplashColorMode colorModeA, int bitmapRowPadA, ^ /usr/include/poppler/SplashOutputDev.h:171:3: note: no known conversion for argument 6 from ‘bool’ to ‘SplashThinLineMode’ /usr/include/poppler/SplashOutputDev.h:167:7: note: candidate: SplashOutputDev::SplashOutputDev(const SplashOutputDev&) class SplashOutputDev: public OutputDev { ^ /usr/include/poppler/SplashOutputDev.h:167:7: note: candidate expects 1 argument, 6 provided Makefile:3314: recipe for target 'pdftoijs-pdftoijs.o' failed make[1]: *** [pdftoijs-pdftoijs.o] Error 1
Created attachment 476 [details] Build Fix At least this gets it to build. Diff against 1.0.62
Applied the patch (with small correction) as BZR rev. 7332. Thanks, Armin K., for the patch. I have modified the conditionals, instead of #if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR <= 30 I have put #if POPPLER_VERSION_MAJOR == 0 && POPPLER_VERSION_MINOR <= 30 The former would mean "for versions up to 0.30 AND version 1.0 and newer", the latter "for versions up to 0.30" which is meant here.
Please also test whether the filter actually works as intended with Poppler 0.31.0 (and not only builds).