General foo2qpdl :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Compiling foo2zjs for FREESCO linux
Posted by: Spook ()
Date: February 05, 2008 04:41PM

Hi all,
My intention is to connect a Samsung CLP-300 as a network printer to my linux server. (The printer is connected via USB to a FRITZ!Box that works as printserver - the server has a LAN connection to the FRITZ!Box - printing from Windows XP clients via LAN is no problem)
As far as I understood I need the foo2qpdl driver to work together with ghostscript to make this printer work under linux.
I'm running Zipslack linux version 3.9 on the server based on a 2.0.39 kernel and try to compile the foo2zjs sources for this OS.
The compiler version is gcc 2.7.2.3
The installed ghostscript version is 7.07

Once I run the make command on the linux server (according to the documentation inside the foo2zjs directory) I receive the following error messages:
p8-server:/test/foo2zjs# make
#
# Dependencies ...
#
# ... OK !
#
cc - 02 -Wall -c foo2zjs.c - o foozjs.o
In file included from foo2zjs.c :67:
zjs.h:9: inttypes.h: No such file or directory
make: ***[foo2zjs.o] Error 1
p8-server:/test/foo2zjs#

Has anyone got an idea what causes this errors and what can be done to avoid them?

Thanks in advance

Spook

P.S.: I downloaded the latest foo2zjs package from 3 days ago.

Options: ReplyQuote
Re: Compiling foo2zjs for FREESCO linux
Posted by: rickrich ()
Date: February 05, 2008 06:02PM

From wikipedia:

inttypes.h
From Wikipedia, the free encyclopedia
Jump to: navigation, search
C Standard Library headers

* assert.h
* complex.h
* ctype.h
* errno.h
* fenv.h
* float.h
* inttypes.h
* iso646.h
* limits.h
* locale.h
* math.h
* setjmp.h
* signal.h
* stdarg.h
* stdbool.h
* stddef.h
* stdint.h
* stdio.h
* stdlib.h
* string.h
* tgmath.h
* time.h
* wchar.h
* wctype.h

The inttypes.h file is a C header file that is part of the C standard library and API. It was added with the 1999 version of the ISO C standard (known as C99). It includes the stdint.h header. It defines a number of macros for use with the printf and scanf family of functions, as well as functions for working with the intmax_t type.

Options: ReplyQuote
Re: Compiling foo2zjs for FREESCO linux
Posted by: Spook ()
Date: February 06, 2008 04:36PM

Thanks for the hint.
After finding the header file in the web, copying it to my server, commenting out some things inside the file and compiling other programms like
gperf-3.0.3
foomatic-filters-3.0-20071218
a2ps-4.8
I finally managed to compile foo2zjs
The only error message was:
install: manual.pdf: No such file or directory
make: *** [install-doc] Error 1
but I assume that this shouldn't be a bigger problem - shall it ?

So thanks so far - I hope I get it set up completely now and pronting will work soon.

Regards

Spook

Options: ReplyQuote
Re: Compiling foo2zjs for FREESCO linux
Posted by: rickrich ()
Date: February 06, 2008 07:18PM

Install groff.

Options: ReplyQuote
Re: Compiling foo2zjs for FREESCO linux
Posted by: Spook ()
Date: February 07, 2008 05:18PM

thanks -that worked.

I guess I have everything installed now and tryed the command
foomatic-rip -Plp -ppd /mnt/bootdev/router/pkg/usr/local/etc/foomatic/direct/Samsung-CLP-300.ppd ./tiger.pdf

but no print came out.
The log file in /tmp shows

[root@Freesco] more foomatic-rip.log
foomatic-rip version $Revision$ running...
called with arguments: '-Plp', '-ppd', '/mnt/bootdev/router/pkg/usr/local/etc/foomatic/direct/Samsung-CLP-300.ppd', './tiger.pdf'
Parsing PPD file ...

Parameter Summary
-----------------

Spooler: direct
Printer: lp
Shell: /bin/sh
PPD file: pd
ATTR file:
Printer model: Raw queue
Options:
Job title: root@webserver.workgroup.sf
File(s) to be printed:
/mnt/bootdev/router/pkg/usr/local/etc/foomatic/direct/Samsung-CLP-300.ppd ./tiger.pdf


================================================

File: /mnt/bootdev/router/pkg/usr/local/etc/foomatic/direct/Samsung-CLP-300.ppd

--- press ENTER for more of file foomatic-rip.log (line 23) ---
================================================

Raw printing, executing "cat "


================================================

File: ./tiger.pdf

================================================

Raw printing, executing "cat "

$VAR1 = {
'cmd' => 'cat%A%B%C%D%E%F%G%H%I%J%K%L%M%Z',
'args' => [],
'cupsfilter' => {}
};

Closing foomatic-rip.
[root@Freesco]

Printerqueue shows no jobs:
[root@Freesco] lpc
lpc>status
Printer Printing Spooling Jobs Server Subserver Redirect Status/(Debug)
lp@webserver enabled enabled 0 none none
lpc>


Any idea what is wrong or missing ?



Thanks in advance

Spook



Edited 1 time(s). Last edit at 02/07/2008 05:21PM by Spook.

Options: ReplyQuote
Re: Compiling foo2zjs for FREESCO linux
Posted by: rickrich ()
Date: February 07, 2008 06:14PM

Sorry. I don't understand CUPS logs.
$ foo2qpdl-wrapper testpage.ps > xxx

$ qpdldecode < xxx
[decoded stuff]

$ nc 192.168.1.NNN 9100 <xxx
or
# cp xxx /dev/usb/lp0

[stuff gets printed]

# grep foo2qpdl /var/log/messages
[syslog from foo2qpd]

$ lpr testpage.ps
[stuff gets printed]

BTW, 64MB memory is needed for ghostscript and foo2qpdl in color mode.

Options: ReplyQuote
Re: Compiling foo2zjs for FREESCO linux
Posted by: Spook ()
Date: February 08, 2008 03:56PM

Step by step - but error again :-(

After trying to do it with the command above I received the following output:

[Michael@Freesco] foo2qpdl-wrapper tiger.ps > /mnt/software/test/tiger.qpdl
getopts: No such file or directory
expr: syntax error
getopts: No such file or directory
expr: syntax error

[Michael@Freesco]

I read something about getopts in the web being a program or utility in (b)ash shell environment - but what can I do now ?
I already installed a bash shell package but there is no difference compared with before - see the screen dump above :-(

Any hint would be great ;-)

Thanks in advance

Spook

Options: ReplyQuote
Re: Compiling foo2zjs for FREESCO linux
Posted by: rickrich ()
Date: February 08, 2008 05:09PM

$ getopts
getopts: usage: getopts optstring name [arg]
$ type getopts
getopts is a shell builtin

I'm sorry but FreeSCO is 10+ years old. I'd use some other distro.
Oldest we support is Redhat 7.



Edited 1 time(s). Last edit at 02/08/2008 05:12PM by rickrich.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.