Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing on Raspbian 10 #11

Open
jx3v opened this issue Jul 27, 2021 · 1 comment
Open

Issue installing on Raspbian 10 #11

jx3v opened this issue Jul 27, 2021 · 1 comment

Comments

@jx3v
Copy link

jx3v commented Jul 27, 2021

@samlown new to CUPS (as well as Linux) and I'm trying to create a print server using a RaspberryPi 3 B+ (Raspbian v10) for several Toshiba TEC label printers (without the network LAN adapter). The printers are attached to the RPi using Parallel Port to USB adapter cables. Naturally, these TEC printers do not appear under Local so here's hoping that installing these drivers fixes that.

I'm stuck trying to install on the RPi. I've cloned rastertotpcl to my Pi and executed the following commands as per the Installation instructions from inside this directory. I'm using CUPS version 2.2.10

make
sudo make install

However, this is the output and I'm not sure this is correct.

pi@raspberrypi:~/Downloads/rastertotpcl-master $ make
for d in src; do (cd $d; make all); done
make[1]: Entering directory '/home/pi/Downloads/rastertotpcl-master/src'
cc -lcupsimage    rastertotpcl.c   -o rastertotpcl
rastertotpcl.c:86:12: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void Setup(ppd_file_t *ppd);
            ^~~~~~~~~~
            cups_file_t
rastertotpcl.c:87:16: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void StartPage(ppd_file_t *ppd, cups_page_header2_t *header);
                ^~~~~~~~~~
                cups_file_t
rastertotpcl.c:88:14: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void EndPage(ppd_file_t *ppd, cups_page_header2_t *header);
              ^~~~~~~~~~
              cups_file_t
rastertotpcl.c:90:17: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void OutputLine(ppd_file_t *ppd, cups_page_header2_t *header, int y);
                 ^~~~~~~~~~
                 cups_file_t
rastertotpcl.c:92:20: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void TOPIXCompress(ppd_file_t *ppd, cups_page_header2_t *header, int y);
                    ^~~~~~~~~~
                    cups_file_t
rastertotpcl.c:93:32: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void TOPIXCompressOutputBuffer(ppd_file_t *ppd, cups_page_header2_t *header, int y);
                                ^~~~~~~~~~
                                cups_file_t
rastertotpcl.c:98:12: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void Setup(ppd_file_t *ppd)   /* I - PPD file */
            ^~~~~~~~~~
            cups_file_t
