Talk:Laser Cutter Technical Info Links
From AS220Labs
We're looking for some technical help with the CUPS Driver.
If this is the wrong place to post this, can someone please refer me to the right one? Have been looking for it for hours.
OS X 10.6, compiled ( I believe ) against the native version of Cups (1.4.1). We have ghostscript installed by fink and symlinked to the expected /usr/bin/gs location. We are attempting to send a basic ps file via command line submission to the Epilog as instructed in the driver comments.
When converting from PS to EPS, this line appears in the EPS output:
'/==={( )cvs print}def/stroke{currentrgbcolor 0.0 eq exch 0.0 eq and exch 0.0 ne and{(P)=== currentrgbcolor pop pop 100 mul round cvi = flattenpath{transform(M)=== round cvi ===(,)=== round cvi =}{transform(L)=== round cvi ===(,)=== round cvi =}{}{(C)=}pathforall newpath}{stroke}ifelse}bind def/showpage{(X)= showpage}bind def'
We get the following error in the output vector file:
Error: /invalidaccess in --def-- Operand stack: === --nostringval-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- Dictionary stack: --dict:1147/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:48/68(L)-- --dict:7/25(L)-- --dict:10/35(L)-- --dict:38/38(ro)(G)-- --dict:8/12(ro)(L)-- Current allocation mode is local Last OS error: 2 Current file position is 103842
No .bmp file is generated. If I call the gs line directly, it won't generate the bmp unless I remove the line added to the eps.
I have no knowledge of C/C++ and very limited experience with raw ps, but based on what I've Googled, I am guessing the line being added to the eps file is supposed to be formatted in some way (by fprintf?). Specifically the === portions which I can't find mention of in ps documentation. I found that custom fprintf conversions can be defined, but see no indication that this is being used.
Can anyone give us an indication of where to start to look for this? Is it a conflict with Apple's custom CUPS implementation, or compiling against a non compliant library?

