How do I compile /usr/lib/cups/driver/hplip?

Asked by Tae-Young Kwon

I am using ubuntu 18.04.
I know that in ubuntu, the ppd file for hplip is provided as /usr/lib/cups/driver/hplip.

So I compiled it like this:

$ apt-get source hplip
$ apt-get build-dep hplip
$ cd hplip-3.17.10 + repack0 /
$ debian/rule binary

This will cause hplip to compile.

However, this compiled hplip does not include /usr/lib/cups/driver/hplip.
$ make DESTDIR=/nfs/aaa install
$ find /nfs/aaa -name hplip

But debian/hplip/usr/lib/cups/driver/hplip file exists in the debian folder.
I am wondering how debian/hplip/usr/lib/cups/driver/hplip files are generated.

How do I know if I know how to create the file?

Question information

English Edit question
Ubuntu hplip Edit question
No assignee Edit question
Solved by:
Tae-Young Kwon
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

Why don't you just get the installer for the latest hplip and install it. Just like you would in Windows.

chmod +x ./

Run as user (important) not prefix with sudo.

Do you specifically need 3.17?

Revision history for this message
Tae-Young Kwon (xoduddk123) said :


It was simply version 3.17.10 that I received as 'apt-get source hplip' from my ubuntu.

I installed hplip with
However, there is no /usr/lib/cups/driver/hplip installed on this hplip.

Revision history for this message
Tae-Young Kwon (xoduddk123) said :

I have confirmed that the file is generated by pyppd.