Paolo,

On Sun, 26 Jan 2003 11:53:48 +0100 Paolo Chiarabaglio wrote:

> I'm using a Bering 1.0-Stable box connected to a label printer and a sort
> of serial terminal (I've built it) to print labels in a factory.
> Everything is working, the only problem I have is with the printer.

[..]

> if I do: echo P1 > /dev/lp0
> the printer print 1 label (it is ok)

Okay, so the hardware and drivers are probably fine.


> In the software I wrote I open /dev/lp0 with fopen("/dev/lp0","w"), and it
> hang up while sending data to the printer (with fputc)
> I'm I doing something wrong?
> 
> I'm developing the software using Linux Mandrake 9.0. Which is the right
> distribution to develop for LRP ??

If you're linking against glibc, you'll probably have trouble
developing on Mandrake 9.0.  It uses a much newer glibc than
the 2.0.7 used by Bering.  You might creating a statically
linked binary to test.  If that fixes the problem, you could
develop in a slink environment using UML:

  http://leaf.sourceforge.net/devel/jnilo/uml.html

The other option would be to migrate to Bering-uClibc.  The
uClibc setup makes it pretty easy to cross-compile against
uClibc from modern Linux distributions.

If a static binary still doesn't work, it might be a
programming error.

Hope that gives you some ideas that lead to a solution.
Good luck, Paolo.

--Brad



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to