sane-project-website/old-archive/2000-02/0186.html

246 wiersze
8.8 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: Xsane-0.55: compile/configure/install nits</TITLE>
<META NAME="Author" CONTENT="Bill Thompson (billt@samart.co.th)">
<META NAME="Subject" CONTENT="Re: Xsane-0.55: compile/configure/install nits">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Xsane-0.55: compile/configure/install nits</H1>
<!-- received="Thu Feb 17 03:27:48 2000" -->
<!-- isoreceived="20000217112748" -->
<!-- sent="Thu, 17 Feb 2000 18:26:34 +0700" -->
<!-- isosent="20000217112634" -->
<!-- name="Bill Thompson" -->
<!-- email="billt@samart.co.th" -->
<!-- subject="Re: Xsane-0.55: compile/configure/install nits" -->
<!-- id="38ABDAEA.480BA1A0@samart.co.th" -->
<!-- inreplyto="38AA813B.1FA9C27F@dial.pipex.com" -->
<STRONG>From:</STRONG> Bill Thompson (<A HREF="mailto:billt@samart.co.th?Subject=Re:%20Xsane-0.55:%20compile/configure/install%20nits&In-Reply-To=&lt;38ABDAEA.480BA1A0@samart.co.th&gt;"><EM>billt@samart.co.th</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Feb 17 2000 - 03:26:34 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0187.html">Kazuya Fukuda: "NEC Backend"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0185.html">Petter Reinholdtsen: "Re: Libre Software Metting"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0178.html">John Vickers: "Xsane-0.55: compile/configure/install nits"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0190.html">Oliver Rauch: "Re: Xsane-0.55: compile/configure/install nits"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0190.html">Oliver Rauch: "Re: Xsane-0.55: compile/configure/install nits"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#186">[ date ]</A>
<A HREF="index.html#186">[ thread ]</A>
<A HREF="subject.html#186">[ subject ]</A>
<A HREF="author.html#186">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
John Vickers wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hello.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I think there are some problems with configuring &amp; building xsane.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; In short, I think we need:
</EM><BR>
<EM>&gt; - A way of specifing the location of the sane installation to build with.
</EM><BR>
<EM>&gt; --with-sane= ??
</EM><BR>
<EM>&gt; - A way of specifying static linking for the xsane executable.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; This seems like reasonably standard configury stuff. Not that I'm an
</EM><BR>
<EM>&gt; expert on autoconf...
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Building xsane out-of-the-box on a Linux distribution
</EM><BR>
<EM>&gt; which includes sane is almost bound to fail: the linked libsane
</EM><BR>
<EM>&gt; will be the libsane from /usr/lib, and include files will be taken from
</EM><BR>
<EM>&gt; /usr/include
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; E.g. after configuring xsane-0.55 with --prefix=/home/pkg/test
</EM><BR>
<EM>&gt; --disable-shared
</EM><BR>
<EM>&gt; I see the following link command for xsane:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; gcc -o xsane xsane-back-gtk.o xsane-front-gtk.o xsane-gamma.o
</EM><BR>
<EM>&gt; xsane-preview.o xsane-rc-io.o xsane-device-preferences.o
</EM><BR>
<EM>&gt; xsane-preferences.o
</EM><BR>
<EM>&gt; xsane-setup.o xsane-save.o xsane-scan.o xsane-icons.o xsane.o \
</EM><BR>
<EM>&gt; ../lib/liblib.a -lgimp -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk
</EM><BR>
<EM>&gt; -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -lpng -lsane -ldl
</EM><BR>
<EM>&gt; -ltiff -ljpeg -lz -lm
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I think the recommendation of removing any existing Sane installation
</EM><BR>
<EM>&gt; may not be an option for policy reasons or simply because necessary
</EM><BR>
<EM>&gt; permissions are unavailable.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; My bodge to make xsane link was to configure with:
</EM><BR>
<EM>&gt; CC=&quot;gcc -L/home/pkg/test/lib -I/home/pkg/test/include&quot;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; and ewither run the executable with LD_LIBRARY_PATH=/home/pkg/test/lib
</EM><BR>
<EM>&gt; or link a static binary based on the command line above.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Solutions:
</EM><BR>
<EM>&gt; - &quot;One-tree-build&quot;: move xsane into the sane tree. Does this just work ?
</EM><BR>
<EM>&gt; Is there any reason for not doing this ?
</EM><BR>
<EM>&gt; - Put -L$(libdir) in the link command, and -I$(includedir) in the compile
</EM><BR>
<EM>&gt; commands.
</EM><BR>
<EM>&gt; This will work if, as seems reasonably likely, xsane is being installed
</EM><BR>
<EM>&gt; to the same place as sane.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Other problems (installation instructions):
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The installation instruction to do &quot;make install&quot; as root
</EM><BR>
<EM>&gt; is unnecessary, and arguably a bad idea. So long as the install dirs are
</EM><BR>
<EM>&gt; writable, there should be no problem.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Similarly, editing /etc/ld.so.conf (or equivalent) is not strictly
</EM><BR>
<EM>&gt; necessary. The dynamic library search path can be modified by setting
</EM><BR>
<EM>&gt; LD_LIBRARY_PATH e.g. in ~/.profile.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Regards,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; John.
</EM><BR>
&nbsp;
<BR>
&nbsp;&nbsp;John,
<BR>
<P>&nbsp;&nbsp;I just finished compiling xsane 0.56 and got the same link statements
<BR>
&nbsp;&nbsp;as you. But when I run 'ldd xsane', I get:
<BR>
<P>&nbsp;&nbsp;&nbsp;[root@darkside bin]# ldd xsane
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgimp.so.1 =&gt; /usr/lib/libgimp.so.1 (0x4001a000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgtk-1.2.so.0 =&gt; /usr/lib/libgtk-1.2.so.0 (0x4002a000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgdk-1.2.so.0 =&gt; /usr/lib/libgdk-1.2.so.0 (0x4016b000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libgmodule-1.2.so.0 =&gt; /usr/lib/libgmodule-1.2.so.0 (0x401a0000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libglib-1.2.so.0 =&gt; /usr/lib/libglib-1.2.so.0 (0x401a4000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libdl.so.2 =&gt; /lib/libdl.so.2 (0x401c9000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libXext.so.6 =&gt; /usr/X11R6/lib/libXext.so.6 (0x401cd000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libX11.so.6 =&gt; /usr/X11R6/lib/libX11.so.6 (0x401da000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libm.so.6 =&gt; /lib/libm.so.6 (0x4028c000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libpng.so.2 =&gt; /usr/lib/libpng.so.2 (0x402aa000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libsane.so.1 =&gt; /usr/local/lib/libsane.so.1 (0x402ca000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libtiff.so.3 =&gt; /usr/lib/libtiff.so.3 (0x402cf000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libjpeg.so.62 =&gt; /usr/lib/libjpeg.so.62 (0x402fd000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libz.so.1 =&gt; /usr/lib/libz.so.1 (0x4031e000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libc.so.6 =&gt; /lib/libc.so.6 (0x4032d000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)
<BR>
<P>&nbsp;&nbsp;&nbsp;Which shows where libsane.so.1 lives. I don't see one in /usr/lib.
<BR>
&nbsp;&nbsp;&nbsp;
<BR>
&nbsp;&nbsp;&nbsp;Bill
<BR>
<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:%20Xsane-0.55:%20compile/configure/install%20nits&In-Reply-To=&lt;38ABDAEA.480BA1A0@samart.co.th&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0187.html">Kazuya Fukuda: "NEC Backend"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0185.html">Petter Reinholdtsen: "Re: Libre Software Metting"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0178.html">John Vickers: "Xsane-0.55: compile/configure/install nits"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0190.html">Oliver Rauch: "Re: Xsane-0.55: compile/configure/install nits"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0190.html">Oliver Rauch: "Re: Xsane-0.55: compile/configure/install nits"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#186">[ date ]</A>
<A HREF="index.html#186">[ thread ]</A>
<A HREF="subject.html#186">[ subject ]</A>
<A HREF="author.html#186">[ 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 Feb 17 2000 - 03:31:59 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>