[poppler] Setup poppler

Albert Astals Cid aacid at kde.org
Thu Apr 30 13:39:07 PDT 2009


A Dijous, 30 d'abril de 2009, Lykurg Nomothet va escriure:
> Hi,
>
> I tried to compile 0.10.6 under windows for Qt4. The "normal" poppler
> library builds well but if I try to build the qt4 interface I get
> following error:
>
> /bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
> -I. -I../.. -I../../poppler -I../.. -I../../poppler -I../../qt
> -Ic:/Qt/2009.02/mingw/include   -I/c/Qt/2009.02/qt/include    -Wall
> -Wno-write-strings -g -O2 -MT poppler-document.lo -MD -MP -MF
> .deps/poppler-document.Tpo -c -o poppler-document.lo
> poppler-document.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../poppler
> -I../.. -I../../poppler -I../../qt -Ic:/Qt/2009.02/mingw/include
> -I/c/Qt/2009.02/qt/include -Wall -Wno-write-strings -g -O2 -MT
> poppler-document.lo -MD -MP -MF .deps/poppler-document.Tpo -c
> poppler-document.cc  -DDLL_EXPORT -DPIC -o .libs/poppler-document.o
> poppler-document.cc: In function `QDateTime Poppler::convertDate(char*)':
> poppler-document.cc:534: warning: 'QDateTime
> Poppler::convertDate(char*)' defined locally after being referenced
> with dllimport linkage
> poppler-document.cc: In constructor
> `Poppler::Document::Document(Poppler::DocumentData*)':
> poppler-document.cc:87: internal compiler error: in
> rest_of_handle_final, at toplev.c:2064
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.mingw.org/bugs.shtml> for instructions.
> make: *** [poppler-document.lo] Error 1
>
> Even if you don't work on windows maybe you can give me a hint how to
> solve the error, since I don't know how to deal with this message:
> "warning: 'QDateTime Poppler::convertDate(char*)' defined locally
> after being referenced with dllimport linkage".

That's probably to do with export thingies, can you check if you are entering 
the upper or the lower part of the first if in poppler-export.h?

Just put something that does not compile in there and watch for the warning. 

Albert

>
> Thanks
>
> P.s.: After succeed building poppler for windows I will upload an HowTo...
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler




More information about the poppler mailing list