Skip to content

Build python poppler qt5

Federico Bruni edited this page Oct 6, 2021 · 13 revisions

Build on Linux

Some notes on how to build python-poppler-qt5 on Linux.

Install the dependencies on Fedora (tested on Fedora 34):

sudo dnf install poppler-qt5-devel sip-devel python3-sip-devel python3-qt5-devel

Install the dependencies on Ubuntu (tested on Ubuntu 20.04):

sudo apt install libpoppler-qt5-dev python3-sip-dev python3-pyqt5 qtbase5-dev pyqt5-dev pkg-config

Check if qmake is in the PATH:

which qmake

If it's not, add it to the PATH variable for the current session. This seems to be needed only on Fedora:

export PATH=$PATH:/usr/lib64/qt5/bin

NOTE: In Qt6 this is not needed since qmake path is /usr/bin/qmake (check qt6-qtbase-devel package in Fedora).

Clone the repository and enter the directory:

git clone [email protected]:frescobaldi/python-poppler-qt5.git
cd python-poppler-qt5

Build and install:

python3 setup.py build
sudo python3 setup.py install
Clone this wiki locally