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

302 wiersze
8.9 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: Re: Compiling on OS/2</TITLE>
<META NAME="Author" CONTENT="Franz Bakan (fbakan@gmx.net)">
<META NAME="Subject" CONTENT="Re: Compiling on OS/2">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Compiling on OS/2</H1>
<!-- received="Wed May 30 16:58:09 2001" -->
<!-- isoreceived="20010530235809" -->
<!-- sent="Thu, 31 May 2001 01:54:57 +0200 (CDT)" -->
<!-- isosent="20010530235457" -->
<!-- name="Franz Bakan" -->
<!-- email="fbakan@gmx.net" -->
<!-- subject="Re: Compiling on OS/2" -->
<!-- id="200105302358.f4UNw5P03109@panda.mostang.com" -->
<!-- inreplyto="20010530225222.B1226@vortex.swb.de" -->
<STRONG>From:</STRONG> Franz Bakan (<A HREF="mailto:fbakan@gmx.net?Subject=Re:%20Compiling%20on%20OS/2&In-Reply-To=&lt;200105302358.f4UNw5P03109@panda.mostang.com&gt;"><EM>fbakan@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed May 30 2001 - 16:54:57 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0440.html">Mick Barry: "Re: Compiling on OS/2"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0440.html">Mick Barry: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0440.html">Mick Barry: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0449.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#439">[ date ]</A>
<A HREF="index.html#439">[ thread ]</A>
<A HREF="subject.html#439">[ subject ]</A>
<A HREF="author.html#439">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
thanks for responding
<BR>
<P>On Wed, 30 May 2001 22:52:22 +0200, Henning Meier-Geinitz wrote:
<BR>
<P><EM>&gt;&gt; there are some problems:
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; 1. sane-backends/sanei/sanei_scsi.c
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I get an error in sane-backends\sanei\sanei_scsi.c
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; sanei_scsi.c:line: initializer element for `param[0].u' is not
</EM><BR>
<EM>&gt;&gt; computable at load time
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;At which line is this error? I would think it's on 2432-2439,
</EM><BR>
<P>no its at line 3369ff
<BR>
btw. in version 1.03 (line 2133) these variables were static.
<BR>
(So I got the idea to make them static to get it compiled and
<BR>
it worked)
<BR>
<P><EM>&gt;So I just don't understand this. By the way: Does it work if you use
</EM><BR>
<EM>&gt;&quot;configure --disable-warnigs&quot;? The warnings will be disabled for
</EM><BR>
<EM>&gt;release.
</EM><BR>
I did not try, I will try when I have time.
<BR>
It's not a warning, it's an error.
<BR>
does --disable-warnings change what is treated as error?
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt;&gt; 2. sane/sane-backends/backend/qcam.c
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I have to change
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; struct flock sfl;
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; to
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; struct
</EM><BR>
<EM>&gt;&gt; { off_t l_start;
</EM><BR>
<EM>&gt;&gt; off_t l_len;
</EM><BR>
<EM>&gt;&gt; pid_t l_pid;
</EM><BR>
<EM>&gt;&gt; short l_type;
</EM><BR>
<EM>&gt;&gt; short l_whence;
</EM><BR>
<EM>&gt;&gt; } sfl;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;Could you check if this struct is defined in any of your system
</EM><BR>
<EM>&gt;headers? If it isn't, we can probably do some kind of configure magic
</EM><BR>
<EM>&gt;to define it if it isn't.
</EM><BR>
<P>No it's not defined in the system-headers /emx/include/...
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt;&gt; 3. in sane/sane-backends/lib/*.c
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I have to change
</EM><BR>
<EM>&gt;&gt; #include &quot;config.h&quot;
</EM><BR>
<EM>&gt;&gt; to
</EM><BR>
<EM>&gt;&gt; #include &lt;config.h&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;In principle, this should work with &quot;config.h&quot; because the include
</EM><BR>
<EM>&gt;dirs are -I$(top_builddir)/include/sane -I$(top_srcdir)/include and
</EM><BR>
<EM>&gt;config.h is in include/sane. Could you have a look into the Makefile
</EM><BR>
<EM>&gt;and check, if these entries are the same (INCLUDES)?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;But usually we use &quot;../include/sane/config.h&quot; or at least
</EM><BR>
<EM>&gt;&quot;sane/config.h&quot;. I don't know why it doesn't work for you and why it
</EM><BR>
<EM>&gt;does with &lt;config.h&gt;.
</EM><BR>
<P>I think it should be &quot;../include/sane/config.h&quot;
<BR>
I think &lt;config.h&gt; is searched in the include-path
<BR>
and &quot;config.h&quot; is treated as absolute path
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt;If nobody objects, I will change this in CVS. David left out lib/
</EM><BR>
<EM>&gt;when he changed config.h to sane/config.h but I don' know, why.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;&gt; Perhaps these problems could be solved in the sources.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;We will try.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;Some questions: Did you compile sane-backends without any other
</EM><BR>
<EM>&gt;changes than mentioned above just by using ./configure ; make ; make
</EM><BR>
<EM>&gt;install? Whic version of OS/2 and which compiler + version are you
</EM><BR>
<EM>&gt;using? SANE is statically linked to scanimage? Is it possible to use
</EM><BR>
<EM>&gt;the X frontends xscanimage and xcam?
</EM><BR>
<P>Additionally I had to add
<BR>
#define HAVE_VSYSLOG
<BR>
to config.h
<BR>
<P>I did not use ./configure but a tool called os2unix.cmd
<BR>
version 1.5 by Jun SAWATAISHI &lt;<A HREF="mailto:jsawa@attglobal.net?Subject=Re:%20Compiling%20on%20OS/2&In-Reply-To=&lt;200105302358.f4UNw5P03109@panda.mostang.com&gt;">jsawa@attglobal.net</A>&gt;
<BR>
which is available from
<BR>
<A HREF="http://www2s.biglobe.ne.jp/~vtgf3mpr/indxos2.htm">http://www2s.biglobe.ne.jp/~vtgf3mpr/indxos2.htm</A>
<BR>
<P>After this I had to change the makefiles.
<BR>
I had to change
<BR>
sh LIBTOOL = ../libtool
<BR>
to
<BR>
LIBTOOL = ../libtool
<BR>
in some makefiles
<BR>
<P>Then it compiled but did not link
<BR>
I had to remove the umax_pp backend because of undefined references
<BR>
'_outb' and such things...
<BR>
<P>and I had to add manually some libs to the link-command which I executed in
<BR>
sane-backends/frontend/
<BR>
<P>I used
<BR>
<P>GCC -Zexe -Zcrtdll -Zsysv-signals -o scanimage scanimage.o
<BR>
&nbsp;stiff.o -lbsd -lsocket -lm /emx/lib/iberty.a ../backend/.libs/libsane.a
<BR>
&nbsp;../lib/liblib.a /XFree86/lib/shm.a /emx/lib/syslog.a /emx/lib/socket.a
<BR>
<P>to get the static linked executable.
<BR>
<P>It works with my EPSON GT-9500 scanner.
<BR>
But this version will not work with any of the 'fork()' backends
<BR>
without further changes to sanei_scsi.c - or 'unforking' the
<BR>
backends ;-)
<BR>
USB-Scanners will also not work...
<BR>
<P>I did not get a dll because I don't know how to manage this
<BR>
I am only an amateur programmer ;-)
<BR>
<P>I am using OS/2 version 4 Fixpack 15 and the gcc version of
<BR>
emx (version 'emxfix04')
<BR>
<P>I did not try yet to compile any of the frontends
<BR>
(xscanimage or xcam)
<BR>
I am not shure, but I thought this frontends depend on
<BR>
libsane.dll which I do not know how to compile...
<BR>
<P>Franz
<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;200105302358.f4UNw5P03109@panda.mostang.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0440.html">Mick Barry: "Re: Compiling on OS/2"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0438.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0440.html">Mick Barry: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0440.html">Mick Barry: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0449.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#439">[ date ]</A>
<A HREF="index.html#439">[ thread ]</A>
<A HREF="subject.html#439">[ subject ]</A>
<A HREF="author.html#439">[ 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>Wed May 30 2001 - 17:00:59 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>