Brother PT-P700 - Debian

Hardware info on main page.

Links

Github clarkewd/ptouch-print,

local links

vm4 - Debian host,

History

2021-11-19: vm4 - printing a label again

tingo@kg-vm4:~$ ~/work/Brother/clarkewd/ptouch-print/ptouch-print --text "FreeBSD" "13.0-release" "i386"
PT-P700 found on USB bus 1, device 4
choosing font size=17

2021-05-11: vm4 - printing another label

tingo@kg-vm4:~$ ~/work/Brother/clarkewd/ptouch-print/ptouch-print --text "ZyXEL" "GS-10B (2)"
PT-P700 found on USB bus 1, device 4
choosing font size=19

ok

2021-05-10: vm4 - printing a couple of labels

tingo@kg-vm4:~$ ~/work/Brother/clarkewd/ptouch-print/ptouch-print --text "ZyXEL GS-108Bv2 (6)"
PT-P700 found on USB bus 1, device 3
choosing font size=38
tingo@kg-vm4:~$ ~/work/Brother/clarkewd/ptouch-print/ptouch-print --text "ZyXEL" "GS-108Bv2 (6)"
PT-P700 found on USB bus 1, device 3
choosing font size=19

ok

2020-11-17: vm4 - printing a new label

tingo@kg-vm4:~$ ~/work/Brother/clarkewd/ptouch-print/ptouch-print --text "FreeBSD" "13.0-CURRENT" "20201112"
PT-P700 found on USB bus 2, device 2
choosing font size=15

ok

2019-11-26: vm4 - printing a new label

tingo@kg-vm4:~$ ~/work/Brother/clarkewd/ptouch-print/ptouch-print --text "FreeBSD" "11.3-RELEASE"
PT-P700 found on USB bus 1, device 2
choosing font size=24

ok

2019-11-26: vm4 - cheching which tape is loaded.

tingo@kg-vm4:~$ ~/work/Brother/clarkewd/ptouch-print/ptouch-print --info
PT-P700 found on USB bus 1, device 2
maximum printing width for this tape is 52px
media type = 01
media width = 9 mm
tape color = 01
text color = 08
error = 0000

ok

2019-09-07: vm4 - test the newly compiled ptouch-print

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --version
ptouch-print version -ne 248d81c by Dominic Radermacher

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print -version
usage: ./ptouch-print [options] <print-command(s)>
options:
    --font <file>        use font <file> or <name>
    --writepng <file>    instead of printing, write output to png file
                This currently works only when using
                EXACTLY ONE --text statement
print-commands:
    --image <file>        print the given image which must be a 2 color
                (black/white) png
    --text <text>        Print 1-4 lines of text.
                If the text contains spaces, use quotation marks
                around it.
    --cutmark        Print a mark where the tape should be cut
    --fontsize        Manually set fontsize
    --pad <n>        Add n pixels padding (blank tape)

with the printer off

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --info
No P-Touch printer found on USB (remember to put switch to position E)

after turning the printer on

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --info
PT-P700 found on USB bus 2, device 2
maximum printing width for this tape is 128px
media type = 01
media width = 24 mm
tape color = 01
text color = 08
error = 0000

good. Actual print test

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --text "linje 1" "linje 2" "linje 3" "linje 4"
PT-P700 found on USB bus 2, device 2
choosing font size=23

yes, it works.

2019-09-07: vm4 - ptouch-print has been updated, check out new source

tingo@kg-vm4:~/work/Brother/clarkewd$ git clone https://github.com/clarkewd/ptouch-print.git
Cloning into 'ptouch-print'...
remote: Enumerating objects: 300, done.
remote: Counting objects: 100% (300/300), done.
remote: Compressing objects: 100% (155/155), done.
remote: Total 300 (delta 157), reused 271 (delta 137), pack-reused 0
Receiving objects: 100% (300/300), 136.99 KiB | 730.00 KiB/s, done.
Resolving deltas: 100% (157/157), done.

then build it:

