Giter Club home page Giter Club logo

rastertotpcl's Introduction

Toshiba TEC TPCL CUPS Raster Driver - rastertotpcl

Introduction

A driver to Toshiba TEC Label printers supporting the TEC Printer Command Language or TPCL, version 2.

Converts CUPS Raster graphics along with a supported PPD file into a TPCL graphic ready to be printed directly. As of yet, there is no support for sending text to the driver.

Conversion includes support for the TPCL TOPIX compression algorithm for reliable and fast delivery of print jobs to the printer. Raw 8-bit graphics direct from the raster driver are also supported but not recommended.

This document and source for the driver can be found at:

http://github.com/samlown/rastertotpcl

Any issues or code you'd like to contribute can be performed there.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

History

2010-07-10 - PPD Fixes

PPDC compilation errors discovered in Ubuntu 10.10 and resolution setting was being ignored.

2010-05-27 - Initial release

Converted original restertotec file into rastertotpcl. Added support for TOPIX compression. Now using CUPS raster header 2 for finer control of page sizes. Refactoring.

Supported Printers

Support for the following printers is included by the PPD files:

  • Toshiba TEC B-SA4G/T (tecbas4.ppd)
  • Toshiba TEC B-SX4 (tecbsx4.ppd)
  • Toshiba TEC B-SX5 (tecbsx5.ppd)
  • Toshiba TEC B-SX6 (tecbsx6.ppd)
  • Toshiba TEC B-SX8 (tecbsx8.ppd)
  • Toshiba TEC B-852R (tecb852r.ppd)
  • Toshiba TEC B-SV4D (tecbsv4d.ppd)
  • Toshiba TEC B-SV4T (tecbsv4t.ppd)
  • Toshiba TEC B-EV4D-GS14 (tecbev4d.ppd)
  • Toshiba TEC B-EV4T-GS14 (tecbev4t.ppd)

There is little variation between these printers other than resolutions, speeds, and accepted media types, so new printer models can be tested or added easily.

As of May 2010, thorough testing has only been performed on the B-SX4 model. Please get in touch if you test the drivers on other printers with success.

Instalation

The CUPS image development headers are required before compilation. In Ubuntu, these can be installed with:

sudo apt-get install libcupsimage2-dev

The easiest way to install from source is to run the following from the base directory:

make
sudo make install

This will install the filter and PPD files in the standard CUPS filter and PPD directories and show them in the CUPS printer selection screens.

TODO

  • Add support for RFID.

Authors

rastertotpcl is based on the rastertotec driver written by Patick Kong (SKE s.a.r.l). rastertotec is based on the rastertolabel driver included with the CUPS printing system by Easy Software Products. Packaing of rastertotpcl and TOPIX compression was added by Sam Lown (www.samlown.com).

rastertotpcl's People

Contributors

samlown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rastertotpcl's Issues

Install it on Mac OS?

Hi,Sam:
I am a beginner programmer of Mac OS , recently I have a project to develop printing program for Toshiba B-EX4T2.
Can your driver be install it on Mac OS , and how to install it?
Thanks!

Send BMP image with SG command in TPCL

I am currently developing a connector for a Toshiba printer. The plugin is written in Python and everything seems to work fine. However I can't send BMP images. In the toshiba manuals it is simply described that the SG command should be sent as follows:

{SG;x,y,width,height,2(BMP mode),graphic_data|}

Any graphic_data you send is taken as a command error. I've tried sending the image with and without a header, but it doesn't seem to work.

I did not find information about it, so I ask this question here. Thanks.

PS: sorry for my bad english

Issue installing on Raspbian 10

@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...

ubuntu 12.04 installation

I tried to install rastertotpcl to xubuntu 12.04, but I got errors when I run make:

make[1]: Entering directory /home/m2pagmar/TEC/rastertotpcl-master/src' cc -lcupsimage rastertotpcl.c -o rastertotpcl /tmp/ccvL5Vos.o: In functionSetup':
rastertotpcl.c:(.text+0x5f): undefined reference to ppdFindMarkedChoice' rastertotpcl.c:(.text+0x11a): undefined reference toppdFindMarkedChoice'
......
......

Here is the log from my terminal.

Thanks in advance for your help.

Marco

