frescobaldi / python-poppler-qt5

Python binding to libpoppler-qt5
Other
42 stars 32 forks source link

Add support for building with SIP v5 #41

Closed mitya57 closed 3 years ago

mitya57 commented 4 years ago

I did not delete setup.py and setup.cfg files, because they can be still used to build with SIP v4. However installations via pip should now use the new SIP v5 build system (and work fine).

Fixes #38, #34.

marlemion commented 3 years ago

Thanks.

sip-build -V
6.0.3
sip-build --verbose
Querying qmake about your Qt installation...
C:\Qt\Qt5.12.10\5.15.2\mingw81_64\bin\qmake.exe -query
These bindings will be built: Poppler-Qt5.
Generating the Poppler-Qt5 bindings...
Generating the .pro file for the popplerqt5 module...
Generating the top-level .pro file...
Generating the Makefiles...
C:\Qt\Qt5.12.10\5.15.2\mingw81_64\bin\qmake.exe -recursive python-poppler-qt5.pro
Cannot find file: python-poppler-qt5.pro.

Indeed, there is no such file in the root level directory. However, a directory 'build' has been created, which contains:

28.04.2021  16:24    <DIR>          .
28.04.2021  16:24    <DIR>          ..
28.04.2021  16:23             1.103 .qmake.stash
28.04.2021  16:21    <DIR>          bindings
28.04.2021  16:21             2.577 inventory.txt
28.04.2021  16:24            38.941 Makefile
28.04.2021  16:24    <DIR>          popplerqt5
28.04.2021  16:21               672 python-poppler-qt5.pro
28.04.2021  16:21            58.187 sip.h
build>C:\Qt\Qt5.12.10\5.15.2\mingw81_64\bin\qmake.exe -v -recursive python-poppler-qt5.pro
QMake version 3.1
Using Qt version 5.15.2 in C:/Qt/Qt5.12.10/5.15.2/mingw81_64/lib

However, I cannot find any new files..

mitya57 commented 3 years ago

Indeed, there is no such file in the root level directory. However, a directory 'build' has been created, which contains

pyqt-builder (which is used by sip-build) should enter that directory before calling qmake:

https://riverbankcomputing.com/hg/PyQt-builder/file/1.9.1/pyqtbuild/builder.py#l245

Again I have no idea why it fails, but I show you which code to debug.

However, I cannot find any new files..

You called qmake which only generates the Makefiles, but doesn't actually build the project. To build it on Windows, you now need to call nmake or mingw32-make (sip-build would call it if it didn't fail earlier).

marlemion commented 3 years ago

Yes, just figured that out. It currently compiles in the build directory with mingw32-make.

So I will dig deeper into PyQt Builder and let you know.

marlemion commented 3 years ago

Hi, so, the problem with not changing the directory was rather stupid. sipbuild uses a subprocess in project.py, which implements the shell=True variable, thereby calling cmd under Windows. I have a shell script in the Autorun variable of cmd, which sends me to H: for convenience reasons. So whenever sip-build entered the subroutine, it got redirected to h: and could not find the pro file. I have now removed the redirection and sip-build finds the pro file.

