sane-project-website/old-archive/2001-05/0431.html

155 wiersze
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Compiling on OS/2</TITLE>
<META NAME="Author" CONTENT="Franz Bakan (fbakan@gmx.net)">
<META NAME="Subject" CONTENT="Compiling on OS/2">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Compiling on OS/2</H1>
<!-- received="Tue May 29 16:14:02 2001" -->
<!-- isoreceived="20010529231402" -->
<!-- sent="Wed, 30 May 2001 01:10:50 +0200 (CDT)" -->
<!-- isosent="20010529231050" -->
<!-- name="Franz Bakan" -->
<!-- email="fbakan@gmx.net" -->
<!-- subject="Compiling on OS/2" -->
<!-- id="200105292314.f4TNE1P01085@panda.mostang.com" -->
<STRONG>From:</STRONG> Franz Bakan (<A HREF="mailto:fbakan@gmx.net?Subject=Re:%20Compiling%20on%20OS/2&In-Reply-To=&lt;200105292314.f4TNE1P01085@panda.mostang.com&gt;"><EM>fbakan@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue May 29 2001 - 16:10:50 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0432.html">Tom: "Re: usb Mustek scanner on 2.2.16"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0430.html">Oliver Rauch: "Re: umax 2200 hi res scan"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#431">[ date ]</A>
<A HREF="index.html#431">[ thread ]</A>
<A HREF="subject.html#431">[ subject ]</A>
<A HREF="author.html#431">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>If i try to compile the actual cvs-version on OS/2
<BR>
there are some problems:
<BR>
<P>1. sane-backends/sanei/sanei_scsi.c
<BR>
<P>I get an error in sane-backends\sanei\sanei_scsi.c
<BR>
<P>sanei_scsi.c:line: initializer element for `param[0].u' is not computable at load time
<BR>
....
<BR>
sanei_scsi.c:line: initializer element for `param[7]' is not computable at load time
<BR>
<P>It compiles if I change the following lines
<BR>
<P>from
<BR>
<P>char vendor[32], model[32], type[32], revision[32];
<BR>
int bus, channel, id, lun, number, i;
<BR>
<P>to
<BR>
<P>static char vendor[32], model[32], type[32], revision[32];
<BR>
static int bus, channel, id, lun, number;
<BR>
int i;
<BR>
<P>Perhaps this could be changed...
<BR>
<P>2. sane/sane-backends/backend/qcam.c
<BR>
<P>I have to change
<BR>
<P>&nbsp;&nbsp;&nbsp;struct flock sfl;
<BR>
<P>to
<BR>
<P>&nbsp;struct
<BR>
&nbsp;&nbsp;&nbsp;{ off_t l_start;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;off_t l_len;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pid_t l_pid;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;short l_type;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;short l_whence;
<BR>
&nbsp;} sfl;
<BR>
<P>(twice)
<BR>
<P><P>3. in sane/sane-backends/lib/*.c
<BR>
<P>I have to change
<BR>
#include &quot;config.h&quot;
<BR>
to
<BR>
#include &lt;config.h&gt;
<BR>
<P>Perhaps these problems could be solved in the sources.
<BR>
<P>Another question:
<BR>
<P>Is it possible to compile just for one backend for example
<BR>
a specific version just for epson scanners.
<BR>
<P>Or build scanimage without all 'fork' or 'parallel' backends
<BR>
(which are actualy not so well supported on OS/2)
<BR>
<P>Is there a switch for configure that could be set?
<BR>
<P>Franz Bakan
<BR>
<P><P><P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Compiling%20on%20OS/2&In-Reply-To=&lt;200105292314.f4TNE1P01085@panda.mostang.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0432.html">Tom: "Re: usb Mustek scanner on 2.2.16"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0430.html">Oliver Rauch: "Re: umax 2200 hi res scan"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#431">[ date ]</A>
<A HREF="index.html#431">[ thread ]</A>
<A HREF="subject.html#431">[ subject ]</A>
<A HREF="author.html#431">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Tue May 29 2001 - 16:14:23 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>