autogen

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./autogen.sh
Copying file ABOUT-NLS
Copying file config.rpath
Creating directory m4
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
configure.ac:28: installing './compile'
configure.ac:31: installing './config.guess'
configure.ac:31: installing './config.sub'
configure.ac:29: installing './install-sh'
configure.ac:30: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'

configure

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./configure --prefix=/usr
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gdImageStringFT in -lgd... yes
checking for libusb_init in -lusb-1.0... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes
checking for ssize_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for setlocale... yes
checking for strpbrk... yes
checking for strtol... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

make

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ make
make  all-recursive
make[1]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print'
Making all in po
make[2]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
test ! -f ./ptouch.pot || \
  test -z "de.gmo en.gmo" || make de.gmo en.gmo
make[3]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
rm -f de.gmo && /usr/bin/msgfmt -c --statistics --verbose -o de.gmo de.po
de.po: 26 translated messages, 10 untranslated messages.
rm -f en.gmo && /usr/bin/msgfmt -c --statistics --verbose -o en.gmo en.po
en.po: 36 translated messages.
make[3]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
touch stamp-po
make[2]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
make[2]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print'
depbase=`echo src/ptouch-print.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR='"/usr/share/locale"'  -g -std=c11 -Wall -Wextra -Wunused -O3 -I./include -fPIC -g -O2 -MT src/ptouch-print.o -MD -MP -MF $depbase.Tpo -c -o src/ptouch-print.o src/ptouch-print.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/libptouch.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR='"/usr/share/locale"'  -g -std=c11 -Wall -Wextra -Wunused -O3 -I./include -fPIC -g -O2 -MT src/libptouch.o -MD -MP -MF $depbase.Tpo -c -o src/libptouch.o src/libptouch.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc -g -std=c11 -Wall -Wextra -Wunused -O3 -I./include -fPIC -g -O2 -lusb-1.0 -lgd  -o ptouch-print src/ptouch-print.o src/libptouch.o  -lusb-1.0 -lgd
make[2]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print'
make[1]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print'

ok

2019-09-05: vm4 - I had to try this before going to bed; in src/libptouch.c change ptdevs[] entry for PT-P700 to

{0x04f9, 0x2061, "PT-P700", 128, FLAG_RASTER_PACKBITS},

and in function ptouch_rasterstart(ptouch_dev ptdev) change the command sequence to

char cmd[] = "\x1b\x69\x61\x01";

then recompile. And test:

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --info
PT-P700 found on USB bus 10, device 3
maximum printing width for this tape is 128px
media type = 01
media width = 24 mm
tape color = 01
text color = 08
error = 0000

info as before, try print

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --text "PT-P700 test"
PT-P700 found on USB bus 10, device 3
choosing font size=125
created new img width dimensionx 1025 * 128
copied part 2
enable PackBits mode

and it works! Nice!

2019-09-04: vm4 - try to print

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --text "PT-P700 test"
PT-P700 found on USB bus 10, device 2
choosing font size=125
created new img width dimensionx 1025 * 128
copied part 2
your printer unfortunately is not supported by this tool
the rasterdata a transferred in some other (unknown) format

as expected. Test '--info'

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --info
PT-P700 found on USB bus 10, device 3
maximum printing width for this tape is 128px
media type = 01
media width = 24 mm
tape color = 01
text color = 08
error = 0000

interesting.

2019-09-04: vm4 - try to run it version

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --version
ptouch-print version -ne 7fe3944 by Dominic Radermacher

help

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print --help
usage: ./ptouch-print [options] <print-command(s)>
options:
    --font <file>        use font <file> or <name>
    --writepng <file>    instead of printing, write output to png file
                This currently works only when using
                EXACTLY ONE --text statement
print-commands:
    --image <file>        print the given image which must be a 2 color
                (black/white) png
    --text <text>        Print 1-4 lines of text.
                If the text contains spaces, use quotation marks
                around it.
    --cutmark        Print a mark where the tape should be cut
    --fontsize        Manually set fontsize

nice. Now connect a printer and try with it

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print
PT-P700 found on USB bus 10, device 2
libusb_open error :LIBUSB_ERROR_ACCESS

ok, with sudo then?

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ sudo ./ptouch-print
PT-P700 found on USB bus 10, device 2

yes, so I need some udevadm magic here

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ lsusb
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 011 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 002: ID 04f9:2061 Brother Industries, Ltd PT-P700 P-touch Label Printer
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 05e3:0745 Genesys Logic, Inc. Logilink CR0012
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PT-P700 is 04f9:2061.

Wait, the device is already claimed by the 'lp' group (it's a printer). Instead, make my user a member of lp

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ sudo usermod -a -G lp tingo
tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ groups tingo
tingo : tingo adm lp cdrom floppy sudo audio dip video plugdev netdev lpadmin scanner bsdusers libvirt libvirt-qemu

then logout / login, re-test

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./ptouch-print
PT-P700 found on USB bus 10, device 2

good.

2019-09-04: vm4 - try to compile it

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ make
make  all-recursive
make[1]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print'
Making all in po
make[2]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
test ! -f ./ptouch.pot || \
  test -z "de.gmo en.gmo" || make de.gmo en.gmo
make[3]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
rm -f de.gmo && /usr/bin/msgfmt -c --statistics --verbose -o de.gmo de.po
de.po: 26 translated messages, 10 untranslated messages.
rm -f en.gmo && /usr/bin/msgfmt -c --statistics --verbose -o en.gmo en.po
en.po: 36 translated messages.
make[3]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
touch stamp-po
make[2]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print/po'
make[2]: Entering directory '/home/tingo/work/Brother/clarkewd/ptouch-print'
depbase=`echo src/ptouch-print.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR='"/usr/share/locale"'  -g -std=c11 -Wall -Wextra -Wunused -O3 -I./include -fPIC -g -O2 -MT src/ptouch-print.o -MD -MP -MF $depbase.Tpo -c -o src/ptouch-print.o src/ptouch-print.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/libptouch.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR='"/usr/share/locale"'  -g -std=c11 -Wall -Wextra -Wunused -O3 -I./include -fPIC -g -O2 -MT src/libptouch.o -MD -MP -MF $depbase.Tpo -c -o src/libptouch.o src/libptouch.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc -g -std=c11 -Wall -Wextra -Wunused -O3 -I./include -fPIC -g -O2 -lusb-1.0 -lgd  -o ptouch-print src/ptouch-print.o src/libptouch.o  -lusb-1.0 -lgd
make[2]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print'
make[1]: Leaving directory '/home/tingo/work/Brother/clarkewd/ptouch-print'

