ipe-tools icon indicating copy to clipboard operation
ipe-tools copied to clipboard

pdftoipe compiling problem on Archlinux

Open us91 opened this issue 3 years ago • 1 comments

When installing pdftoipe on Archlinux, using the PKGBUILD file ipe-tools-git from AUR, the following error was encountered:

pdftoipe.cpp: In function ‘int main(int, char**)’:
pdftoipe.cpp:103:53: error: no matching function for call to ‘PDFDoc::PDFDoc(GooString*&, GooString*&, GooString*&)’
  103 |   PDFDoc *doc = new PDFDoc(fileName, ownerPW, userPW);
      |                                                     ^
In file included from pdftoipe.cpp:20:
/usr/include/poppler/PDFDoc.h:371:5: note: candidate: ‘PDFDoc::PDFDoc()’
  371 |     PDFDoc();
      |     ^~~~~~
/usr/include/poppler/PDFDoc.h:371:5: note:   candidate expects 0 arguments, 3 provided
/usr/include/poppler/PDFDoc.h:139:14: note: candidate: ‘PDFDoc::PDFDoc(BaseStream*, const std::optional<GooString>&, const std::optional<GooString>&, void*, const std::function<void()>&)’
  139 |     explicit PDFDoc(BaseStream *strA, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr, const std::function<void()> &xrefReconstructedCallback = {});
      |              ^~~~~~
/usr/include/poppler/PDFDoc.h:139:33: note:   no known conversion for argument 1 from ‘GooString*’ to ‘BaseStream*’
  139 |     explicit PDFDoc(BaseStream *strA, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr, const std::function<void()> &xrefReconstructedCallback = {});
      |                     ~~~~~~~~~~~~^~~~
In file included from pdftoipe.cpp:20:
/usr/include/poppler/PDFDoc.h:132:14: note: candidate: ‘PDFDoc::PDFDoc(std::unique_ptr<GooString>&&, const std::optional<GooString>&, const std::optional<GooString>&, void*, const std::function<void()>&)’
  132 |     explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr,
      |              ^~~~~~
/usr/include/poppler/PDFDoc.h:132:50: note:   no known conversion for argument 1 from ‘GooString*’ to ‘std::unique_ptr<GooString>&&’
  132 |     explicit PDFDoc(std::unique_ptr<GooString> &&fileNameA, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr,
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
make: *** [<builtin>: pdftoipe.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.

  |                                             

us91 avatar Mar 28 '22 03:03 us91

You seem to need this patch:

https://github.com/otfried/ipe-tools/pull/48

otfried avatar Mar 29 '22 11:03 otfried