But! It doesn't link. Any suggestion? I use the 64bit toolchain. Maybe not a good idea? From here: https://stackoverflow.com/questions/18717996/python-x64-c-library-compiled-with-mingw-x64-on-windows7-py-initmodule4 I got the advise to add -DMS_WIN64, but I would not know how to do it in pip/sip-build/qmake...

    g++ -c -fno-keep-inline-dllexport -mstackrealign -O2 -fno-exceptions -Wall -Wextra -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I. -I.. -IH:\poppler-21.04.0\poppler_install\include\poppler\qt5 -IH:\poppler-21.04.0\poppler_install\include\poppler -I..\..\..\Programs\Python\Python39\include -IC:\Qt\Qt5.12.10\5.15.2\mingw81_64\include -IC:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtGui -IC:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtANGLE -IC:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtXml -IC:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore -Irelease -I/include -IC:\Qt\Qt5.12.10\5.15.2\mingw81_64\mkspecs\win32-g++  -o release\sippopplerqt5QSet0100PopplerDocumentRenderBackend.o sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp

    In file included from H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-qt5.h:47,
                     from C:/Users/eger/AppData/Local/Temp/pip-req-build-prejig40/poppler-qt5.sip:19,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-annotation.h:596:5: warning: 'template<class T> class QLinkedList' is deprecated [-Wdeprecated-declarations]
         QLinkedList<QPointF> linePoints() const;
         ^~~~~~~~~~~
    In file included from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qvarlengtharray.h:43,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/qmetatype.h:48,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/QMetaType:1,
                     from sipAPIpopplerqt5.h:12,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qcontainerfwd.h:51:26: note: declared here
     template <class T> class QLinkedList;
                              ^~~~~~~~~~~
    In file included from H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-qt5.h:47,
                     from C:/Users/eger/AppData/Local/Temp/pip-req-build-prejig40/poppler-qt5.sip:19,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-annotation.h:597:30: warning: 'template<class T> class QLinkedList' is deprecated [-Wdeprecated-declarations]
         void setLinePoints(const QLinkedList<QPointF> &points);
                                  ^~~~~~~~~~~
    In file included from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qvarlengtharray.h:43,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/qmetatype.h:48,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/QMetaType:1,
                     from sipAPIpopplerqt5.h:12,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qcontainerfwd.h:51:26: note: declared here
     template <class T> class QLinkedList;
                              ^~~~~~~~~~~
    In file included from H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-qt5.h:47,
                     from C:/Users/eger/AppData/Local/Temp/pip-req-build-prejig40/poppler-qt5.sip:19,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-annotation.h:804:11: warning: 'template<class T> class QLinkedList' is deprecated [-Wdeprecated-declarations]
         QList<QLinkedList<QPointF>> inkPaths() const;
               ^~~~~~~~~~~
    In file included from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qvarlengtharray.h:43,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/qmetatype.h:48,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/QMetaType:1,
                     from sipAPIpopplerqt5.h:12,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qcontainerfwd.h:51:26: note: declared here
     template <class T> class QLinkedList;
                              ^~~~~~~~~~~
    In file included from H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-qt5.h:47,
                     from C:/Users/eger/AppData/Local/Temp/pip-req-build-prejig40/poppler-qt5.sip:19,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    H:\poppler-21.04.0\poppler_install\include\poppler/qt5/poppler-annotation.h:805:34: warning: 'template<class T> class QLinkedList' is deprecated [-Wdeprecated-declarations]
         void setInkPaths(const QList<QLinkedList<QPointF>> &paths);
                                      ^~~~~~~~~~~
    In file included from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qvarlengtharray.h:43,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/qmetatype.h:48,
                     from C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include\QtCore/QMetaType:1,
                     from sipAPIpopplerqt5.h:12,
                     from sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:7:
    C:\Qt\Qt5.12.10\5.15.2\mingw81_64\include/QtCore/qcontainerfwd.h:51:26: note: declared here
     template <class T> class QLinkedList;
                              ^~~~~~~~~~~
    g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,release\libpopplerqt5.a -o release\popplerqt5.dll @object_script.popplerqt5.Release  -LH:\poppler-21.04.0\poppler_install\lib -lpoppler-qt5 -LC:\Users\eger\AppData\Local\Programs\Python\Python39\libs C:\Qt\Qt5.12.10\5.15.2\mingw81_64\lib\libQt5Gui.a C:\Qt\Qt5.12.10\5.15.2\mingw81_64\lib\libQt5Xml.a C:\Qt\Qt5.12.10\5.15.2\mingw81_64\lib\libQt5Core.a

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x297): undefined reference to `__imp_Py_BuildValue'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x307): undefined reference to `__imp_Py_BuildValue'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x328): undefined reference to `__imp_Py_BuildValue'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x348): undefined reference to `__imp_Py_BuildValue'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1aa6): undefined reference to `__imp_PyModule_Create2'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1abc): undefined reference to `__imp_PyModule_GetDict'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1ace): undefined reference to `__imp_PyImport_ImportModule'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1aef): undefined reference to `__imp_PyDict_GetItemString'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1b0c): undefined reference to `__imp_PyCapsule_Type'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1b26): undefined reference to `__imp_PyCapsule_GetPointer'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1bf3): undefined reference to `__imp_PyExc_AttributeError'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1c03): undefined reference to `__imp_PyErr_SetString'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1c18): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1c25): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5cmodule.o:sippopplerqt5cmodule.cpp:(.text+0x1c3e): undefined reference to `__imp__Py_FatalErrorFunc'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x324): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerFormField.o:sippopplerqt5QList0101PopplerFormField.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x1a): undefined reference to `__imp_PySet_New'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x8d): undefined reference to `__imp_PySet_Add'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0xed): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x378): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x3c2): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x3cd): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x505): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x584): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x5f1): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x5fa): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x6fa): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x70a): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x715): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x757): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x765): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerAnnotationSubType.o:sippopplerqt5QSet0100PopplerAnnotationSubType.cpp:(.text+0x770): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x324): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerLink.o:sippopplerqt5QList0101PopplerLink.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x324): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerTextBox.o:sippopplerqt5QList0101PopplerTextBox.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x24): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x6c): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x107): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x2b8): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x369): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x374): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x3d5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x3e2): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x44e): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x457): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x4f8): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x505): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x512): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x555): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x563): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100QRectF.o:sippopplerqt5QList0100QRectF.cpp:(.text+0x56e): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x491): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x4ed): undefined reference to `__imp_PyTuple_New'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x6f5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x708): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x715): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x725): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x735): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x79b): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x8aa): undefined reference to `__imp_PySequence_Check'

    release/sippopplerqt5QVector0600QPair0100QString0100QString.o:sippopplerqt5QVector0600QPair0100QString0100QString.cpp:(.text+0x8b7): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x324): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerEmbeddedFile.o:sippopplerqt5QList0101PopplerEmbeddedFile.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x24): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x6c): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x107): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x2d8): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x385): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x390): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x3f5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x402): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x46e): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x477): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x518): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x525): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x532): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x575): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x583): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerFontInfo.o:sippopplerqt5QList0100PopplerFontInfo.cpp:(.text+0x58e): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x324): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.o:sippopplerqt5QList0101PopplerRichMediaAnnotationAsset.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x324): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.o:sippopplerqt5QList0101PopplerRichMediaAnnotationConfiguration.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x324): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.o:sippopplerqt5QList0101PopplerRichMediaAnnotationInstance.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0600QLinkedList0100QPointF.o:sippopplerqt5QList0600QLinkedList0100QPointF.cpp:(.text+0x214): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0600QLinkedList0100QPointF.o:sippopplerqt5QList0600QLinkedList0100QPointF.cpp:(.text+0x3b5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0600QLinkedList0100QPointF.o:sippopplerqt5QList0600QLinkedList0100QPointF.cpp:(.text+0x418): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5QList0600QLinkedList0100QPointF.o:sippopplerqt5QList0600QLinkedList0100QPointF.cpp:(.text+0x625): undefined reference to `__imp_PySequence_Check'

    release/sippopplerqt5QList0600QLinkedList0100QPointF.o:sippopplerqt5QList0600QLinkedList0100QPointF.cpp:(.text+0x632): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x24): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x6c): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x147): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x2f8): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x3df): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x3ea): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x4ce): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x4d7): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x578): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x585): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x592): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x5d5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x5e3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0100PopplerHighlightAnnotationQuad.o:sippopplerqt5QList0100PopplerHighlightAnnotationQuad.cpp:(.text+0x5ee): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QLinkedList0100QPointF.o:sippopplerqt5QLinkedList0100QPointF.cpp:(.text+0x1af): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QLinkedList0100QPointF.o:sippopplerqt5QLinkedList0100QPointF.cpp:(.text+0x2e5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QLinkedList0100QPointF.o:sippopplerqt5QLinkedList0100QPointF.cpp:(.text+0x33b): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5QLinkedList0100QPointF.o:sippopplerqt5QLinkedList0100QPointF.cpp:(.text+0x459): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QLinkedList0100QPointF.o:sippopplerqt5QLinkedList0100QPointF.cpp:(.text+0x4e2): undefined reference to `__imp_PySequence_Check'

    release/sippopplerqt5QLinkedList0100QPointF.o:sippopplerqt5QLinkedList0100QPointF.cpp:(.text+0x4ef): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5QLinkedList0100QPointF.o:sippopplerqt5QLinkedList0100QPointF.cpp:(.text+0x517): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x3a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x63): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0xe7): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x240): undefined reference to `__imp_PyObject_GetIter'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x268): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x2ae): undefined reference to `__imp_PyIter_Next'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x31d): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x332): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x367): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x3b4): undefined reference to `__imp_PyExc_TypeError'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x3bd): undefined reference to `__imp_PyErr_Format'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x406): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x455): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x462): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x4a5): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QList0101PopplerAnnotation.o:sippopplerqt5QList0101PopplerAnnotation.cpp:(.text+0x4b3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerTextBox.o:sippopplerqt5PopplerTextBox.cpp:(.text+0x2b5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerSoundObject.o:sippopplerqt5PopplerSoundObject.cpp:(.text+0x2b2): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerSoundObject.o:sippopplerqt5PopplerSoundObject.cpp:(.text+0x434): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerSoundObject.o:sippopplerqt5PopplerSoundObject.cpp:(.text+0x4e4): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerPageTransition.o:sippopplerqt5PopplerPageTransition.cpp:(.text+0x1f2): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerPageTransition.o:sippopplerqt5PopplerPageTransition.cpp:(.text+0x2a5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPageTransition.o:sippopplerqt5PopplerPageTransition.cpp:(.text+0x354): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerPageTransition.o:sippopplerqt5PopplerPageTransition.cpp:(.text+0x4c4): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xfe): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x155): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x197): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x480): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x533): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x5c2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x663): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x6f2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x793): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x816): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x85b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x8d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x8d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x8df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x922): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x95b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x9d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x9d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0x9df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xa22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xa5b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xad0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xad8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xadf): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xb22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xbcf): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xc2c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xc52): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xcff): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xd5c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPageSearchFlags.o:sippopplerqt5PopplerPageSearchFlags.cpp:(.text+0xd82): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xfe): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x155): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x197): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x480): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x533): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x5c2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x663): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x6f2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x793): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x816): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x85b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x8d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x8d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x8df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x922): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x95b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x9d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x9d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0x9df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xa22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xa5b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xad0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xad8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xadf): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xb22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xbcf): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xc2c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xc52): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xcff): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xd5c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPagePainterFlags.o:sippopplerqt5PopplerPagePainterFlags.cpp:(.text+0xd82): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x593): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x602): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x8e7): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x932): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x9bd): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xa02): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xa14): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xa81): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xcfa): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xd75): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xd9f): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xf12): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0xf82): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x10a3): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x15f2): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x16f8): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerPage.o:sippopplerqt5PopplerPage.cpp:(.text+0x1973): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerOptContentModel.o:sippopplerqt5PopplerOptContentModel.cpp:(.text+0xc3): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerOptContentModel.o:sippopplerqt5PopplerOptContentModel.cpp:(.text+0x2b6): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerOptContentModel.o:sippopplerqt5PopplerOptContentModel.cpp:(.text+0x4a6): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerOptContentModel.o:sippopplerqt5PopplerOptContentModel.cpp:(.text+0xf19): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerMovieObject.o:sippopplerqt5PopplerMovieObject.cpp:(.text+0x205): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerMovieObject.o:sippopplerqt5PopplerMovieObject.cpp:(.text+0x2b4): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerMediaRendition.o:sippopplerqt5PopplerMediaRendition.cpp:(.text+0x135): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerMediaRendition.o:sippopplerqt5PopplerMediaRendition.cpp:(.text+0x1e6): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerMediaRendition.o:sippopplerqt5PopplerMediaRendition.cpp:(.text+0x295): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerMediaRendition.o:sippopplerqt5PopplerMediaRendition.cpp:(.text+0x345): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerMediaRendition.o:sippopplerqt5PopplerMediaRendition.cpp:(.text+0x665): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x1e2): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x292): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x412): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x4c4): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x572): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x6e5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x795): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x845): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkDestination.o:sippopplerqt5PopplerLinkDestination.cpp:(.text+0x9c2): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLinkMovie.o:sippopplerqt5PopplerLinkMovie.cpp:(.text+0x171): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkRendition.o:sippopplerqt5PopplerLinkRendition.cpp:(.text+0x241): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkSound.o:sippopplerqt5PopplerLinkSound.cpp:(.text+0x102): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLinkSound.o:sippopplerqt5PopplerLinkSound.cpp:(.text+0x1b5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkSound.o:sippopplerqt5PopplerLinkSound.cpp:(.text+0x325): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkSound.o:sippopplerqt5PopplerLinkSound.cpp:(.text+0x3d5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLinkGoto.o:sippopplerqt5PopplerLinkGoto.cpp:(.text+0x105): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xfe): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x155): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x197): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x480): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x533): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x5c2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x663): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x6f2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x793): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x816): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x85b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x8d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x8d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x8df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x922): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x95b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x9d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x9d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0x9df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xa22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xa5b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xad0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xad8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xadf): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xb22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xbcf): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xc2c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xc52): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xcff): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xd5c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.o:sippopplerqt5PopplerCertificateInfoKeyUsageExtensions.cpp:(.text+0xd82): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerCertificateInfo.o:sippopplerqt5PopplerCertificateInfo.cpp:(.text+0x144): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerCertificateInfo.o:sippopplerqt5PopplerCertificateInfo.cpp:(.text+0x624): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerCertificateInfo.o:sippopplerqt5PopplerCertificateInfo.cpp:(.text+0xa45): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerCertificateInfo.o:sippopplerqt5PopplerCertificateInfo.cpp:(.text+0xaf5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerCertificateInfo.o:sippopplerqt5PopplerCertificateInfo.cpp:(.text+0xbfe): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerSignatureValidationInfo.o:sippopplerqt5PopplerSignatureValidationInfo.cpp:(.text+0x65): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldChoice.o:sippopplerqt5PopplerFormFieldChoice.cpp:(.text+0x1ed): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormFieldChoice.o:sippopplerqt5PopplerFormFieldChoice.cpp:(.text+0x2ea): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormFieldChoice.o:sippopplerqt5PopplerFormFieldChoice.cpp:(.text+0x365): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldChoice.o:sippopplerqt5PopplerFormFieldChoice.cpp:(.text+0x415): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldChoice.o:sippopplerqt5PopplerFormFieldChoice.cpp:(.text+0x8c5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldText.o:sippopplerqt5PopplerFormFieldText.cpp:(.text+0x37d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormFieldText.o:sippopplerqt5PopplerFormFieldText.cpp:(.text+0x433): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormFieldText.o:sippopplerqt5PopplerFormFieldText.cpp:(.text+0x4b4): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerFormFieldText.o:sippopplerqt5PopplerFormFieldText.cpp:(.text+0x565): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldText.o:sippopplerqt5PopplerFormFieldText.cpp:(.text+0x615): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldText.o:sippopplerqt5PopplerFormFieldText.cpp:(.text+0x6c2): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerFormFieldText.o:sippopplerqt5PopplerFormFieldText.cpp:(.text+0x775): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldButton.o:sippopplerqt5PopplerFormFieldButton.cpp:(.text+0x95): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormFieldButton.o:sippopplerqt5PopplerFormFieldButton.cpp:(.text+0x254): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormFieldButton.o:sippopplerqt5PopplerFormFieldButton.cpp:(.text+0x323): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x294): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x354): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x414): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x51d): more undefined references to `__imp__Py_NoneStruct' follow

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x735): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x7e5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x895): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFormField.o:sippopplerqt5PopplerFormField.cpp:(.text+0x944): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerFontIterator.o:sippopplerqt5PopplerFontIterator.cpp:(.text+0x195): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFontIterator.o:sippopplerqt5PopplerFontIterator.cpp:(.text+0x244): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerFontIterator.o:sippopplerqt5PopplerFontIterator.cpp:(.text+0x365): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerFontIterator.o:sippopplerqt5PopplerFontIterator.cpp:(.text+0x403): undefined reference to `__imp_PyExc_StopIteration'

    release/sippopplerqt5PopplerFontIterator.o:sippopplerqt5PopplerFontIterator.cpp:(.text+0x40e): undefined reference to `__imp_PyErr_SetNone'

    release/sippopplerqt5PopplerFontInfo.o:sippopplerqt5PopplerFontInfo.cpp:(.text+0x485): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerFontInfo.o:sippopplerqt5PopplerFontInfo.cpp:(.text+0x535): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerEmbeddedFile.o:sippopplerqt5PopplerEmbeddedFile.cpp:(.text+0x64): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerEmbeddedFile.o:sippopplerqt5PopplerEmbeddedFile.cpp:(.text+0x385): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xfe): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x155): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x197): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x480): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x533): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x5c2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x663): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x6f2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x793): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x816): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x85b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x8d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x8d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x8df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x922): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x95b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x9d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x9d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0x9df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xa22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xa5b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xad0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xad8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xadf): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xb22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xbcf): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xc2c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xc52): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xcff): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xd5c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocumentRenderHints.o:sippopplerqt5PopplerDocumentRenderHints.cpp:(.text+0xd82): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x268): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x69e): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x7ae): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x8cb): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x992): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0xa5e): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0xb99): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0xc68): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0xd6e): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0xed1): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x1031): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x113e): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x1248): more undefined references to `__imp_PyBool_FromLong' follow

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x137d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x1434): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x150e): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x1825): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x1fe5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2095): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2145): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x21f5): more undefined references to `__imp_PyBool_FromLong' follow

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2614): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2971): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2990): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2b45): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2bf5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2ca5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2f45): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x2ff5): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x3218): more undefined references to `__imp_PyBool_FromLong' follow

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x345a): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x3481): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x3db0): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x3dda): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x40a9): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x40d6): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x42c0): undefined reference to `__imp_PyEval_SaveThread'

    release/sippopplerqt5PopplerDocument.o:sippopplerqt5PopplerDocument.cpp:(.text+0x42ed): undefined reference to `__imp_PyEval_RestoreThread'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xfe): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x155): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x197): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x480): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x533): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x5c2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x663): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x6f2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x793): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x816): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x85b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x8d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x8d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x8df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x922): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x95b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x9d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x9d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0x9df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xa22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xa5b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xad0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xad8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xadf): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xb22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xbcf): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xc2c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xc52): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xcff): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xd5c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPDFConverterPDFOptions.o:sippopplerqt5PopplerPDFConverterPDFOptions.cpp:(.text+0xd82): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPDFConverter.o:sippopplerqt5PopplerPDFConverter.cpp:(.text+0x11f): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPDFConverter.o:sippopplerqt5PopplerPDFConverter.cpp:(.text+0x2ce): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xfe): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x155): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x197): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x480): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x533): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x5c2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x663): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x6f2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x793): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x816): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x85b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x8d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x8d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x8df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x922): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x95b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x9d0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x9d8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0x9df): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xa22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xa5b): undefined reference to `__imp_PyType_IsSubtype'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xad0): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xad8): undefined reference to `__imp_PyErr_Clear'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xadf): undefined reference to `__imp__Py_NotImplementedStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xb22): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xbcf): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xc2c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xc52): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xcff): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xd5c): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerPSConverterPSOptions.o:sippopplerqt5PopplerPSConverterPSOptions.cpp:(.text+0xd82): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerPSConverter.o:sippopplerqt5PopplerPSConverter.cpp:(.text+0xd5): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverter.o:sippopplerqt5PopplerPSConverter.cpp:(.text+0x193): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverter.o:sippopplerqt5PopplerPSConverter.cpp:(.text+0x29d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverter.o:sippopplerqt5PopplerPSConverter.cpp:(.text+0x354): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverter.o:sippopplerqt5PopplerPSConverter.cpp:(.text+0x413): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerPSConverter.o:sippopplerqt5PopplerPSConverter.cpp:(.text+0x4d3): more undefined references to `__imp__Py_NoneStruct' follow

    release/sippopplerqt5PopplerPSConverter.o:sippopplerqt5PopplerPSConverter.cpp:(.text+0xd0e): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerBaseConverter.o:sippopplerqt5PopplerBaseConverter.cpp:(.text+0x10d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerBaseConverter.o:sippopplerqt5PopplerBaseConverter.cpp:(.text+0x1d3): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerBaseConverter.o:sippopplerqt5PopplerBaseConverter.cpp:(.text+0x30b): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerScreenAnnotation.o:sippopplerqt5PopplerScreenAnnotation.cpp:(.text+0x15d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerScreenAnnotation.o:sippopplerqt5PopplerScreenAnnotation.cpp:(.text+0x223): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerMovieAnnotation.o:sippopplerqt5PopplerMovieAnnotation.cpp:(.text+0x15d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerMovieAnnotation.o:sippopplerqt5PopplerMovieAnnotation.cpp:(.text+0x223): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerSoundAnnotation.o:sippopplerqt5PopplerSoundAnnotation.cpp:(.text+0x2ed): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerSoundAnnotation.o:sippopplerqt5PopplerSoundAnnotation.cpp:(.text+0x3b3): more undefined references to `__imp__Py_NoneStruct' follow

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0xfb): undefined reference to `__imp_PySequence_Check'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x106): undefined reference to `__imp_PyExc_ValueError'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x116): undefined reference to `__imp_PyErr_SetString'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x135): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x1a0): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x235): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x42a): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x4d2): undefined reference to `__imp_PyFloat_AsDouble'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x4dc): undefined reference to `__imp_PyErr_Occurred'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x508): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x517): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerHighlightAnnotationQuad.o:sippopplerqt5PopplerHighlightAnnotationQuad.cpp:(.text+0x527): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerHighlightAnnotation.o:sippopplerqt5PopplerHighlightAnnotation.cpp:(.text+0x1b8): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerHighlightAnnotation.o:sippopplerqt5PopplerHighlightAnnotation.cpp:(.text+0x2f2): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerHighlightAnnotation.o:sippopplerqt5PopplerHighlightAnnotation.cpp:(.text+0x3ed): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerGeomAnnotation.o:sippopplerqt5PopplerGeomAnnotation.cpp:(.text+0x1b8): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerGeomAnnotation.o:sippopplerqt5PopplerGeomAnnotation.cpp:(.text+0x2f2): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerGeomAnnotation.o:sippopplerqt5PopplerGeomAnnotation.cpp:(.text+0x3e9): more undefined references to `__imp__Py_NoneStruct' follow

    release/sippopplerqt5PopplerLineAnnotation.o:sippopplerqt5PopplerLineAnnotation.cpp:(.text+0xb35): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerLineAnnotation.o:sippopplerqt5PopplerLineAnnotation.cpp:(.text+0xcb2): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLineAnnotation.o:sippopplerqt5PopplerLineAnnotation.cpp:(.text+0xd62): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerLineAnnotation.o:sippopplerqt5PopplerLineAnnotation.cpp:(.text+0x1065): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5PopplerTextAnnotation.o:sippopplerqt5PopplerTextAnnotation.cpp:(.text+0x1f8): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerTextAnnotation.o:sippopplerqt5PopplerTextAnnotation.cpp:(.text+0x55d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerTextAnnotation.o:sippopplerqt5PopplerTextAnnotation.cpp:(.text+0x624): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerTextAnnotation.o:sippopplerqt5PopplerTextAnnotation.cpp:(.text+0x6f2): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerTextAnnotation.o:sippopplerqt5PopplerTextAnnotation.cpp:(.text+0x7a3): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerTextAnnotation.o:sippopplerqt5PopplerTextAnnotation.cpp:(.text+0x8ad): more undefined references to `__imp__Py_NoneStruct' follow

    release/sippopplerqt5PopplerTextAnnotation.o:sippopplerqt5PopplerTextAnnotation.cpp:(.text+0x9e4): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerAnnotationPopup.o:sippopplerqt5PopplerAnnotationPopup.cpp:(.text+0x51d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationPopup.o:sippopplerqt5PopplerAnnotationPopup.cpp:(.text+0x61d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationPopup.o:sippopplerqt5PopplerAnnotationPopup.cpp:(.text+0x71d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationPopup.o:sippopplerqt5PopplerAnnotationPopup.cpp:(.text+0x7e3): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationPopup.o:sippopplerqt5PopplerAnnotationPopup.cpp:(.text+0x8a2): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationPopup.o:sippopplerqt5PopplerAnnotationPopup.cpp:(.text+0x9e1): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x21f): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x2cf): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x37f): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x474): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x534): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x5f4): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x6b4): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x782): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0x842): more undefined references to `__imp__Py_NoneStruct' follow

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0xb6f): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerAnnotationStyle.o:sippopplerqt5PopplerAnnotationStyle.cpp:(.text+0xd7f): undefined reference to `__imp_PyFloat_FromDouble'

    release/sippopplerqt5PopplerAnnotation.o:sippopplerqt5PopplerAnnotation.cpp:(.text+0x3dd): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotation.o:sippopplerqt5PopplerAnnotation.cpp:(.text+0x4a3): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotation.o:sippopplerqt5PopplerAnnotation.cpp:(.text+0x567): undefined reference to `__imp__Py_NoneStruct'

    _in_process.py: 'mingw32-make' failed returning 2
    release/sippopplerqt5PopplerAnnotation.o:sippopplerqt5PopplerAnnotation.cpp:(.text+0x66a): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotation.o:sippopplerqt5PopplerAnnotation.cpp:(.text+0x722): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5PopplerAnnotation.o:sippopplerqt5PopplerAnnotation.cpp:(.text+0x81a): more undefined references to `__imp__Py_NoneStruct' follow

    release/sippopplerqt5PopplerAnnotation.o:sippopplerqt5PopplerAnnotation.cpp:(.text+0xf31): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5PopplerAnnotationUtils.o:sippopplerqt5PopplerAnnotationUtils.cpp:(.text+0xfa): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5Poppler.o:sippopplerqt5Poppler.cpp:(.text+0xb3): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5Poppler.o:sippopplerqt5Poppler.cpp:(.text+0xf9): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5Poppler.o:sippopplerqt5Poppler.cpp:(.text+0x169): undefined reference to `__imp_PyBool_FromLong'

    release/sippopplerqt5QList3800.o:sippopplerqt5QList3800.cpp:(.text+0x168): undefined reference to `__imp_PyLong_AsLongLong'

    release/sippopplerqt5QList3800.o:sippopplerqt5QList3800.cpp:(.text+0x291): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QList3800.o:sippopplerqt5QList3800.cpp:(.text+0x2be): undefined reference to `__imp_PyLong_FromLongLong'

    release/sippopplerqt5QList3800.o:sippopplerqt5QList3800.cpp:(.text+0x379): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5time_t.o:sippopplerqt5time_t.cpp:(.text+0x16): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5time_t.o:sippopplerqt5time_t.cpp:(.text+0x9d): undefined reference to `__imp__Py_NoneStruct'

    release/sippopplerqt5time_t.o:sippopplerqt5time_t.cpp:(.text+0xdb): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x125): undefined reference to `__imp_PySequence_Size'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x139): undefined reference to `__imp_PyLong_AsLong'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x2a2): undefined reference to `__imp_PySequence_Check'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x438): undefined reference to `__imp_PyList_New'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x522): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x5a3): undefined reference to `__imp_PyLong_FromLong'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x5b6): undefined reference to `__imp_PyList_SetItem'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x5c2): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x675): undefined reference to `__imp__Py_Dealloc'

    release/sippopplerqt5QSet0100PopplerDocumentRenderBackend.o:sippopplerqt5QSet0100PopplerDocumentRenderBackend.cpp:(.text+0x6ee): undefined reference to `__imp__Py_Dealloc'

    collect2.exe: error: ld returned 1 exit status
    mingw32-make[2]: *** [Makefile.Release:323: release/popplerqt5.dll] Error 1

    mingw32-make[2]: Leaving directory 'C:/Users/eger/AppData/Local/Temp/tmp4eya9p6t/popplerqt5'

    mingw32-make[1]: *** [Makefile:45: release] Error 2

    mingw32-make[1]: Leaving directory 'C:/Users/eger/AppData/Local/Temp/tmp4eya9p6t/popplerqt5'

    mingw32-make: *** [Makefile:50: sub-popplerqt5-make_first-ordered] Error 2