ok

2019-09-04: vm4 - try to configure it

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./autogen.sh
Copying file ABOUT-NLS
Copying file config.rpath
Creating directory m4
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
configure.ac:28: installing './compile'
configure.ac:31: installing './config.guess'
configure.ac:31: installing './config.sub'
configure.ac:29: installing './install-sh'
configure.ac:30: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: error: required file './README' not found
Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1

fix that

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ touch README

re-try

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./autogen.sh
Copying file config.rpath
configure.ac:31: installing './config.guess'
configure.ac:31: installing './config.sub'

next is configure

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ ./configure --prefix=/usr
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gdImageStringFT in -lgd... yes
checking for libusb_init in -lusb-1.0... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes
checking for ssize_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for setlocale... yes
checking for strpbrk... yes
checking for strtol... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

ok

2019-09-04: vm4 - install required packages: autoconf, automake, autopoint, libgd-dev,

tingo@kg-vm4:~/work/Brother/clarkewd$ sudo apt install autoconf automake
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  autotools-dev
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc libtool gettext
The following NEW packages will be installed:
  autoconf automake autotools-dev
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,189 kB of archives.
After this operation, 3,900 kB of additional disk space will be used.
[..]
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
Processing triggers for man-db (2.8.5-2) ...

autopoint

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ sudo apt install autopoint
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  autopoint
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 434 kB of archives.
After this operation, 466 kB of additional disk space will be used.
[..]
Setting up autopoint (0.19.8.1-9) ...
Processing triggers for man-db (2.8.5-2) ...

