El dilluns, 18 de gener de 2021, a les 20:25:59 CET, Adam Sampson va escriure: > Albert Astals Cid <aa...@kde.org> writes: > > > Would anyone be able to recompile those apps with that branch and send > > me the link errors? > > I maintain xpopple, which is xpdf's Motif frontend ported to use > poppler. Here are the link errors from building the current Git version > of xpopple against that branch (summary below!): > > g++ -g -O2 -o xpdf/xpdf goo/xpdf_xpdf-gfile-xpdf.o > goo/xpdf_xpdf-parseargs.o xpdf/xpdf-CoreOutputDev.o xpdf/xpdf-PDFCore.o > xpdf/xpdf-XPDFApp.o xpdf/xpdf-XPDFCore.o xpdf/xpdf-XPDFParams.o > xpdf/xpdf-XPDFTree.o xpdf/xpdf-XPDFViewer.o xpdf/xpdf-xpdf.o -lpthread -lXm > -L/home/ats/pkg/pop/lib -lpoppler -L/gar/lib -lXt -lX11 > /gar/bin/ld: xpdf/xpdf-PDFCore.o: in function `PDFCore::xorRectangle(int, > int, int, int, int, SplashPattern*, PDFCoreTile*)': > /home/ats/Code/xpopple/xpdf/PDFCore.cc:1553: undefined reference to > `Splash::Splash(SplashBitmap*, bool, SplashScreenParams*)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1554: undefined reference > to `Splash::setFillPattern(SplashPattern*)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1559: undefined reference > to `SplashPath::SplashPath()' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1560: undefined reference > to `SplashPath::moveTo(double, double)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1561: undefined reference > to `SplashPath::lineTo(double, double)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1562: undefined reference > to `SplashPath::lineTo(double, double)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1563: undefined reference > to `SplashPath::lineTo(double, double)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1564: undefined reference > to `SplashPath::close(bool)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1565: undefined reference > to `Splash::xorFill(SplashPath*, bool)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1566: undefined reference > to `SplashPath::~SplashPath()' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1567: undefined reference > to `Splash::~Splash()' > /gar/bin/ld: xpdf/xpdf-PDFCore.o: in function `PDFCore::setSelection(int, > int, int, int, int)': > /home/ats/Code/xpopple/xpdf/PDFCore.cc:1365: undefined reference to > `SplashSolidColor::SplashSolidColor(unsigned char*)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:1373: undefined reference > to `SplashSolidColor::SplashSolidColor(unsigned char*)' > /gar/bin/ld: xpdf/xpdf-PDFCore.o: in function `PDFCore::update(int, int, int, > double, int, bool, bool, bool)': > /home/ats/Code/xpopple/xpdf/PDFCore.cc:497: undefined reference to > `SplashSolidColor::SplashSolidColor(unsigned char*)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/PDFCore.cc:714: undefined reference > to `SplashSolidColor::SplashSolidColor(unsigned char*)' > /gar/bin/ld: xpdf/xpdf-XPDFCore.o: in function > `XPDFCore::getLinkAbsolutePath(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)': > /home/ats/Code/xpopple/xpdf/XPDFCore.cc:757: undefined reference to > `appendToPath(GooString*, char const*)' > /gar/bin/ld: xpdf/xpdf-XPDFCore.o: in function `XPDFCore::doAction(LinkAction > const*)': > /home/ats/Code/xpopple/xpdf/XPDFCore.cc:683: undefined reference to > `getFileSpecNameForPlatform(Object const*)' > /gar/bin/ld: xpdf/xpdf-XPDFParams.o: in function > `XPDFParams::parseFile(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&, _IO_FILE*)': > /home/ats/Code/xpopple/xpdf/XPDFParams.cc:333: undefined reference to > `getLine(char*, int, _IO_FILE*)' > /gar/bin/ld: /home/ats/Code/xpopple/xpdf/XPDFParams.cc:333: undefined > reference to `getLine(char*, int, _IO_FILE*)' > /gar/bin/ld: xpdf/xpdf-XPDFParams.o: in function `XPDFParams::XPDFParams(char > const*)': > /home/ats/Code/xpopple/xpdf/XPDFParams.cc:174: undefined reference to > `appendToPath(GooString*, char const*)' > collect2: error: ld returned 1 exit status > > In slightly easier-to-read form, that's: > > Splash::Splash(SplashBitmap*, bool, SplashScreenParams*) > Splash::setFillPattern(SplashPattern*) > Splash::xorFill(SplashPath*, bool) > Splash::~Splash() > SplashPath::SplashPath() > SplashPath::close(bool) > SplashPath::lineTo(double, double) > SplashPath::moveTo(double, double) > SplashPath::~SplashPath() > SplashSolidColor::SplashSolidColor(unsigned char*) > appendToPath(GooString*, char const*) > getFileSpecNameForPlatform(Object const*) > getLine(char*, int, _IO_FILE*) > > The last three can be taken into the xpopple source tree if there are no > other external users, as I've already done for some of the other helper > functions poppler no longer provides.
Added a few more exports, please see if that is all you needed or you still need a few more. Cheers, Albert > > Thanks, > > _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler