1

hplip still uses the discontinued pyQt4 in Debian when running the newest installer (3.25.6 as of writing this). Similarly, the versions supplied in Debian 12 and 13 still require pyQt4, but pyQt4 has been removed from the official Debian repositories. To get around this, how do I build hplip from source with pyQt5 support in Debian 12 or 13?

5
  • The versions in Debian 12 and Debian 13 use PyQt5, what gave you the impression they use PyQt4? Commented Aug 17 at 21:47
  • @StephenKitt Running hp-check after the installation. Commented Aug 17 at 22:11
  • OK, I don’t know why hp-check -r gets it wrong, but the packages are built with pyqt5 — you can see that in /etc/hp/hplip.conf. Debian packages can’t depend on packages that no longer exist in the distribution. Commented Aug 18 at 6:36
  • Ignoring the Qt5 angle, compiling the latest hplip from source is useful anyway because the version packaged in Debian is rather old and missing support for quite a few printers. Commented Aug 18 at 7:19
  • I though printers were driverless now. wiki.debian.org/CUPSDriverlessPrinting#ippoverusb Part of why hplip not maintained anymore. Friverless or Airprint since 2014 wiki.debian.org/CUPSQuickPrintQueues Commented Aug 18 at 13:50

1 Answer 1

1

First, install hplip from the official Debian apt repo using sudo apt install hplip-gui or sudo apt install hplip. This step is vital.

Download the latest tar.gz (hplip-3.25.6 as of writing this) from https://sourceforge.net/projects/hplip/

Extract it with tar xzf hplip-3.25.6.tar.gz.

cd hplip-3.25.6

./configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-qt5 --disable-qt4 --disable-libusb01_build --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

make

make install

Then run hp-check and make sure you have the right dependencies. You may need to install python-is-python3 to get it to run.

3
  • What’s the reason for --libdir=/usr/lib64? Commented Aug 18 at 6:38
  • Copied from developers.hp.com/hp-linux-imaging-and-printing/install/manual/…. It appears to specify a 64 bit build. Commented Aug 18 at 22:46
  • It specifies the target directory for libraries, and is wrong for Debian 12 — but you’re following instructions for Debian 6, so that’s hardly surprising. Commented Aug 23 at 16:05

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.