Skip to content

Instantly share code, notes, and snippets.

Created October 30, 2012 15:34
Show Gist options
  • Save anonymous/3980979 to your computer and use it in GitHub Desktop.
Save anonymous/3980979 to your computer and use it in GitHub Desktop.
cls ~/Downloads/pdftoipe-20110916-src $ brew install poppler
==> Installing poppler dependency: freetype
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/freetype-2.4.10.mountainlion.bottle.tar.gz
######################################################################## 100,0%
==> Pouring freetype-2.4.10.mountainlion.bottle.tar.gz
/usr/local/Cellar/freetype/2.4.10: 56 files, 2,5M
==> Installing poppler dependency: fontconfig
==> Downloading http://fontconfig.org/release/fontconfig-2.10.1.tar.gz
######################################################################## 100,0%
==> Patching
patching file src/fcarch.h
==> ./configure --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=/usr/local/Cellar/fontconfig/2.10.1
==> make install
/usr/local/Cellar/fontconfig/2.10.1: 437 files, 5,1M, built in 89 seconds
==> Installing poppler
==> Downloading http://poppler.freedesktop.org/poppler-0.20.2.tar.gz
######################################################################## 100,0%
==> ./configure --prefix=/usr/local/Cellar/poppler/0.20.2 --enable-xpdf-headers
==> make install
==> Downloading http://poppler.freedesktop.org/poppler-data-0.4.5.tar.gz
######################################################################## 100,0%
==> make install prefix=/usr/local/Cellar/poppler/0.20.2
/usr/local/Cellar/poppler/0.20.2: 405 files, 20M, built in 2.3 minutes
cls ~/Downloads/pdftoipe-20110916-src $ make
c++ -Wno-write-strings -I/usr/local/Cellar/poppler/0.20.2/include/poppler -c -o xmloutputdev.o xmloutputdev.cpp
xmloutputdev.cpp:33:5: error: no matching function for call to 'error'
error(-1, "Couldn't open output file '%s'", fileName);
^~~~~
/usr/local/Cellar/poppler/0.20.2/include/poppler/Error.h:54:19: note: candidate function not viable: no known conversion from 'int' to 'ErrorCategory' for 1st argument;
extern void CDECL error(ErrorCategory category, int pos, const char *msg, ...);
^
xmloutputdev.cpp:339:31: error: no member named 'getRawStream' in 'DCTStream'; did you mean 'getBaseStream'?
str = ((DCTStream *)str)->getRawStream();
^~~~~~~~~~~~
getBaseStream
/usr/local/Cellar/poppler/0.20.2/include/poppler/Stream.h:338:23: note: 'getBaseStream' declared here
virtual BaseStream *getBaseStream() { return str->getBaseStream(); }
^
2 errors generated.
make: *** [xmloutputdev.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment