Closed ekolve closed 7 years ago
I got an error running the following command - this is on Ubuntu 16.04. I had to install libpoppler-private-dev to get the header files (PDFDoc.h)
make -C pdffigures DEBUG=0 CC='g++-4.9 -std=c++11'
make: Entering directory '/home/erick/label_generator/pdffigures' g++-4.9 -std=c++11 -c -Wall pkg-config --cflags poppler -I/usr/leptonica -g -O3 -c PDFUtils.cpp PDFUtils.cpp: In constructor ‘SplashGraphicsOutputDev::SplashGraphicsOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, GBool, SplashThinLineMode, GBool)’: PDFUtils.cpp:114:42: error: no matching function for call to ‘SplashOutputDev::SplashOutputDev(SplashColorMode&, int&, GBool&, Guchar&, GBool&, GBool&, SplashThinLineMode&, GBool&)’ overprintPreviewA) {} ^ PDFUtils.cpp:114:42: note: candidate is: In file included from PDFUtils.cpp:5:0: /usr/include/poppler/SplashOutputDev.h:171:3: note: SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, SplashThinLineMode, GBool) SplashOutputDev(SplashColorMode colorModeA, int bitmapRowPadA, ^ /usr/include/poppler/SplashOutputDev.h:171:3: note: candidate expects 7 arguments, 8 provided PDFUtils.cpp: In function ‘std::unique_ptr getFullRenderPix(PDFDoc, int, double)’: PDFUtils.cpp:193:55: error: no matching function for call to ‘SplashOutputDev::SplashOutputDev(SplashColorMode, int, bool, SplashColor, bool, bool, SplashThinLineMode, bool)’ splashThinLineDefault, gTrue); ^ PDFUtils.cpp:193:55: note: candidate is: In file included from PDFUtils.cpp:5:0: /usr/include/poppler/SplashOutputDev.h:171:3: note: SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, SplashThinLineMode, GBool) SplashOutputDev(SplashColorMode colorModeA, int bitmapRowPadA, ^ /usr/include/poppler/SplashOutputDev.h:171:3: note: candidate expects 7 arguments, 8 provided Makefile:31: recipe for target 'PDFUtils.o' failed make: *** [PDFUtils.o] Error 1
pkg-config --cflags poppler
Just read that pdffigures has only been tested on 14.04 - closing this issue for now.
I got an error running the following command - this is on Ubuntu 16.04. I had to install libpoppler-private-dev to get the header files (PDFDoc.h)
make -C pdffigures DEBUG=0 CC='g++-4.9 -std=c++11'
make: Entering directory '/home/erick/label_generator/pdffigures' g++-4.9 -std=c++11 -c -Wall getFullRenderPix(PDFDoc , int, double)’:
PDFUtils.cpp:193:55: error: no matching function for call to ‘SplashOutputDev::SplashOutputDev(SplashColorMode, int, bool, SplashColor, bool, bool, SplashThinLineMode, bool)’
splashThinLineDefault, gTrue);
^
PDFUtils.cpp:193:55: note: candidate is:
In file included from PDFUtils.cpp:5:0:
/usr/include/poppler/SplashOutputDev.h:171:3: note: SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, SplashThinLineMode, GBool)
SplashOutputDev(SplashColorMode colorModeA, int bitmapRowPadA,
^
/usr/include/poppler/SplashOutputDev.h:171:3: note: candidate expects 7 arguments, 8 provided
Makefile:31: recipe for target 'PDFUtils.o' failed
make: *** [PDFUtils.o] Error 1
pkg-config --cflags poppler
-I/usr/leptonica -g -O3 -c PDFUtils.cpp PDFUtils.cpp: In constructor ‘SplashGraphicsOutputDev::SplashGraphicsOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, GBool, SplashThinLineMode, GBool)’: PDFUtils.cpp:114:42: error: no matching function for call to ‘SplashOutputDev::SplashOutputDev(SplashColorMode&, int&, GBool&, Guchar&, GBool&, GBool&, SplashThinLineMode&, GBool&)’ overprintPreviewA) {} ^ PDFUtils.cpp:114:42: note: candidate is: In file included from PDFUtils.cpp:5:0: /usr/include/poppler/SplashOutputDev.h:171:3: note: SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, SplashThinLineMode, GBool) SplashOutputDev(SplashColorMode colorModeA, int bitmapRowPadA, ^ /usr/include/poppler/SplashOutputDev.h:171:3: note: candidate expects 7 arguments, 8 provided PDFUtils.cpp: In function ‘std::unique_ptr