marlemion commented 3 years ago

Yes, that is the correct path to Python.h. As we start from a temporary directory, which is in %AppDataLocal% and the Python module is also located in this special directory, the path is correct. Why it is in relative form, I actually don't know.

In the meantime I have recompiled with -DMS_WIN64, but with no luck.

bnavigator commented 3 years ago

For reference, you answered to a question of mine which I deleted, because it was stupid.

I don't think the errors look like 32-bit vs 64-bit errors. The linker does not find any (impl) Python symbols, not just the 64bit ones as in the SO issue.

Extra arguments to qmake are passed with sip-build --qmake-setting 'NAME += VALUE', where NAME would probably be 'QMAKE_LFLAGS' or 'QMAKE_CXXFLAGS' here.

bnavigator commented 3 years ago

Maybe also try this:

--link-full-dll
On Windows the full Python API and the limited API (as used by PyQt) are implemented in different DLLs. Normally the limited DLL is linked (unless a debug version of the Python interpreter is being used. This option forces the full API DLL to be linked instead.
marlemion commented 3 years ago

Well - the documentation is totally unclear to me. Where would I add this option?

build>sip-build --link-full-dll
usage: sip-build [-h] [-V] [--quiet] [--verbose] [--build-dir DIR] [--target-dir DIR] [--api-dir DIR] [--concatenate N] [--debug] [--no-docstrings] [--pep484-pyi] [--protected-is-public] [--no-protected-is-public] [--tracing]
sip-build: error: unrecognized arguments: --link-full-dll

Update:

Ok, I managed to link popplerqt5.dll successfully (at least no error and the file is created). What did I do? I had to create a python39.a library file and put it under python39/libs as described here: https://stackoverflow.com/questions/40533566/undefined-reference-to-imp-pyexc-typeerror-with-mingw

Further, I had to add -lpython39 at the end of the g++ linker line.

However, I do not know how to accomplish that with sip-build / pip install. Can you help me out once more?

Update2:

Ok, I managed to build with sip-build using: sip-build --qmake-settings "QMAKE_LIBS += -lpython39"

However, how to include that into pip? pip still fails with the compilation....

Update3:

Forked the repo and added 'python39' to the list of libraries for Windows - no change.

mitya57 commented 3 years ago

Well - the documentation is totally unclear to me. Where would I add this option?

For me sip-build --help shows that option as supported, if I call it in python-poppler-qt5 root directory. Note that the set of possible options depends on from which directory sip-build is called.

Also that option can be added to pyproject.toml, in the [tool.sip.project] section.

Ok, I managed to build with sip-build using: sip-build --qmake-settings "QMAKE_LIBS += -lpython39"

That is good news. For now you can install the project using sip-install instead of pip.

bnavigator commented 3 years ago

You are now statically linking python. I am not sure if you want to do this.

Well - the documentation is totally unclear to me. Where would I add this option?

build>sip-build --link-full-dll

It is added automatically. But you have to call sip-build from the toplevel source dir (where the pyproject.toml is sitting), not from build:

[ben@skylab:…pler-qt5/build]% sip-build --help                                                                                                        [0]
usage: sip-build [-h] [-V] [--quiet] [--verbose] [--build-dir DIR] [--target-dir DIR] [--api-dir DIR] [--concatenate N] [--debug] [--no-docstrings]
                 [--pep484-pyi] [--protected-is-public] [--no-protected-is-public] [--tracing]

Build the project in-situ.

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  --quiet               disable all progress messages
  --verbose             enable verbose progress messages
  --build-dir DIR       the build directory
  --target-dir DIR      the target installation directory
  --api-dir DIR         generate a QScintilla .api file in DIR
  --concatenate N       concatenate the generated bindings into N source files
  --debug               build with debugging symbols
  --no-docstrings       disable the generation of docstrings
  --pep484-pyi          enable the generation of PEP 484 .pyi files
  --protected-is-public
                        enable the protected/public hack (default on non-Windows)
  --no-protected-is-public
                        disable the protected/public hack (default on Windows)
  --tracing             build with tracing support
[ben@skylab:…pler-qt5/build]% cd ..                                                                                                                   [0]
[ben@skylab:…on-poppler-qt5]% sip-build --help                                                                                                        [0]
usage: sip-build [-h] [-V] [--quiet] [--verbose] [--build-dir DIR] [--target-dir DIR] [--api-dir DIR] [--android-abi ABI] [--link-full-dll]
                 [--qml-debug] [--jobs N] [--no-make] [--qmake FILE] [--qmake-setting 'NAME += VALUE'] [--spec SPEC] [--concatenate N] [--debug]
                 [--no-docstrings] [--pep484-pyi] [--protected-is-public] [--no-protected-is-public] [--tracing] [--poppler-version VERSION]

Build the project in-situ.

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  --quiet               disable all progress messages
  --verbose             enable verbose progress messages
  --build-dir DIR       the build directory
  --target-dir DIR      the target installation directory
  --api-dir DIR         generate a QScintilla .api file in DIR
  --android-abi ABI     the target Android ABI
  --link-full-dll       on Windows link against the full Python DLL rather than the limited API DLL
  --qml-debug           enable the QML debugging infrastructure
  --jobs N              run N make jobs in parallel
  --no-make             do not run make or nmake
  --qmake FILE          the pathname of qmake is FILE
  --qmake-setting 'NAME += VALUE'
                        add the 'NAME += VALUE' setting to any .pro file
  --spec SPEC           pass -spec SPEC to qmake
  --concatenate N       concatenate the generated bindings into N source files
  --debug               build with debugging symbols
  --no-docstrings       disable the generation of docstrings
  --pep484-pyi          enable the generation of PEP 484 .pyi files
  --protected-is-public
                        enable the protected/public hack (default on non-Windows)
  --no-protected-is-public
                        disable the protected/public hack (default on Windows)
  --tracing             build with tracing support
  --poppler-version VERSION
                        version of the poppler library
[ben@skylab:…on-poppler-qt5]%
bnavigator commented 3 years ago

Also that option can be added to pyproject.toml, in the [tool.sip.project] section.

https://www.riverbankcomputing.com/static/Docs/PyQt-builder/pyproject_toml.html https://www.riverbankcomputing.com/static/Docs/sip/pyproject_toml.html

marlemion commented 3 years ago

Thanks for your replies.

I am unsure whether I want to link statically, but it is the only thing working so far. Just to let you know that the --link-full-dll option did not result in success. I am currently rebuilding in 64bit mode (had switched to 32bit mode in the mean time, what resulted in a dll load fail upon importing the module). Hopefully, with the 64bit build I am able to load the module (my python is also 64bit).

I will keep you posted.

Update:

I don't know what to say.. I am normally a Linux guy. Can it be so freakin hard to install a simple python module in Windows? I managed to install the pip module with said hack (e.g. adding -lpython39 to poppler-qt5.pc), but now I am running in very weird problems. First of all I understood that the pyd module was missing dlls. So I tried to set the paths for Qt libs and the poppler libs. No luck. Then I stumbled over this here: https://stackoverflow.com/questions/214852/python-module-dlls

WTF? Why is now the PATH environment neglected when searching for DLLs on Windows starting from python 3.8 (I am using 3.9)?

So I copied the required dlls to the site-packages path, what seems to be utterly wrong. Then, the popplerqt5 module loaded, but QtCore started to complain.

This all seems to be sooo messed up. Is poppler-qt5 actually compatible with python3.8 and later?

Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import popplerqt5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing popplerqt5: Das angegebene Modul wurde nicht gefunden.

The next directory hold the poppler and openjpeg libs

>>> import os
>>> os.add_dll_directory('C:\pkg-config')
<AddedDllDirectory('C:\\pkg-config')>
>>> import popplerqt5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing popplerqt5: Das angegebene Modul wurde nicht gefunden.

Still no luck, introducing the dir with the Qt MinGW libs

>>> os.add_dll_directory('C:/Qt/Qt5.12.10/5.15.2/mingw81_64/bin')
<AddedDllDirectory('C:/Qt/Qt5.12.10/5.15.2/mingw81_64/bin')>
>>> import popplerqt5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing QtCore: Die angegebene Prozedur wurde nicht gefunden.

Update2:

So it looks like python and pyqt5 use dlls compiled with MSVC. So I am currently downloading MSVC and will try to build using it.

marlemion commented 3 years ago

FINALLY.

After compilation of everything in MSVC 2019 and copying the following dlls to site-packages:

openjp2.dll poppler-qt5.dll Qt5Cored.dll Qt5Guid.dll Qt5Xmld.dll

and importing PyQt5-Something (initiating the add_dll_path for this package)

the module loads in python.

I still have to test it though, any pointer to a short test script?

bnavigator commented 3 years ago

what seems to be utterly wrong.

Totally agree :rofl:

Did you try to adjust your PYTHONPATH (or sys.path) instead of copying files into site-packages?

I still have to test it though, any pointer to a short test script?

https://github.com/frescobaldi/python-poppler-qt5/tree/master/demo

marlemion commented 3 years ago

So far thanks for all your help, but something is still not ok.

It seems that pyqt5 and poppler-qt5 have a problem being run side by side. When I run the demo file, I get the following error:

image

Stripping it down to:

import sys
from PyQt5 import QtGui, QtWidgets
import popplerqt5

filename = sys.argv[-1]
doc = popplerqt5.Poppler.Document.load(filename)
doc.setRenderHint(popplerqt5.Poppler.Document.Antialiasing)
doc.setRenderHint(popplerqt5.Poppler.Document.TextAntialiasing)
page = doc.page(0)
image = page.renderToImage()
image.save("file.jpg")

works. Any idea what that message might want to tell us?

Btw. when having the error, the module still reads and exports the PDF. So it works, but afterwards, the crash happens.

bnavigator commented 3 years ago

Without a python or c++ debugger trace we can't say. Here is a (wild) guess:

You don't have multiple python, Qt5, and PyQt5 libraries in your paths anymore, do you? https://github.com/frescobaldi/python-poppler-qt5/pull/41#issuecomment-827970083

Make sure you us a a PyQt5 compiled without --debug (https://bugzilla.opensuse.org/show_bug.cgi?id=1179214)

marlemion commented 3 years ago

Ok, I had poppler-qt5.dll built in Debug mode. It is now built in release mode.

AND IT WORKS! :)

Thank you so much for your help!

swt2c commented 3 years ago

@mitya57, have you tried building python-poppler-qt5 with sip v6?

mitya57 commented 3 years ago

@swt2c I have just tried to run pip install -v git+https://github.com/frescobaldi/python-poppler-qt5.git in a clean virtualenv, and it works fine for me. In the log I can see that sip-6.1.0 was used among other build dependencies.

bnavigator commented 3 years ago

Here is a buildlog of python-poppler-qt5 using sip-6.1.0 for three different major Python versions: poppler-qt5-sip6_log.txt

swt2c commented 3 years ago

Thanks @mitya57 & @bnavigator , I found my issue - unrelated to sip6.

fedelibre commented 3 years ago

@wbsoft Can you make a new release and upload it to the PyPI?

I think this fixes also #48