Compiling and using on Debian/amd64

Reports of any bugs or issues found when using the Public Domain PrinterToPDF software.
Post Reply
pmrvintagetech
Posts: 1
Joined: Sun Sep 25, 2022 10:57 pm

Compiling and using on Debian/amd64

Post by pmrvintagetech »

I am hoping PrinterToPDF will prove to be what I need. I have a number of old programs (for DOS and also for the Sinclair ZX Spectrum family of computers) that produce Epson printer output that I can successfully capture from virtual machines/emulators. I am looking for a way to print this output on a modern printer (one quite happy to be fed PDF). It seems the Makefile assumes compilation on a Raspberry Pi, rather than an amd64 architecture system, and despite removing the two unsupported CFLAGS, the resultant binary just fills my screen with messages of this ilk:

mv: cannot stat '/home/phil/4100.raw': No such file or directory
mv: cannot stat '/home/phil/page4100.pdf': No such file or directory
mv: cannot stat '/home/phil/page4101.bmp': No such file or directory
mv: cannot stat '/home/phil/4101.raw': No such file or directory

Is what I am trying to do viable? Where am I going wrong? I tried a command line as per the default shown.
RWAP
Site Admin
Posts: 402
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: Compiling and using on Debian/amd64

Post by RWAP »

The PrinterToPDF emulator source code is designed for users to build on this to create their own projects. We have never used it as is, as it is the Epson emulation engine which sits in the commercial Retro-Printer project.

The first step is to check that you have a /home/phil/ directory and that it is writeable. I think what you will find is the error is to do with the mv command in reduce_pages() in https://github.com/RWAP/PrinterToPDF/blob/master/dir.c

This attempts to find the lowest possible page number to use in the output - if you have a lot of files in /home/phil/ already then it will try to make room to restart the page numbering. You do not say what command line you are using, but I would suggest the -o PATH is set to a clean directory somewhere (such as /home/phil/data/)
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
Post Reply