libgd-dev

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ sudo apt install libgd-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  freetype2-doc libexpat1-dev libfontconfig1-dev libfreetype6-dev libice-dev libjbig-dev libjpeg-dev libjpeg62-turbo-dev
  liblzma-dev libpng-dev libpng-tools libpthread-stubs0-dev libsm-dev libtiff-dev libtiffxx5 libvpx-dev libx11-dev libxau-dev
  libxcb1-dev libxdmcp-dev libxpm-dev libxt-dev pkg-config uuid-dev x11proto-core-dev x11proto-dev xorg-sgml-doctools xtrans-dev
  zlib1g-dev
Suggested packages:
  libice-doc liblzma-doc libsm-doc libx11-doc libxcb-doc libxt-doc
The following NEW packages will be installed:
  freetype2-doc libexpat1-dev libfontconfig1-dev libfreetype6-dev libgd-dev libice-dev libjbig-dev libjpeg-dev
  libjpeg62-turbo-dev liblzma-dev libpng-dev libpng-tools libpthread-stubs0-dev libsm-dev libtiff-dev libtiffxx5 libvpx-dev
  libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxpm-dev libxt-dev pkg-config uuid-dev x11proto-core-dev x11proto-dev
  xorg-sgml-doctools xtrans-dev zlib1g-dev
0 upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,084 kB of archives.
After this operation, 26.5 MB of additional disk space will be used.
[..]
Setting up libgd-dev:amd64 (2.2.5-5.2) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...

libusb-dev

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ sudo apt install libusb-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  libusb-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.9 kB of archives.
After this operation, 237 kB of additional disk space will be used.
[..]
Setting up libusb-dev (2:0.1.12-32) ...
Processing triggers for man-db (2.8.5-2) ...

libusb-1.0-0-dev

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ sudo apt install libusb-1.0-0-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libusb-1.0-doc
The following NEW packages will be installed:
  libusb-1.0-0-dev libusb-1.0-doc
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 256 kB of archives.
After this operation, 1,803 kB of additional disk space will be used.
[..]
Setting up libusb-1.0-0-dev:amd64 (2:1.0.22-2) ...

gettext

tingo@kg-vm4:~/work/Brother/clarkewd/ptouch-print$ sudo apt install gettext
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Suggested packages:
  gettext-doc libasprintf-dev libgettextpo-dev
The following NEW packages will be installed:
  gettext
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,303 kB of archives.
After this operation, 6,752 kB of additional disk space will be used.
Get:1 http://ftp.no.debian.org/debian buster/main amd64 gettext amd64 0.19.8.1-9 [1,303 kB]
Fetched 1,303 kB in 0s (9,544 kB/s)
Selecting previously unselected package gettext.
(Reading database ... 139037 files and directories currently installed.)
Preparing to unpack .../gettext_0.19.8.1-9_amd64.deb ...
Unpacking gettext (0.19.8.1-9) ...
Setting up gettext (0.19.8.1-9) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
Processing triggers for libc-bin (2.28-10) ...

2019-09-04: vm4 - try to compile clarkewd/ptouch-print first make a place for it:

tingo@kg-vm4:~/work/Brother/clarkewd$ pwd
/home/tingo/work/Brother/clarkewd

clone the repository

tingo@kg-vm4:~/work/Brother/clarkewd$ git clone https://github.com/clarkewd/ptouch-print.git
Cloning into 'ptouch-print'...
remote: Enumerating objects: 241, done.
remote: Counting objects: 100% (241/241), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 241 (delta 125), reused 234 (delta 118), pack-reused 0
Receiving objects: 100% (241/241), 126.94 KiB | 702.00 KiB/s, done.
Resolving deltas: 100% (125/125), done.

ok