[poppler] Win32 poppler-qt5

Albert Astals Cid aacid at kde.org
Mon Apr 28 17:06:15 PDT 2014


El Dimarts, 29 d'abril de 2014, a les 02:09:11, Nikita Putilin va escriure:
> I have tryed poppler-qt5 0.26 builded from sources and prebuild 0.24.5 but
> both of them show the same error. I'm on win8.1 with qt5.2.1 and bundled
> mingw32. I don't have any ideas why it throws them.
> 
> 
> 02:03:19: Starting: "E:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe"
> 
> E:/Qt/Qt5.2.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
> 
> mingw32-make[1]: Entering directory
> 'E:/Dev/Git/build-LabStend-Desktop_Qt_5_2_1_MinGW_32bit-Release'
> 
> g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\LabStend.exe
> release/main.o release/mainwindow.o release/qcpdocumentobject.o
> release/qcustomplot.o release/qrc_res.o release/moc_mainwindow.o
> release/moc_qcpdocumentobject.o release/moc_qcustomplot.o -lglu32
> -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmain
> -LE:\Qt\Qt5.2.1\5.2.1\mingw48_32\lib -lQt5PrintSupport -lQt5Widgets
> -lQt5Gui -lQt5Core

I don't see you linking to poppler here.

Cheers,
  Albert

> 
> release/mainwindow.o:mainwindow.cpp:(.text+0x523): undefined reference to
> `_imp___ZN7Poppler8Document12loadFromDataERK10QByteArrayS3_S3_'
> 
> release/mainwindow.o:mainwindow.cpp:(.text+0x58a): undefined reference to
> `_imp___ZNK7Poppler8Document4pageEi'
> 
> release/mainwindow.o:mainwindow.cpp:(.text+0x5dc): undefined reference to
> `_imp___ZNK7Poppler4Page13renderToImageEddiiiiNS0_8RotationE'
> 
> release/mainwindow.o:mainwindow.cpp:(.text+0x634): undefined reference to
> `_imp___ZN7Poppler4PageD1Ev'
> 
> 
> I added to .pro:
> 
> INCLUDEPATH  += e:\Dev\Git\poppler\poppler\qt5\src\
> 
> LIBS         += -Le:\Dev\Git\poppler\poppler\qt5\src\ -lpoppler-qt5
> 
> And to .h:
> 
> #include <poppler-qt5.h>
> 
> 
> I build poppler with simple:
> 
> cmake  -C "e:\Dev\Git\poppler\init.txt" -G "MinGW Makefiles"
> e:\Dev\Git\poppler\poppler -Wno-dev
> 
> I understand that it's something with linking but no results for several
> weeks.
> 
> Thx.



More information about the poppler mailing list