Hello,
in case somebody is interested: I took a look at the API changes in
poppler-0.62.0. With the patch below LibreOfiice builds with poppler 62:
---
libreoffice-5.4.4.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx-orig
2018-01-29 16:20:24.441638555 +0100
+++ libreoffice-5.4.4.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
2018-01-29 16:21:32.339048511 +0100
@@ -35,7 +35,9 @@
// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1
// FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) &&
!POPPLER_CHECK_VERSION(0, 21, 1)
// because the internal poppler does not provide poppler-version.h and
the macro always returns 0
-#if POPPLER_CHECK_VERSION(0, 21, 1)
+#if POPPLER_CHECK_VERSION(0, 62, 0)
+#include "UnicodeMapFuncs.h"
+#elif POPPLER_CHECK_VERSION(0, 21, 1)
#include "UTF8.h"
#elif POPPLER_CHECK_VERSION(0, 21, 0)
#include "UTF.h"
@@ -918,7 +920,11 @@
);
// silence spurious warning
+#if POPPLER_CHECK_VERSION(0, 62, 0)
+ (void)&mapUTF16;
+#else
(void)&mapUCS2;
+#endif
char buf[9];
for( int i=0; i<uLen; ++i )
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page