mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-09-15 14:17:33 +00:00
ef6e6f492542890c1bbe8e029c6202c96a06ae50
On macOS with Homebrew's argp-standalone, Findargp's link test for argp_parse fails with an undefined strchrnul, because libargp.a itself references that GNU extension and the platform has none. The module then stops with "does not have a symbol named argp_parse", which is not what is wrong. Probe for strchrnul first (with _GNU_SOURCE, so glibc answers correctly). Where it exists, the test is unchanged. Where it is missing, run the same argp_parse test with a local definition of strchrnul, and have ptouch-print supply that definition for the real build. On glibc nothing changes: the probe finds strchrnul and the original test runs. Checked on Debian stable in the same session.
About: ptouch-print is a command line tool to print labels on Brother P-Touch printers on Linux. There is no need to install the printer via CUPS, the printer is accessed directly via libusb. The tool was written for and tested with the PT-2430PC, but meanwhile is also used with others (see "ptouch-print --list-supported") Maybe others work too (please report USB VID and PID so I can include support for further models, too). Further info can be found at: https://dominic.familie-radermacher.ch/projekte/ptouch-print/ Compile instructions: ./compile.sh Note: Dear visitor, currently I have absolutely no time for improvements on this project (my free time currently is about one or two hours PER MONTH). Therefore, I can not look at suggestions about improvements.
Languages
C
75.3%
CMake
19.2%
Roff
5.4%