poppler-0.6.1 and poppler-bindings-0.6.1 fail to install CairoOutputDev.h. When compiling Inkscape svn, which uses poppler for pdf output, if poppler-bindings is installed, compile fails with In file included from extension/internal/pdfinput/pdf-input.cpp:26: extension/internal/pdfinput/pdf-input.h:40:28: error: CairoOutputDev.h: No such file or directory In file included from extension/internal/pdfinput/pdf-input.cpp:26: extension/internal/pdfinput/pdf-input.h:107: error: ISO C++ forbids declaration of 'CairoOutputDev' with no type extension/internal/pdfinput/pdf-input.h:107: error: expected ';' before '*' token extension/internal/pdfinput/pdf-input.cpp: In constructor 'Inkscape::Extension::Internal::PdfImportDialog::PdfImportDialog(PDFDoc*)': extension/internal/pdfinput/pdf-input.cpp:279: error: '_preview_output_dev' was not declared in this scope extension/internal/pdfinput/pdf-input.cpp:279: error: expected type-specifier before 'CairoOutputDev' extension/internal/pdfinput/pdf-input.cpp:279: error: expected `;' before 'CairoOutputDev' extension/internal/pdfinput/pdf-input.cpp: In destructor 'virtual Inkscape::Extension::Internal::PdfImportDialog::~PdfImportDialog()': extension/internal/pdfinput/pdf-input.cpp:301: error: '_preview_output_dev' was not declared in this scope extension/internal/pdfinput/pdf-input.cpp:302: error: type '<type error>' argument given to 'delete', expected pointer extension/internal/pdfinput/pdf-input.cpp: In member function 'void Inkscape::Extension::Internal::PdfImportDialog::_setPreviewPage(int)': extension/internal/pdfinput/pdf-input.cpp:544: error: '_preview_output_dev' was not declared in this scope make[2]: *** [extension/internal/pdfinput/pdf-input.o] Error 1 make[2]: *** Waiting for unfinished jobs.... extension/internal/bitmap/imagemagick.cpp: In member function 'virtual void Inkscape::Extension::Internal::Bitmap::ImageMagick::effect(Inkscape::Extension::Effect*, Inkscape::UI::View::View*)': extension/internal/bitmap/imagemagick.cpp:107: warning: deprecated conversion from string constant to 'char*' ./util/glib-list-iterators.h: In member function 'T* const& Inkscape::Util::GSListConstIterator<T*>::operator*() const [with T = SPItem]': extension/internal/bitmap/imagemagick.cpp:188: instantiated from here ./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules But once you copy the header file into /usr/include/poppler, it compiles without trouble. Reproducible: Always Steps to Reproduce: 1.emerge poppler and poppler-bindings 2.update to latest inkscape svn 3.compile inkscape svn Actual Results: inkscape svn failed to compile Expected Results: inkscape compiles
*** Bug 197033 has been marked as a duplicate of this bug. ***
Poppler doesn't install that header file. There isn't even code in the Makefiles to install it. I wonder how Inkscape is depending on it? They're not even installed in upstream poppler's git repo.
I'm having the same problem. Well, I just checked poppler-0.6.1.tar.gz and CairoOutputDev.h IS there. Also, I found it here: http://webcvs.freedesktop.org/poppler/poppler/poppler/CairoOutputDev.h?view=log&pathrev=MAIN A quick workaround is to copy that file to /usr/include/poppler. I don't know why the file is not copied. I'm using: * app-text/poppler-0.6.1 -cjk jpeg zlib * app-text/poppler-bindings-0.6.1 cairo gtk qt3 qt4 test
This usage of the header file in inkscape is not supported, see: http://thread.gmane.org/gmane.comp.freedesktop.poppler/1130/focus=1143
Fine then. Is an inkscape thing. They're discussing this issue here: http://sourceforge.net/mailarchive/message.php?msg_id=pan.2007.10.16.15.20.35.941231%40yahoo.com So until they use a backend the workaround is to copy the file (at least it works for me on amd64).
I think this is an upstream issue. Thanks for the head up anyway ^^