kopia lustrzana https://gitlab.com/sane-project/website
302 wiersze
8.9 KiB
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=<200105302358.f4UNw5P03109@panda.mostang.com>"><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>>> there are some problems:
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> 1. sane-backends/sanei/sanei_scsi.c
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> I get an error in sane-backends\sanei\sanei_scsi.c
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> sanei_scsi.c:line: initializer element for `param[0].u' is not
|
|
</EM><BR>
|
|
<EM>>> computable at load time
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>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>>So I just don't understand this. By the way: Does it work if you use
|
|
</EM><BR>
|
|
<EM>>"configure --disable-warnigs"? The warnings will be disabled for
|
|
</EM><BR>
|
|
<EM>>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>>
|
|
</EM><BR>
|
|
<EM>>> 2. sane/sane-backends/backend/qcam.c
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> I have to change
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> struct flock sfl;
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> to
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> struct
|
|
</EM><BR>
|
|
<EM>>> { off_t l_start;
|
|
</EM><BR>
|
|
<EM>>> off_t l_len;
|
|
</EM><BR>
|
|
<EM>>> pid_t l_pid;
|
|
</EM><BR>
|
|
<EM>>> short l_type;
|
|
</EM><BR>
|
|
<EM>>> short l_whence;
|
|
</EM><BR>
|
|
<EM>>> } sfl;
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Could you check if this struct is defined in any of your system
|
|
</EM><BR>
|
|
<EM>>headers? If it isn't, we can probably do some kind of configure magic
|
|
</EM><BR>
|
|
<EM>>to define it if it isn't.
|
|
</EM><BR>
|
|
<P>No it's not defined in the system-headers /emx/include/...
|
|
<BR>
|
|
<P><EM>>
|
|
</EM><BR>
|
|
<EM>>> 3. in sane/sane-backends/lib/*.c
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> I have to change
|
|
</EM><BR>
|
|
<EM>>> #include "config.h"
|
|
</EM><BR>
|
|
<EM>>> to
|
|
</EM><BR>
|
|
<EM>>> #include <config.h>
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>In principle, this should work with "config.h" because the include
|
|
</EM><BR>
|
|
<EM>>dirs are -I$(top_builddir)/include/sane -I$(top_srcdir)/include and
|
|
</EM><BR>
|
|
<EM>>config.h is in include/sane. Could you have a look into the Makefile
|
|
</EM><BR>
|
|
<EM>>and check, if these entries are the same (INCLUDES)?
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>But usually we use "../include/sane/config.h" or at least
|
|
</EM><BR>
|
|
<EM>>"sane/config.h". I don't know why it doesn't work for you and why it
|
|
</EM><BR>
|
|
<EM>>does with <config.h>.
|
|
</EM><BR>
|
|
<P>I think it should be "../include/sane/config.h"
|
|
<BR>
|
|
I think <config.h> is searched in the include-path
|
|
<BR>
|
|
and "config.h" is treated as absolute path
|
|
<BR>
|
|
<P><EM>>
|
|
</EM><BR>
|
|
<EM>>If nobody objects, I will change this in CVS. David left out lib/
|
|
</EM><BR>
|
|
<EM>>when he changed config.h to sane/config.h but I don' know, why.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>> Perhaps these problems could be solved in the sources.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>We will try.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Some questions: Did you compile sane-backends without any other
|
|
</EM><BR>
|
|
<EM>>changes than mentioned above just by using ./configure ; make ; make
|
|
</EM><BR>
|
|
<EM>>install? Whic version of OS/2 and which compiler + version are you
|
|
</EM><BR>
|
|
<EM>>using? SANE is statically linked to scanimage? Is it possible to use
|
|
</EM><BR>
|
|
<EM>>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 <<A HREF="mailto:jsawa@attglobal.net?Subject=Re:%20Compiling%20on%20OS/2&In-Reply-To=<200105302358.f4UNw5P03109@panda.mostang.com>">jsawa@attglobal.net</A>>
|
|
<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>
|
|
stiff.o -lbsd -lsocket -lm /emx/lib/iberty.a ../backend/.libs/libsane.a
|
|
<BR>
|
|
../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=<200105302358.f4UNw5P03109@panda.mostang.com>">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>
|