sane-project-website/old-archive/2001-06/0021.html

200 wiersze
5.4 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="Sat Jun 2 06:32:35 2001" -->
<!-- isoreceived="20010602133235" -->
<!-- sent="Sat, 02 Jun 2001 15:32:36 +0200 (CDT)" -->
<!-- isosent="20010602133236" -->
<!-- name="Franz Bakan" -->
<!-- email="fbakan@gmx.net" -->
<!-- subject="Re: Compiling on OS/2" -->
<!-- id="200106021332.f52DWXP07856@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=&lt;200106021332.f52DWXP07856@panda.mostang.com&gt;"><EM>fbakan@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Sat Jun 02 2001 - 06:32:36 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0022.html">Henning Meier-Geinitz: "Re: Patches for improved batch scanning in scanimage"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0020.html">Gregory F. March: "Re: New member with questions..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0023.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0023.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#21">[ date ]</A>
<A HREF="index.html#21">[ thread ]</A>
<A HREF="subject.html#21">[ subject ]</A>
<A HREF="author.html#21">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
thanks Henning for applying the patches for OS/2-support.
<BR>
Only left one bug in qcam.c. The struct has to be defined once more.
<BR>
Here is the output from diff -c how could solve the problem.
<BR>
--begin--
<BR>
*** i:qcam.c Sat Jun 2 00:58:46 2001
<BR>
--- qcam.c Sat Jun 2 02:01:56 2001
<BR>
***************
<BR>
*** 332,337 ****
<BR>
--- 332,348 ----
<BR>
&nbsp;&nbsp;qc_unlock (QC_Device *q)
<BR>
&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;#ifdef F_SETLK
<BR>
+
<BR>
+ #ifndef HAVE_STRUCT_FLOCK
<BR>
+ struct flock
<BR>
+ {
<BR>
+ off_t l_start;
<BR>
+ off_t l_len;
<BR>
+ pid_t l_pid;
<BR>
+ short l_type;
<BR>
+ short l_whence;
<BR>
+ };
<BR>
+ #endif /* !HAVE_STRUCT_FLOCK */
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;struct flock sfl;
<BR>
&nbsp;&nbsp;#endif
<BR>
-- end --
<BR>
<P>Here is a complete description how I managed to compile the latest
<BR>
CVS-Version:
<BR>
<P>1. remove 'snapscan' and 'umax_pp' from PRELOADABLE_BACKENDS =
<BR>
&nbsp;&nbsp;&nbsp;in backend/makefile.in
<BR>
<P>1a. modify qcam.c see above
<BR>
<P>2. os2unix -all
<BR>
<P>3. change 'sh LIBTOOL' to 'LIBTOOL'
<BR>
&nbsp;&nbsp;in
<BR>
&nbsp;&nbsp;sane-backends\tools\Makefile.in
<BR>
&nbsp;&nbsp;sane-backends\sanei\Makefile.in
<BR>
&nbsp;&nbsp;sane-backends\lib\Makefile.in
<BR>
&nbsp;&nbsp;sane-backends\japi\Makefile.in
<BR>
&nbsp;&nbsp;sane-backends\frontend\Makefile.in
<BR>
&nbsp;&nbsp;sane-backends\backend\Makefile.in
<BR>
<P>4. sh configure --without-warnings --disable-libtool-lock --disable-dynamic
<BR>
<P>5. add
<BR>
&nbsp;&nbsp;&nbsp;'#define HAVE_VSYSLOG'
<BR>
&nbsp;&nbsp;&nbsp;to
<BR>
&nbsp;&nbsp;&nbsp;sane-backends/include/sane/config.h
<BR>
<P>6. change
<BR>
&nbsp;&nbsp;&nbsp;'LIBS ='
<BR>
&nbsp;&nbsp;&nbsp;to
<BR>
&nbsp;&nbsp;&nbsp;'LIBS = /XFree86/lib/shm.a /emx/lib/syslog.a /emx/lib/socket.a'
<BR>
&nbsp;&nbsp;&nbsp;in
<BR>
&nbsp;&nbsp;&nbsp;sane-backends/frontend/makefile
<BR>
<P>7. change
<BR>
&nbsp;&nbsp;&nbsp;'LIBS = -lsocket -lm'
<BR>
&nbsp;&nbsp;&nbsp;to
<BR>
&nbsp;&nbsp;&nbsp;'LIBS = -lsocket -lm /emx/lib/syslog.a /emx/lib/socket.a'
<BR>
&nbsp;&nbsp;&nbsp;in
<BR>
&nbsp;&nbsp;&nbsp;sane-backends/tools/makefile
<BR>
&nbsp;&nbsp;&nbsp;and remove
<BR>
&nbsp;&nbsp;&nbsp;'umax_pp'
<BR>
&nbsp;&nbsp;&nbsp;from
<BR>
&nbsp;&nbsp;&nbsp;'DESTINATIONS = sane-find-scanner sane-config umax_pp'
<BR>
<P>8. make
<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;200106021332.f52DWXP07856@panda.mostang.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0022.html">Henning Meier-Geinitz: "Re: Patches for improved batch scanning in scanimage"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0020.html">Gregory F. March: "Re: New member with questions..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0023.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0023.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#21">[ date ]</A>
<A HREF="index.html#21">[ thread ]</A>
<A HREF="subject.html#21">[ subject ]</A>
<A HREF="author.html#21">[ 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>Sat Jun 02 2001 - 06:33:02 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>