Skip to content

Problem installing python-poppler-qt4 (0.24.0, Windows, Python27, Qt4.8.7, poppler-qt0.24.5) #13

@kvdum

Description

@kvdum

Hi! It is necessary to build popplerqt4. Here are my steps:
Downloading the package on the computer Windovs 8.1 (Python xy, PyQt4 installed):
Compilator VC2008: C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0
Buildind and installing SIP 4.17 (configure, nmake, nmake install).
I use link - https://bitbucket.org/lorenzph/pdfcropbox/src/6f19eb413664/doc/dependencies.rst?fileviewer=file-view-default
Building poppler-qt4 version 0.24.5
Start Visual Studio 2008 Command Promt:
set PATH="C:\Qt\4.8.7\bin;C:\Python27;C:\Program Files (x86)\CMake\bin;%PATH%"
Freetype 2.4.2-1 download from link: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype-dev_2.4.2-1_win32.zip
Creating environment variables for poppler:
set POPPLER=C:\poppler-0.24.5
set FREETYPE=C:\freetype-dev_2.4.2-1_win32

set LIB=%FREETYPE%\lib;%LIB%
set INCLUDE=%FREETYPE%\include;%INCLUDE%

cd C:\poppler-0.24.5
mkdir build
cd build

cmake -DCMAKE_INSTALL_PREFIX="%POPPLER%" -DENABLE_CPP=FALSE -DENABLE_UTILS=FALSE -DENABLE_ABIWORD=FALSE -DBUILD_QT4_TESTS=FALSE -DCMAKE_BUILD_TYPE=Release ..
nmake
nmake install
Result: poppler.lib in folder - C:\poppler-0.24.5\lib
Rename: poppler.lib -> poppler-qt4.lib
Creating environment variables for python-poppler-qt4:
set QT=C:\Qt\4.8.7
set POPPLER=C:\poppler-0.24.5
set LIB=%POPPLER%\lib;%QT%\lib
set INCLUDE=%POPPLER%;%QT%\include;%QT%\include\QtCore;%QT%\include\QtGui;%QT%\include\QtXml
Moving all files C:\poppler-0.24.5\qt4\src -> C:\poppler-0.24.5\qt4
Entered commands:
python setup.py build_ext --poppler-version=0.24.5
I get link errors - Building finished with error 1120:
...
Creating library build\temp.win32-2.7\Release\build\temp.win32-2.7\Release\popplerqt4.lib... sippopplerqt4QList0100PopplerFontInfo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Poppler::FontInfo::~FontInfo(void)"... sippopplerqt4PopplerTextBox.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Poppler::TextBox * __thiscall Poppler::TextBox::nextWord(void)const "... ... build\lib.win32-2.7\popplerqt4.pyd : fatal error LNK1120: 322 unresolved externals error: command '...\\Microsoft\\VisualC++forPython\\9.0\\VC\\Bin\\link.exe' failed with exit status 1120

Error buildind popplerqt4 in Windows

I do not know to solve this problem!
Help, please solve this problem.
And you could not fix the problem, install this package in the pip?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions