PDA

View Full Version : [ubuntu] Help needed compiling a printer driver



kamitsukai
May 28th, 2009, 05:02 PM
I need some help compiling the following printer driver for my samsung spp-2020 photo printer:D


http://openprinting.org/show_printer.cgi?recnum=Samsung-SPP-2020

so far I've tried comipiling but I get the following error (I'm copy & Pasting from the instructions on the page above)


carl@carl-desktop ~/Desktop/rastertospp-1.1 $ gcc -O2 -Wall -lcupsimage -o rastertospp rastertospp.c
In file included from rastertospp.c:12:
driver.h:39:25: error: cups/cups.h: No such file or directory
driver.h:40:27: error: cups/raster.h: No such file or directory
In file included from rastertospp.c:12:
driver.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
driver.h:159: error: expected ‘)’ before ‘*’ token
driver.h:193: error: expected ‘)’ before ‘*’ token
driver.h:218: error: expected ‘)’ before ‘*’ token
rastertospp.c:72: error: expected ‘)’ before ‘*’ token
rastertospp.c:75: error: expected ‘)’ before ‘*’ token
rastertospp.c:76: error: expected ‘)’ before ‘*’ token
rastertospp.c:77: error: expected ‘)’ before ‘*’ token
rastertospp.c:82: error: expected ‘)’ before ‘*’ token
rastertospp.c:118: error: expected ‘)’ before ‘*’ token
rastertospp.c:134: error: expected ‘)’ before ‘*’ token
rastertospp.c:180: error: expected ‘)’ before ‘*’ token
rastertospp.c: In function ‘main’:
rastertospp.c:209: error: ‘cups_raster_t’ undeclared (first use in this function)
rastertospp.c:209: error: (Each undeclared identifier is reported only once
rastertospp.c:209: error: for each function it appears in.)
rastertospp.c:209: error: ‘ras’ undeclared (first use in this function)
rastertospp.c:210: error: ‘cups_page_header_t’ undeclared (first use in this function)
rastertospp.c:210: error: expected ‘;’ before ‘header’
rastertospp.c:212: error: ‘ppd_file_t’ undeclared (first use in this function)
rastertospp.c:212: error: ‘ppd’ undeclared (first use in this function)
rastertospp.c:215: error: ‘cups_option_t’ undeclared (first use in this function)
rastertospp.c:215: error: ‘options’ undeclared (first use in this function)
rastertospp.c:226: warning: implicit declaration of function ‘cupsParseOptions’
rastertospp.c:227: warning: implicit declaration of function ‘ppdOpenFile’
rastertospp.c:234: warning: implicit declaration of function ‘ppdMarkDefaults’
rastertospp.c:235: warning: implicit declaration of function ‘cupsMarkOptions’
rastertospp.c:246: warning: implicit declaration of function ‘cupsRasterOpen’
rastertospp.c:246: error: ‘CUPS_RASTER_READ’ undeclared (first use in this function)
rastertospp.c:253: warning: implicit declaration of function ‘cupsRasterReadHeader’
rastertospp.c:253: error: ‘header’ undeclared (first use in this function)
rastertospp.c:259: warning: implicit declaration of function ‘StartPage’
rastertospp.c:274: warning: implicit declaration of function ‘ReadLine’
rastertospp.c:275: warning: implicit declaration of function ‘OutputLine’
rastertospp.c:281: warning: implicit declaration of function ‘EndPage’
rastertospp.c:286: warning: implicit declaration of function ‘cupsFreeOptions’
rastertospp.c:287: warning: implicit declaration of function ‘cupsRasterClose’

halitech
May 28th, 2009, 05:08 PM
just a quick question, did you install build-essential to get all the compiling tools you need to compile apps?

kamitsukai
May 28th, 2009, 05:45 PM
just a quick question, did you install build-essential to get all the compiling tools you need to compile apps?

Yep all installed =]

philinux
May 28th, 2009, 06:54 PM
I'd email the guy he's kindly left his address on the driver page.

kamitsukai
May 28th, 2009, 07:11 PM
Ok I've done it =] (very proud of myself...)

But it's till not exactly brilliant it leaves gaps on either side of the image and the print quality is OK at best...

my next option is using virtualbox with XP...

for instructions I used this page which I put through google translate as it's in french:


http://forum.ubuntu-fr.org/viewtopic.php?pid=1280210