kopia lustrzana https://gitlab.com/sane-project/website
276 wiersze
8.5 KiB
HTML
276 wiersze
8.5 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="Thu May 31 16:08:35 2001" -->
|
|
<!-- isoreceived="20010531230835" -->
|
|
<!-- sent="Fri, 01 Jun 2001 01:01:58 +0200 (CDT)" -->
|
|
<!-- isosent="20010531230158" -->
|
|
<!-- name="Franz Bakan" -->
|
|
<!-- email="fbakan@gmx.net" -->
|
|
<!-- subject="Re: Compiling on OS/2" -->
|
|
<!-- id="200105312308.f4VN8XP04764@panda.mostang.com" -->
|
|
<!-- inreplyto="20010531190616.B9347@vortex.swb.de" -->
|
|
<STRONG>From:</STRONG> Franz Bakan (<A HREF="mailto:fbakan@gmx.net?Subject=Re:%20Compiling%20on%20OS/2&In-Reply-To=<200105312308.f4VN8XP04764@panda.mostang.com>"><EM>fbakan@gmx.net</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Thu May 31 2001 - 16:01:58 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0459.html">Phil Cummins: "portable scanner - Canoscan N1220U"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0457.html">Oliver Schwartz: "Re: [PATCH] Re: SANE CVS snapshot (2001-05-30) available"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0449.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#458">[ date ]</A>
|
|
<A HREF="index.html#458">[ thread ]</A>
|
|
<A HREF="subject.html#458">[ subject ]</A>
|
|
<A HREF="author.html#458">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi,
|
|
<BR>
|
|
<P>On Thu, 31 May 2001 19:06:16 +0200, Henning Meier-Geinitz wrote:
|
|
<BR>
|
|
<P><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>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> no its at line 3369ff
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Ah, that's the special case for OS/2. Looks like a bug.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>> btw. in version 1.03 (line 2133) these variables were static.
|
|
</EM><BR>
|
|
<EM>>> (So I got the idea to make them static to get it compiled and
|
|
</EM><BR>
|
|
<EM>>> it worked)
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>I think the correct fix is to don't use an initializer but to set the
|
|
</EM><BR>
|
|
<EM>>values manually as in the non-os/2 version. This was changed by Abel
|
|
</EM><BR>
|
|
<EM>>Deuring on 2001-01-07 but only for the non-os/2 version. I will change
|
|
</EM><BR>
|
|
<EM>>that, please try when the change has been commited to cvs.
|
|
</EM><BR>
|
|
<P>Thanks I will try
|
|
<BR>
|
|
<P><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>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> No it's not defined in the system-headers /emx/include/...
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Ok. I will think about how to fix it. Would it help if it's defined in
|
|
</EM><BR>
|
|
<EM>>config.h.in?
|
|
</EM><BR>
|
|
<P>I think this should work.
|
|
<BR>
|
|
<P><P><EM>>> After this I had to change the makefiles.
|
|
</EM><BR>
|
|
<EM>>> I had to change
|
|
</EM><BR>
|
|
<EM>>> sh LIBTOOL = ../libtool
|
|
</EM><BR>
|
|
<EM>>> to
|
|
</EM><BR>
|
|
<EM>>> LIBTOOL = ../libtool
|
|
</EM><BR>
|
|
<EM>>> in some makefiles
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Could you explain where this is located exactly? I don't understand
|
|
</EM><BR>
|
|
<EM>>what "sh LIBTOOL = ../libtool" should do and how the line was
|
|
</EM><BR>
|
|
<EM>>generated.
|
|
</EM><BR>
|
|
<P>It must be a bug in os2unix (the 'configure' replacement)
|
|
<BR>
|
|
I will report this to the autor.
|
|
<BR>
|
|
<P><EM>>> I used
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> GCC -Zexe -Zcrtdll -Zsysv-signals -o scanimage scanimage.o
|
|
</EM><BR>
|
|
<EM>>> stiff.o -lbsd -lsocket -lm /emx/lib/iberty.a ../backend/.libs/libsane.a
|
|
</EM><BR>
|
|
<EM>>> ../lib/liblib.a /XFree86/lib/shm.a /emx/lib/syslog.a /emx/lib/socket.a
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>> to get the static linked executable.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Ok, looks a bit complicated :-) Could you write down this procedure
|
|
</EM><BR>
|
|
<EM>>and put it on a webpage for other OS/2 users? So we could add a link
|
|
</EM><BR>
|
|
<EM>>on the SANE web page to it. If you can't, I could put it somewhere on
|
|
</EM><BR>
|
|
<EM>>my website.
|
|
</EM><BR>
|
|
<P>Yes I will do this and place this info on my web-site and let you know
|
|
<BR>
|
|
when and where it is available.
|
|
<BR>
|
|
<P><EM>>forking is such an essential programming technique that I don't think
|
|
</EM><BR>
|
|
<EM>>we should change anything in this part of the code. However, there
|
|
</EM><BR>
|
|
<EM>>seem to exist a way to use it with OS/2 because Mustek-Scanners seem
|
|
</EM><BR>
|
|
<EM>>to work and the mustek backend uses fork for the reader process.
|
|
</EM><BR>
|
|
<P>Yes I know, also when 'forking' is not recommended on OS/2
|
|
<BR>
|
|
(the emx-gcc library-docs say 'inefficient') the forking backends
|
|
<BR>
|
|
could be probably made working correctly whith changes to the
|
|
<BR>
|
|
OS/2 specific code in sanei_scsi.c.
|
|
<BR>
|
|
I managed to compile a 1.03 version that worked for my old
|
|
<BR>
|
|
Mustek-Scanner, but it was not perfect, worked only with one
|
|
<BR>
|
|
specific version of aspirout.sys and stopped working
|
|
<BR>
|
|
when I upgraded to OS/2 Fixpack 15.
|
|
<BR>
|
|
So there has to be done some further investigation and
|
|
<BR>
|
|
bugfixing.
|
|
<BR>
|
|
<P><EM>>> USB-Scanners will also not work...
|
|
</EM><BR>
|
|
<EM>>maybe we can support them when we write a sanei_usb.c provided that
|
|
</EM><BR>
|
|
<EM>>there is USB support in OS/2.
|
|
</EM><BR>
|
|
<P>Yes but someone has to implement an OS/2-USB support devicedriver
|
|
<BR>
|
|
like aspirout.sys which does this part for SCSI
|
|
<BR>
|
|
<P><EM>>> I did not try yet to compile any of the frontends
|
|
</EM><BR>
|
|
<EM>>> (xscanimage or xcam)
|
|
</EM><BR>
|
|
<EM>>> I am not shure, but I thought this frontends depend on
|
|
</EM><BR>
|
|
<EM>>> libsane.dll which I do not know how to compile...
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>You can also link the X frontends statically against libsane.a (at
|
|
</EM><BR>
|
|
<EM>>least on Unix. I don't know howver about the requirements concerning
|
|
</EM><BR>
|
|
<EM>>gtk and X (does they even exist on OS/2?).
|
|
</EM><BR>
|
|
<P>They exist and I will perhaps try to build a statical version of
|
|
<BR>
|
|
xscanimage.
|
|
<BR>
|
|
<P>Thanks for your answers.
|
|
<BR>
|
|
<P>So long
|
|
<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=<200105312308.f4VN8XP04764@panda.mostang.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0459.html">Phil Cummins: "portable scanner - Canoscan N1220U"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0457.html">Oliver Schwartz: "Re: [PATCH] Re: SANE CVS snapshot (2001-05-30) available"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0449.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#458">[ date ]</A>
|
|
<A HREF="index.html#458">[ thread ]</A>
|
|
<A HREF="subject.html#458">[ subject ]</A>
|
|
<A HREF="author.html#458">[ 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>Thu May 31 2001 - 16:09:12 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|