[poppler] compile poppler on windows

Deng Jun proudeng at gmail.com
Thu Jul 15 00:12:25 PDT 2010


Hi,Hib

Thanks for your suggestion!!

I tried the development version of poppler.
but I am  not familiar with Autotools(Seems the Autotools of Mingw
environment also has some problem...)

I typed :
autoconf
automake
./configure

is the above command sequence right?



2010/7/15 Hib Eris <hib at hiberis.nl>

> Hi Jun,
>
> On Thu, Jul 15, 2010 at 4:20 AM, Deng Jun <proudeng at gmail.com> wrote:
> > Hi,
> > thanks a lot.
> > but I am wondering which libs I need to install in order to build poppler
> > for qt4??
> > I actually build some library my self such as libjpeg...
> > and I used the following command sequence to build poppler for qt4.
> > ./configure --enable-poppler-qt4 --disable-libopenjpeg
> > mingw32-make "CFLAGS+= -U__STRICT_ANSI__" "CXXFLAGS+= -U__STRICT_ANSI__"
> > but then I encountered the following error:
> >
> >   CXXLD  libpoppler-qt4.la
> >
> Infoc:/qt/201004/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe:
> > warning: auto-importing has been activated without --enable-auto-import
> > specified on the command line.
> > This should work unless it involves constant data structures referencing
> > symbols from auto-imported DLLs.
> > .libs/poppler-document.o:poppler-document.cc:(.text+0x391): undefined
> > reference to `_imp___ZN7Poppler4PageC1EPNS_12DocumentDataEi'
> > .libs/poppler-document.o:poppler-document.cc:(.text+0x76a): undefined
> > reference to `_imp___ZN7Poppler12FontIteratorC1EiPNS_12DocumentDataE'
> > .libs/poppler-document.o:poppler-document.cc:(.text+0x780): undefined
> > reference to `_imp___ZN7Poppler12FontIterator4nextEv'
> > .libs/poppler-document.o:poppler-document.cc:(.text+0x7c3): undefined
> > reference to `_imp___ZNK7Poppler12FontIterator7hasNextEv'
> > .libs/poppler-document.o:poppler-document.cc:(.text+0x7d4): undefined
> > reference to `_imp___ZN7Poppler12FontIteratorD1Ev'
> > .libs/poppler-document.o:poppler-document.cc:(.text+0x7e7): undefined
> > reference to `_imp___ZN7Poppler12FontIteratorD1Ev'
> > .libs/poppler-document.o:poppler-document.cc:(.text+0x871): undefined
> > reference to `_imp___ZNK7Poppler12FontIterator7hasNextEv'
> >
> > do you have any ideas what is gone wrong?
>
> Did you use poppler from git? Only two days ago some patches got
> committed for compiling the qt bindings with configure/make.
> Especially, this patch
>
> http://cgit.freedesktop.org/poppler/poppler/commit/?id=1bc2f4501ea4e56ca99ae4d94d6cf34cf33c2c7a
>
> I myself do not use the mingw compiler on Windows, but instead use a
> mingw cross compiler on Linux to successfully compile poppler (from
> git) for Windows (including the qt bindings).
>
> Cheers,
>
> Hib
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20100715/eb46e14e/attachment.html>


More information about the poppler mailing list