* [ptxdist] cups-filters / poppler integration
@ 2015-09-14 9:36 Fischer Christian
0 siblings, 0 replies; only message in thread
From: Fischer Christian @ 2015-09-14 9:36 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 530 bytes --]
Hi everybody,
I try to integrate cups-filters 1.0.76 (newest) in ptxdist-2013.12.0. Cups version 2.1.0 is already running.
At compilation stage I get a strange error.
Cups-filters needs headers from poppler (old xpdf-headers), build of poppler version 0.36.0 looks fine (with --enable-xpdf-headers).
The needed header-files are located at sysroot-target/usr/include/poppler and found by cups-filters.
I attached the errors in build-error_cups-filters.txt file.
Got anybody a tip for me?
Thanks and regards,
Christian
[-- Attachment #1.2: Type: text/html, Size: 2837 bytes --]
[-- Attachment #2: build-error_cups-filters.txt --]
[-- Type: text/plain, Size: 19287 bytes --]
----------------------------
target: cups_filters.compile
----------------------------
make[1]: Entering directory `/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/build-target/cups-filters-1.0.76'
make all-am
make[2]: Entering directory `/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/build-target/cups-filters-1.0.76'
CC libcupsfilters_la-colord.lo
CC libcupsfilters_la-colormanager.lo
CC libcupsfilters_la-check.lo
CC libcupsfilters_la-lut.lo
CC libcupsfilters_la-pack.lo
CC libcupsfilters_la-rgb.lo
CC libcupsfilters_la-srgb.lo
CCLD libfontembed.la
cupsfilters/colormanager.c: In function '_get_colord_profile':
cupsfilters/colormanager.c:247:7: warning: passing argument 2 of 'colord_get_profile_for_device_id' from incompatible pointer type [enabled by default]
icc_profile = colord_get_profile_for_device_id (printer_id, qualifier);
^
In file included from cupsfilters/colormanager.c:30:0:
./cupsfilters/colord.h:40:9: note: expected 'const char **' but argument is of type 'char **'
char *colord_get_profile_for_device_id (const char *device_id,
^
CC parallel-ieee1284.o
CC parallel-parallel.o
CC serial-serial.o
CC implicitclass-implicitclass.o
CXX pdftoopvp-OPRS.o
CXX pdftoopvp-OPVPSplash.o
CXX pdftoopvp-OPVPSplashPath.o
CXX pdftoopvp-OPVPSplashXPath.o
CXX pdftoopvp-OPVPOutputDev.o
CXX pdftoopvp-pdftoopvp.o
CXX pdftopdf-pdftopdf.o
CXX pdftopdf-pdftopdf_jcl.o
In file included from ./filter/pdftoopvp/opvp/opvp_common.h:50:0,
from filter/pdftoopvp/oprs/OPVPWrapper.h:8,
from filter/pdftoopvp/oprs/OPVPSplashPath.h:5,
from filter/pdftoopvp/oprs/OPVPSplashPath.cxx:4:
filter/pdftoopvp/oprs/OPVPSplashPath.cxx: In member function 'SplashError OPVPSplashPath::makePath(OPVPWrapper*)':
./filter/pdftoopvp/opvp/opvp.h:68:45: error: 'floor' was not declared in this scope
#define OPVP_F2FIX(f,fix) (fix=((int)floor(f)<<OPVP_FIX_FRACT_WIDTH)\
^
filter/pdftoopvp/oprs/OPVPSplashPath.cxx:105:2: note: in expansion of macro 'OPVP_F2FIX'
OPVP_F2FIX((pts[i].x),(x));
^
./filter/pdftoopvp/opvp/opvp.h:68:45: error: 'floor' was not declared in this scope
#define OPVP_F2FIX(f,fix) (fix=((int)floor(f)<<OPVP_FIX_FRACT_WIDTH)\
^
filter/pdftoopvp/oprs/OPVPSplashPath.cxx:131:7: note: in expansion of macro 'OPVP_F2FIX'
OPVP_F2FIX((pts[k].x),(points[k-i].x));
^
make[2]: *** [pdftoopvp-OPVPSplashPath.o] Error 1
make[2]: *** Waiting for unfinished jobs....
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx: In member function 'void OPVPSplashXPath::strokeNarrow(OPVPSplash*, OPVPSplashState*)':
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:393:40: error: ambiguous overload for 'operator-' (operand types are 'int' and 'SplashCoord {aka FixedPoint}')
x3 = splashFloor(seg->x0 + (y + 1 - seg->y0) * dxdy);
^
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:393:40: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:393:40: note: operator-(int, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:393:40: note: operator-(int, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:393:40: note: operator-(int, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:401:40: error: ambiguous overload for 'operator-' (operand types are 'int' and 'SplashCoord {aka FixedPoint}')
x3 = splashFloor(seg->x0 + (y + 1 - seg->y0) * dxdy);
^
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:401:40: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:401:40: note: operator-(int, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:401:40: note: operator-(int, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:401:40: note: operator-(int, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:419:33: error: ambiguous overload for 'operator-' (operand types are 'int' and 'SplashCoord {aka FixedPoint}')
x = splashFloor(seg->x0 + (y - seg->y0) * dxdy);
^
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:419:33: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:419:33: note: operator-(int, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:419:33: note: operator-(int, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplashXPath.cxx:419:33: note: operator-(int, int) <built-in>
make[2]: *** [pdftoopvp-OPVPSplashXPath.o] Error 1
In file included from filter/pdftoopvp/OPVPOutputDev.cxx:23:0:
filter/pdftoopvp/OPVPError.h:39:23: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
#define opvpError(pos,...) error(errInternal,pos,__VA_ARGS__)
^
In file included from ./filter/pdftoopvp/opvp/opvp_common.h:50:0,
from filter/pdftoopvp/oprs/OPVPWrapper.h:8,
from filter/pdftoopvp/oprs/OPVPSplashPath.h:5,
from filter/pdftoopvp/oprs/OPVPSplash.h:20,
from filter/pdftoopvp/oprs/OPRS.cxx:41:
filter/pdftoopvp/oprs/OPRS.cxx: In member function 'int OPRS::OPVPStartPage(char*, int)':
./filter/pdftoopvp/opvp/opvp.h:68:45: error: 'floor' was not declared in this scope
#define OPVP_F2FIX(f,fix) (fix=((int)floor(f)<<OPVP_FIX_FRACT_WIDTH)\
^
filter/pdftoopvp/oprs/OPRS.cxx:319:6: note: in expansion of macro 'OPVP_F2FIX'
OPVP_F2FIX(0.0,x);
^
make[2]: *** [pdftoopvp-OPRS.o] Error 1
filter/pdftoopvp/oprs/OPVPSplash.cxx: In member function 'void OPVPSplash::arcToCurve(SplashCoord, SplashCoord, SplashCoord, SplashCoord, SplashCoord, SplashCoord, SplashCoord*, SplashCoord*, SplashCoord*, SplashCoord*)':
filter/pdftoopvp/oprs/OPVPSplash.cxx:853:11: error: ambiguous overload for 'operator-' (operand types are 'int' and 'SplashCoord {aka FixedPoint}')
x1 = ((4-ox)/3);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:853:11: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplash.cxx:853:11: note: operator-(int, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:853:11: note: operator-(int, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:853:11: note: operator-(int, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:11: error: ambiguous overload for 'operator-' (operand types are 'int' and 'SplashCoord {aka FixedPoint}')
y1 = ((1-ox)*(3-ox)/(3*oy));
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:11: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:11: note: operator-(int, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:11: note: operator-(int, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:11: note: operator-(int, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:18: error: ambiguous overload for 'operator-' (operand types are 'int' and 'SplashCoord {aka FixedPoint}')
y1 = ((1-ox)*(3-ox)/(3*oy));
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:18: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:18: note: operator-(int, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:18: note: operator-(int, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:18: note: operator-(int, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:25: error: ambiguous overload for 'operator*' (operand types are 'int' and 'SplashCoord {aka FixedPoint}')
y1 = ((1-ox)*(3-ox)/(3*oy));
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:25: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:25: note: operator*(int, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:25: note: operator*(int, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:854:25: note: operator*(int, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx: In member function 'SplashError OPVPSplash::fillChar(SplashCoord, SplashCoord, int, SplashFont*, Unicode*, double*)':
filter/pdftoopvp/oprs/OPVPSplash.cxx:1180:12: error: ambiguous overload for 'operator<' (operand types are 'double' and 'SplashCoord {aka FixedPoint}')
if (mx < splashAbs(fontMat[1])) {
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1180:12: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplash.cxx:1180:12: note: operator<(double, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:1180:12: note: operator<(double, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:1180:12: note: operator<(double, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:1184:12: error: ambiguous overload for 'operator<' (operand types are 'double' and 'SplashCoord {aka FixedPoint}')
if (my < splashAbs(fontMat[2])) {
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1184:12: note: candidates are:
filter/pdftoopvp/oprs/OPVPSplash.cxx:1184:12: note: operator<(double, float) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:1184:12: note: operator<(double, double) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx:1184:12: note: operator<(double, int) <built-in>
filter/pdftoopvp/oprs/OPVPSplash.cxx: In member function 'SplashError OPVPSplash::fillImageMask(SplashImageMaskSource, void*, int, int, SplashCoord*, GBool)':
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:16: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:24: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:32: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:40: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:48: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:56: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:57: warning: format '%f' expects argument of type 'double', but argument 4 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:57: warning: format '%f' expects argument of type 'double', but argument 5 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:57: warning: format '%f' expects argument of type 'double', but argument 6 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:57: warning: format '%f' expects argument of type 'double', but argument 7 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:57: warning: format '%f' expects argument of type 'double', but argument 8 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1317:57: warning: format '%f' expects argument of type 'double', but argument 9 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx: In member function 'SplashError OPVPSplash::drawImage(SplashImageSource, void*, SplashColorMode, GBool, int, int, SplashCoord*)':
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:25: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
srcMode, w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:33: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
srcMode, w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:41: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
srcMode, w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:49: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
srcMode, w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:57: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
srcMode, w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:65: error: cannot pass objects of non-trivially-copyable type 'SplashCoord {aka class FixedPoint}' through '...'
srcMode, w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:66: warning: format '%f' expects argument of type 'double', but argument 5 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
srcMode, w, h, mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
^
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:66: warning: format '%f' expects argument of type 'double', but argument 6 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:66: warning: format '%f' expects argument of type 'double', but argument 7 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:66: warning: format '%f' expects argument of type 'double', but argument 8 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:66: warning: format '%f' expects argument of type 'double', but argument 9 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
filter/pdftoopvp/oprs/OPVPSplash.cxx:1811:66: warning: format '%f' expects argument of type 'double', but argument 10 has type 'SplashCoord {aka FixedPoint}' [-Wformat=]
make[2]: *** [pdftoopvp-OPVPSplash.o] Error 1
In file included from filter/pdftoopvp/pdftoopvp.cxx:31:0:
filter/pdftoopvp/OPVPError.h:39:23: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
#define opvpError(pos,...) error(errInternal,pos,__VA_ARGS__)
^
filter/pdftoopvp/OPVPOutputDev.cxx: In member function 'void OPVPOutputDev::doUpdateFont(GfxState*)':
filter/pdftoopvp/OPVPOutputDev.cxx:757:66: error: no matching function for call to 'SplashFontEngine::getFont(SplashFontFile*&, double [4], SplashCoord*)'
font = fontEngine->getFont(fontFile, fontMat, oprs->getMatrix());
^
filter/pdftoopvp/OPVPOutputDev.cxx:757:66: note: candidate is:
In file included from filter/pdftoopvp/OPVPOutputDev.cxx:38:0:
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/splash/SplashFontEngine.h:91:15: note: SplashFont* SplashFontEngine::getFont(SplashFontFile*, SplashCoord*, SplashCoord*)
SplashFont *getFont(SplashFontFile *fontFile,
^
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/splash/SplashFontEngine.h:91:15: note: no known conversion for argument 2 from 'double [4]' to 'SplashCoord* {aka FixedPoint*}'
filter/pdftoopvp/OPVPOutputDev.cxx:791:68: error: no matching function for call to 'SplashFontEngine::getFont(SplashFontFile*&, double [4], SplashCoord*)'
font = fontEngine->getFont(fontFile, fontMat, oprs->getMatrix());
^
filter/pdftoopvp/OPVPOutputDev.cxx:791:68: note: candidate is:
In file included from filter/pdftoopvp/OPVPOutputDev.cxx:38:0:
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/splash/SplashFontEngine.h:91:15: note: SplashFont* SplashFontEngine::getFont(SplashFontFile*, SplashCoord*, SplashCoord*)
SplashFont *getFont(SplashFontFile *fontFile,
^
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/splash/SplashFontEngine.h:91:15: note: no known conversion for argument 2 from 'double [4]' to 'SplashCoord* {aka FixedPoint*}'
In file included from /home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/PDFDoc.h:47:0,
from filter/pdftoopvp/pdftoopvp.cxx:24:
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/Catalog.h:139:36: warning: comma at end of enumerator list [-Wpedantic]
markInfoSuspects = 1 << 3,
^
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/Catalog.h:217:30: warning: comma at end of enumerator list [-Wpedantic]
actionPrintDocumentFinish, ///< Performed after printing the document
^
In file included from /home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/PDFDoc.h:48:0,
from filter/pdftoopvp/pdftoopvp.cxx:24:
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/Page.h:218:20: warning: comma at end of enumerator list [-Wpedantic]
actionClosePage, ///< Performed when closing the page
^
In file included from /home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/PDFDoc.h:49:0,
from filter/pdftoopvp/pdftoopvp.cxx:24:
/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/sysroot-target/usr/include/poppler/Annot.h:552:25: warning: comma at end of enumerator list [-Wpedantic]
actionCalculateField, ///< Performed when the field needs to be recalculated
^
make[2]: *** [pdftoopvp-OPVPOutputDev.o] Error 1
make[2]: Leaving directory `/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/build-target/cups-filters-1.0.76'
make[1]: Leaving directory `/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/build-target/cups-filters-1.0.76'
make[1]: *** [all] Error 2
make: *** [/home/tq/projekte/TQC-ARM-BSP.0102/platform-ptd/state/cups_filters.compile] Error 2
[-- Attachment #3: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-14 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14 9:36 [ptxdist] cups-filters / poppler integration Fischer Christian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox