[poppler] error during compilation of cvs repository with MinGW
Vincent Torri
vtorri at univ-evry.fr
Tue Jul 31 21:40:55 PDT 2007
On Tue, 31 Jul 2007, Jeff Muizelaar wrote:
>
> I fixed some of this in CVS. Does it work for you now?
Yes, it works.
Nevertheless, there are 2 problems:
1) EnumFontsA is needed in lipoppler. Hence it must be linked against
libgdi32.a
2) no shared lib is created. For that -no-undefined must be passed to
libpoppler_la_LDFLAGS.
There is a patch attached. I don't know if it follows your naming
conventions, but it is easy to modify.
i've tested pdftohtml. It seems to work.
I have not tested on cygwin, so my patch is only for MinGW. But I think
that linking against libgdi32.a is also needed with that environment. I
don't know if -no-undefined is needed (with cygwin).
thank you
Vincent Torri
-------------- next part --------------
? poppler.patch
Index: configure.ac
===================================================================
RCS file: /cvs/poppler/poppler/configure.ac,v
retrieving revision 1.76
diff -u -r1.76 configure.ac
--- configure.ac 30 Jul 2007 19:07:45 -0000 1.76
+++ configure.ac 1 Aug 2007 04:22:26 -0000
@@ -22,6 +22,19 @@
AC_DEFINE([MULTITHREADED], [1], [Enable multithreading support.])
AC_DEFINE([TEXTOUT_WORD_LIST], [1], [Enable word list support.])
+dnl Check for OS specific flags
+win32_libs=""
+create_shared_lib=""
+case "$host_os" in
+ mingw|mingw32)
+ win32_libs="-lgdi32"
+ create_shared_lib="-no-undefined"
+ ;;
+esac
+
+AC_SUBST(win32_libs)
+AC_SUBST(create_shared_lib)
+
dnl Install xpdf headers
AC_ARG_ENABLE(xpdf-headers,
AC_HELP_STRING([--enable-xpdf-headers],
Index: poppler/Makefile.am
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Makefile.am,v
retrieving revision 1.33
diff -u -r1.33 Makefile.am
--- poppler/Makefile.am 30 Apr 2007 22:34:21 -0000 1.33
+++ poppler/Makefile.am 1 Aug 2007 04:22:26 -0000
@@ -110,9 +110,10 @@
$(zlib_libs) \
$(abiword_libs) \
$(FREETYPE_LIBS) \
- $(FONTCONFIG_LIBS)
+ $(FONTCONFIG_LIBS) \
+ $(win32_libs)
-libpoppler_la_LDFLAGS = -version-info 1:0:0
+libpoppler_la_LDFLAGS = -version-info 1:0:0 @create_shared_lib@
if ENABLE_XPDF_HEADERS
More information about the poppler
mailing list