m2pagmar@mpag-hp:$ sudo apt-get install libcupsimage2-dev
[sudo] password for m2pagmar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libstlport4.6ldbl linux-headers-3.2.0-29-generic linux-headers-3.2.0-29
libreoffice-emailmerge mythes-en-au openoffice.org-hyphenation hyphen-en-us
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
comerr-dev krb5-multidev libcups2-dev libgcrypt11 libgcrypt11-dev
libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4
libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libkadm5clnt-mit8
libkadm5srv-mit8 libkdb5-6 libkrb5-dev libp11-kit-dev libtasn1-3-dev
libtiff4-dev libtiffxx0c2
Suggested packages:
krb5-doc rng-tools libgcrypt11-doc gnutls-doc gnutls-bin krb5-user
The following NEW packages will be installed:
comerr-dev krb5-multidev libcups2-dev libcupsimage2-dev libgcrypt11-dev
libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4
libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libkadm5clnt-mit8
libkadm5srv-mit8 libkdb5-6 libkrb5-dev libp11-kit-dev libtasn1-3-dev
libtiff4-dev libtiffxx0c2
The following packages will be upgraded:
libgcrypt11
1 upgraded, 21 newly installed, 0 to remove and 113 not upgraded.
Need to get 3,014 kB of archives.
After this operation, 9,482 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libgcrypt11 i386 1.5.0-3ubuntu0.2 [281 kB]
Get:2 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libgssrpc4 i386 1.10+dfsg
beta1-2ubuntu0.3 [57.7 kB]
Get:3 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libkadm5clnt-mit8 i386 1.10+dfsgbeta1-2ubuntu0.3 [38.4 kB]
Get:4 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libkdb5-6 i386 1.10+dfsg
beta1-2ubuntu0.3 [37.7 kB]
Get:5 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libkadm5srv-mit8 i386 1.10+dfsgbeta1-2ubuntu0.3 [54.5 kB]
Get:6 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-openssl27 i386 2.12.14-5ubuntu3.4 [21.6 kB]
Get:7 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libtiffxx0c2 i386 3.9.5-2ubuntu1.5 [6,768 B]
Get:8 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutlsxx27 i386 2.12.14-5ubuntu3.4 [23.4 kB]
Get:9 http://it.archive.ubuntu.com/ubuntu/ precise/main comerr-dev i386 2.1-1.42-1ubuntu2 [42.4 kB]
Get:10 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main krb5-multidev i386 1.10+dfsg
beta1-2ubuntu0.3 [125 kB]
Get:11 http://it.archive.ubuntu.com/ubuntu/ precise/main libgpg-error-dev i386 1.10-2ubuntu1 [23.1 kB]
Get:12 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libgcrypt11-dev i386 1.5.0-3ubuntu0.2 [361 kB]
Get:13 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3-dev i386 2.10-1ubuntu1.1 [355 kB]
Get:14 http://it.archive.ubuntu.com/ubuntu/ precise/main libp11-kit-dev i386 0.12-2ubuntu1 [45.6 kB]
Get:15 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-dev i386 2.12.14-5ubuntu3.4 [530 kB]
Get:16 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libkrb5-dev i386 1.10+dfsgbeta1-2ubuntu0.3 [11.0 kB]
Get:17 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libcups2-dev i386 1.5.3-0ubuntu8 [239 kB]
Get:18 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libjpeg-turbo8-dev i386 1.1.90+svn733-0ubuntu4.1 [414 kB]
Get:19 http://it.archive.ubuntu.com/ubuntu/ precise/main libjpeg8-dev i386 8c-2ubuntu7 [1,544 B]
Get:20 http://it.archive.ubuntu.com/ubuntu/ precise/main libjpeg-dev all 8c-2ubuntu7 [1,536 B]
Get:21 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libtiff4-dev i386 3.9.5-2ubuntu1.5 [277 kB]
Get:22 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main libcupsimage2-dev i386 1.5.3-0ubuntu8 [65.9 kB]
Fetched 3,014 kB in 4s (636 kB/s)
(Reading database ... 438977 files and directories currently installed.)
Preparing to replace libgcrypt11 1.5.0-3ubuntu0.1 (using .../libgcrypt11_1.5.0-3ubuntu0.2_i386.deb) ...
Unpacking replacement libgcrypt11 ...
Selecting previously unselected package libgssrpc4.
Unpacking libgssrpc4 (from .../libgssrpc4_1.10+dfsg
beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkadm5clnt-mit8.
Unpacking libkadm5clnt-mit8 (from .../libkadm5clnt-mit8_1.10+dfsgbeta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkdb5-6.
Unpacking libkdb5-6 (from .../libkdb5-6_1.10+dfsg
beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkadm5srv-mit8.
Unpacking libkadm5srv-mit8 (from .../libkadm5srv-mit8_1.10+dfsgbeta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libgnutls-openssl27.
Unpacking libgnutls-openssl27 (from .../libgnutls-openssl27_2.12.14-5ubuntu3.4_i386.deb) ...
Selecting previously unselected package libtiffxx0c2.
Unpacking libtiffxx0c2 (from .../libtiffxx0c2_3.9.5-2ubuntu1.5_i386.deb) ...
Selecting previously unselected package libgnutlsxx27.
Unpacking libgnutlsxx27 (from .../libgnutlsxx27_2.12.14-5ubuntu3.4_i386.deb) ...
Selecting previously unselected package comerr-dev.
Unpacking comerr-dev (from .../comerr-dev_2.1-1.42-1ubuntu2_i386.deb) ...
Selecting previously unselected package krb5-multidev.
Unpacking krb5-multidev (from .../krb5-multidev_1.10+dfsg
beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libgpg-error-dev.
Unpacking libgpg-error-dev (from .../libgpg-error-dev_1.10-2ubuntu1_i386.deb) ...
Selecting previously unselected package libgcrypt11-dev.
Unpacking libgcrypt11-dev (from .../libgcrypt11-dev_1.5.0-3ubuntu0.2_i386.deb) ...
Selecting previously unselected package libtasn1-3-dev.
Unpacking libtasn1-3-dev (from .../libtasn1-3-dev_2.10-1ubuntu1.1_i386.deb) ...
Selecting previously unselected package libp11-kit-dev.
Unpacking libp11-kit-dev (from .../libp11-kit-dev_0.12-2ubuntu1_i386.deb) ...
Selecting previously unselected package libgnutls-dev.
Unpacking libgnutls-dev (from .../libgnutls-dev_2.12.14-5ubuntu3.4_i386.deb) ...
Selecting previously unselected package libkrb5-dev.
Unpacking libkrb5-dev (from .../libkrb5-dev_1.10+dfsgbeta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libcups2-dev.
Unpacking libcups2-dev (from .../libcups2-dev_1.5.3-0ubuntu8_i386.deb) ...
Selecting previously unselected package libjpeg-turbo8-dev.
Unpacking libjpeg-turbo8-dev (from .../libjpeg-turbo8-dev_1.1.90+svn733-0ubuntu4.1_i386.deb) ...
Selecting previously unselected package libjpeg8-dev.
Unpacking libjpeg8-dev (from .../libjpeg8-dev_8c-2ubuntu7_i386.deb) ...
Selecting previously unselected package libjpeg-dev.
Unpacking libjpeg-dev (from .../libjpeg-dev_8c-2ubuntu7_all.deb) ...
Selecting previously unselected package libtiff4-dev.
Unpacking libtiff4-dev (from .../libtiff4-dev_3.9.5-2ubuntu1.5_i386.deb) ...
Selecting previously unselected package libcupsimage2-dev.
Unpacking libcupsimage2-dev (from .../libcupsimage2-dev_1.5.3-0ubuntu8_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for install-info ...
Setting up libgcrypt11 (1.5.0-3ubuntu0.2) ...
Setting up libgssrpc4 (1.10+dfsg
beta1-2ubuntu0.3) ...
Setting up libkadm5clnt-mit8 (1.10+dfsgbeta1-2ubuntu0.3) ...
Setting up libkdb5-6 (1.10+dfsg
beta1-2ubuntu0.3) ...
Setting up libkadm5srv-mit8 (1.10+dfsgbeta1-2ubuntu0.3) ...
Setting up libgnutls-openssl27 (2.12.14-5ubuntu3.4) ...
Setting up libtiffxx0c2 (3.9.5-2ubuntu1.5) ...
Setting up libgnutlsxx27 (2.12.14-5ubuntu3.4) ...
Setting up comerr-dev (2.1-1.42-1ubuntu2) ...
Setting up krb5-multidev (1.10+dfsg
beta1-2ubuntu0.3) ...
Setting up libgpg-error-dev (1.10-2ubuntu1) ...
Setting up libgcrypt11-dev (1.5.0-3ubuntu0.2) ...
Setting up libtasn1-3-dev (2.10-1ubuntu1.1) ...
Setting up libp11-kit-dev (0.12-2ubuntu1) ...
Setting up libgnutls-dev (2.12.14-5ubuntu3.4) ...
Setting up libkrb5-dev (1.10+dfsg~beta1-2ubuntu0.3) ...
Setting up libcups2-dev (1.5.3-0ubuntu8) ...
Setting up libjpeg-turbo8-dev (1.1.90+svn733-0ubuntu4.1) ...
Setting up libjpeg8-dev (8c-2ubuntu7) ...
Setting up libjpeg-dev (8c-2ubuntu7) ...
Setting up libtiff4-dev (3.9.5-2ubuntu1.5) ...
Setting up libcupsimage2-dev (1.5.3-0ubuntu8) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

m2pagmar@mpag-hp:~$ cd /home/m2pagmar/TEC/rastertotpcl-master

m2pagmar@mpag-hp:~/TEC/rastertotpcl-master$ ls
LICENSE Makefile po README.md src

m2pagmar@mpag-hp:/TEC/rastertotpcl-master$ make
for d in src; do (cd $d; make all); done
make[1]: Entering directory /home/m2pagmar/TEC/rastertotpcl-master/src' cc -lcupsimage rastertotpcl.c -o rastertotpcl /tmp/ccvL5Vos.o: In functionSetup':
rastertotpcl.c:(.text+0x5f): undefined reference to ppdFindMarkedChoice' rastertotpcl.c:(.text+0x11a): undefined reference toppdFindMarkedChoice'
rastertotpcl.c:(.text+0x145): undefined reference to ppdFindMarkedChoice' rastertotpcl.c:(.text+0x215): undefined reference toppdFindMarkedChoice'
rastertotpcl.c:(.text+0x240): undefined reference to ppdFindMarkedChoice' /tmp/ccvL5Vos.o:rastertotpcl.c:(.text+0x310): more undefined references toppdFindMarkedChoice' follow
/tmp/ccvL5Vos.o: In function EndPage': rastertotpcl.c:(.text+0xf8d): undefined reference toppdIsMarked'
rastertotpcl.c:(.text+0xfb8): undefined reference to ppdIsMarked' rastertotpcl.c:(.text+0xfe0): undefined reference toppdIsMarked'
rastertotpcl.c:(.text+0x1008): undefined reference to ppdIsMarked' rastertotpcl.c:(.text+0x1030): undefined reference toppdIsMarked'
rastertotpcl.c:(.text+0x1075): undefined reference to ppdFindMarkedChoice' rastertotpcl.c:(.text+0x1188): undefined reference toppdFindMarkedChoice'
rastertotpcl.c:(.text+0x1309): undefined reference to ppdFindMarkedChoice' /tmp/ccvL5Vos.o: In functionTOPIXCompress':
rastertotpcl.c:(.text+0x14ce): undefined reference to ceil' /tmp/ccvL5Vos.o: In functionmain':
rastertotpcl.c:(.text+0x1978): undefined reference to cupsRasterOpen' rastertotpcl.c:(.text+0x199d): undefined reference tocupsParseOptions'
rastertotpcl.c:(.text+0x19b5): undefined reference to ppdOpenFile' rastertotpcl.c:(.text+0x19cc): undefined reference toppdMarkDefaults'
rastertotpcl.c:(.text+0x19e8): undefined reference to cupsMarkOptions' rastertotpcl.c:(.text+0x1af9): undefined reference tocupsRasterReadPixels'
rastertotpcl.c:(.text+0x1b6e): undefined reference to cupsRasterReadHeader2' rastertotpcl.c:(.text+0x1b85): undefined reference tocupsRasterClose'
rastertotpcl.c:(.text+0x1ba4): undefined reference to ppdClose' rastertotpcl.c:(.text+0x1bb8): undefined reference tocupsFreeOptions'
collect2: ld returned 1 exit status
make[1]: *** [rastertotpcl] Error 1
make[1]: Leaving directory /home/m2pagmar/TEC/rastertotpcl-master/src' make: [all] Error 2 (ignored) m2pagmar@mpag-hp:~/TEC/rastertotpcl-master$ sudo make install for d in src; do (cd $d; make install); done make[1]: Entering directory/home/m2pagmar/TEC/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]: *** [install] Error 1 make[1]: Leaving directory/home/m2pagmar/TEC/rastertotpcl-master/src'
make: [install] Error 2 (ignored)
m2pagmar@mpag-hp:
/TEC/rastertotpcl-master$

openSUSE install fails

@samlown I'm trying to use this on openSUSE leap 15.0 but it fails to install.

it returns:

make[1]: cc: Command not found
make[1]: *** [<builtin>: rastertotpcl] Error 127

if i use Yast to print a test page i get this:

printer TEC_B-SV4D is idle.  enabled since Tue Jul 10 19:16:22 2018
	File "/usr/lib/cups/filter/rastertotpcl" not available: No such file or directory

I've already installed libcupsimage2

Is there another way?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.