Skip to content

v-odoo-testing/openwrt-printing-packages

 
 

Repository files navigation

Printing packages for OpenWrt

This is a package feed aiming at providing a complete printing stack for OpenWrt.

Notably it has:

  • Ghostscript 10.02.1
  • Gutenprint 5.3.4
  • Cups 2.4.7
  • OpenPrinting's cups-filters 1.0.37
  • poppler 23.11.0
  • many other packages to make sure the ones above work...

To use this feed,

  • set up your router to use external storage for its root file system, as these packages require more than a 100 MB of space.
src-git printing git://github.com/Vladdrako/openwrt-printing-packages.git
  • to compile everything in this feed you should use the script setup-buildsystem.sh or some variation of those commands.

  • copy compiled packages to your router (copy the whole directory as you need the files used to index the packages)

scp -r ./bin/$ARCH/packages root@openwrt.lan:/storage/printer/packages/
  • add local package source to the opkg configuration /etc/opkg.conf with
src/gz printing file:/storage/printer/packages
  • see opkg-install-printing-packages.sh to see a suggestion of what to install.

  • tested against Attitude Adjustment (because that is what I have installed...).

  • Avahi is notified of printers added to Cups, and these will appear as Air Printer's in iOS devices.

Issues / Missing / TODO

Caveat: Ghostscript lacks proper cross-compilation support. I used a patch taken from timesys.com. If your architecture is not there, compiling it just won't work for you.

The alternative for those who can't compile Ghostscript is to use a different PDF backend, in this case Poppler. For instructions of how to do this open the tar-ball of the cups-filters-*.tar.bz2 and check the section 1. Selection of the renderer: Ghostscript, Poppler, or Adobe Reader of the README.

pay attention

add libcurl before adding the printing, to enable the libcurl options

./scripts/feeds install bzip2 libcurl

trouble perl

build error perl

apt-get -y install protobuf-c-compiler

and : menuconfig: disable perl testing

#
# Configuration
#
CONFIG_PERL_THREADS=y
CONFIG_PERL_TESTS=n
CONFIG_PERL_NOCOMMENT=y
# end of Configuration

trouble ghostscript: unselect auto remove build dir=> ghostscript has symlinks to the hostpakage which is deleted on autoremove

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 95.7%
  • Shell 4.3%