P-touch

From HackerDojo Wiki
Jump to navigation Jump to search

brother line of label printers generally know as "P-touch".

Process of setting up to print labels directly over USB from a linux computer.

Source: https://git.familie-radermacher.ch/linux/ptouch-print.git/

Tips: https://github.com/HenrikBengtsson/brother-ptouch-label-printer-on-linux

Bar code Generator: https://github.com/zint/zint/tree/master

example

~/ptouch-print/build/ptouch-print --text 'hellorld!'


pre-requisites

sudo apt update
sudo apt install cmake
sudo apt install build-essential
sudo apt install gettext
sudo apt install libgd-dev
sudo apt install pkg-config
sudo apt install libusb-1.0-0-dev 

For zint bar code make:

sudo apt install qttools5-dev qttools5-dev-tools libqt5svg5-dev

...error finding shared library fix

sudo ldconfig

package build

git clone https://git.familie-radermacher.ch/linux/ptouch-print.git
cd ptouch-print/
./build.sh