rastertotpcl.c:195:11: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 StartPage(ppd_file_t         *ppd, /* I - PPD file */
           ^~~~~~~~~~
           cups_file_t
rastertotpcl.c:426:9: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 EndPage(ppd_file_t *ppd,  /* I - PPD file */
         ^~~~~~~~~~
         cups_file_t
rastertotpcl.c:654:12: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 OutputLine(ppd_file_t           *ppd,     /* I - PPD file */
            ^~~~~~~~~~
            cups_file_t
rastertotpcl.c:674:15: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 TOPIXCompress(ppd_file_t         *ppd,     /* I - PPD file */
               ^~~~~~~~~~
               cups_file_t
rastertotpcl.c:764:32: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
 void TOPIXCompressOutputBuffer(ppd_file_t          *ppd,    /* PPD file */
                                ^~~~~~~~~~
                                cups_file_t
rastertotpcl.c: In function ‘main’:
rastertotpcl.c:812:3: error: unknown type name ‘ppd_file_t’; did you mean ‘cups_file_t’?
   ppd_file_t          *ppd;   /* PPD file */
   ^~~~~~~~~~
   cups_file_t
rastertotpcl.c:820:3: warning: implicit declaration of function ‘setbuf’; did you mean ‘setgid’? [-Wimplicit-function-declaration]
   setbuf(stderr, NULL);
   ^~~~~~
   setgid
rastertotpcl.c:820:10: error: ‘stderr’ undeclared (first use in this function)
   setbuf(stderr, NULL);
          ^~~~~~
rastertotpcl.c:820:10: note: ‘stderr’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
rastertotpcl.c:53:1:
+#include <stdio.h>

rastertotpcl.c:820:10:
   setbuf(stderr, NULL);
          ^~~~~~
rastertotpcl.c:820:10: note: each undeclared identifier is reported only once for each function it appears in
rastertotpcl.c:831:5: warning: implicit declaration of function ‘fputs’ [-Wimplicit-function-declaration]
     fputs("ERROR: rastertotec job-id user title copies options [file]\n", stderr);
     ^~~~~
rastertotpcl.c:842:7: warning: implicit declaration of function ‘perror’; did you mean ‘herror’? [-Wimplicit-function-declaration]
       perror("ERROR: Unable to open raster file - ");
       ^~~~~~
       herror
rastertotpcl.c:857:14: warning: implicit declaration of function ‘ppdOpenFile’ [-Wimplicit-function-declaration]
   if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL)
              ^~~~~~~~~~~
rastertotpcl.c:857:12: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL)
            ^
rastertotpcl.c:859:5: warning: implicit declaration of function ‘ppdMarkDefaults’; did you mean ‘cupsLangDefault’? [-Wimplicit-function-declaration]
     ppdMarkDefaults(ppd);
     ^~~~~~~~~~~~~~~
     cupsLangDefault
rastertotpcl.c:860:5: warning: implicit declaration of function ‘cupsMarkOptions’; did you mean ‘cupsParseOptions’? [-Wimplicit-function-declaration]
     cupsMarkOptions(ppd, num_options, options);
     ^~~~~~~~~~~~~~~
     cupsParseOptions
rastertotpcl.c:871:3: warning: implicit declaration of function ‘Setup’ [-Wimplicit-function-declaration]
   Setup(ppd);
   ^~~~~
rastertotpcl.c:885:5: warning: implicit declaration of function ‘fprintf’ [-Wimplicit-function-declaration]
     fprintf(stderr, "PAGE: %d 1\n", Page);
     ^~~~~~~
rastertotpcl.c:885:5: warning: incompatible implicit declaration of built-in function ‘fprintf’
rastertotpcl.c:885:5: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
rastertotpcl.c:890:5: warning: implicit declaration of function ‘StartPage’ [-Wimplicit-function-declaration]
     StartPage(ppd, &header);
     ^~~~~~~~~
rastertotpcl.c:913:7: warning: implicit declaration of function ‘OutputLine’ [-Wimplicit-function-declaration]
       OutputLine(ppd, &header, y);
       ^~~~~~~~~~
rastertotpcl.c:919:5: warning: implicit declaration of function ‘EndPage’ [-Wimplicit-function-declaration]
     EndPage(ppd, &header);
     ^~~~~~~
rastertotpcl.c:934:3: warning: implicit declaration of function ‘ppdClose’; did you mean ‘httpClose’? [-Wimplicit-function-declaration]
   ppdClose(ppd);
   ^~~~~~~~
   httpClose
make[1]: *** [<builtin>: rastertotpcl] Error 1
make[1]: Leaving directory '/home/pi/Downloads/rastertotpcl-master/src'
make: [Makefile:5: all] Error 2 (ignored)
pi@raspberrypi:~/Downloads/rastertotpcl-master $ sudo make install
for d in src; do (cd $d; make install); done
make[1]: Entering directory '/home/pi/Downloads/rastertotpcl-master/src'
if test ! -d /usr/share/ppd/rastertotpcl; then mkdir /usr/share/ppd/rastertotpcl; fi
cp ppd/* /usr/share/ppd/rastertotpcl
cp: cannot stat 'ppd/*': No such file or directory
make[1]: *** [Makefile:18: install] Error 1
make[1]: Leaving directory '/home/pi/Downloads/rastertotpcl-master/src'
make: [Makefile:8: install] Error 2 (ignored)
pi@raspberrypi:~/Downloads/rastertotpcl-master $

Sympathy for a n00b. I've never compiled anything before...

@jx3v jx3v changed the title How do I compile and install on RaspberryPi? Issue installing on Raspbian 10 Jul 27, 2021
@kayvax
Copy link

kayvax commented Mar 15, 2022

I encountered the same problem. It seems new CUPS version is the culprit and without rewrite for it, this driver will not compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants