[poppler] compile poppler on windows

Hib Eris hib at hiberis.nl
Wed Jul 14 22:30:40 PDT 2010


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


More information about the poppler mailing list