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

161 wiersze
5.7 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: Xsane-0.55: compile/configure/install nits</TITLE>
<META NAME="Author" CONTENT="John Vickers (jvickers@dial.pipex.com)">
<META NAME="Subject" CONTENT="Xsane-0.55: compile/configure/install nits">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Xsane-0.55: compile/configure/install nits</H1>
<!-- received="Thu Feb 17 00:00:16 2000" -->
<!-- isoreceived="20000217080016" -->
<!-- sent="Wed, 16 Feb 2000 10:51:39 +0000" -->
<!-- isosent="20000216105139" -->
<!-- name="John Vickers" -->
<!-- email="jvickers@dial.pipex.com" -->
<!-- subject="Xsane-0.55: compile/configure/install nits" -->
<!-- id="38AA813B.1FA9C27F@dial.pipex.com" -->
<STRONG>From:</STRONG> John Vickers (<A HREF="mailto:jvickers@dial.pipex.com?Subject=Re:%20Xsane-0.55:%20compile/configure/install%20nits&In-Reply-To=&lt;38AA813B.1FA9C27F@dial.pipex.com&gt;"><EM>jvickers@dial.pipex.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Feb 16 2000 - 02:51:39 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0179.html">Mentore Siesto: "Report on last CVS snapshot"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0177.html">John Gay: "600 resolution quite slow with my 1236S Snapscan?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0180.html">John Vickers: "Xsane-0.55: compile/configure/install nits"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0186.html">Bill Thompson: "Re: Xsane-0.55: compile/configure/install nits"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#178">[ date ]</A>
<A HREF="index.html#178">[ thread ]</A>
<A HREF="subject.html#178">[ subject ]</A>
<A HREF="author.html#178">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hello.
<BR>
<P>I think there are some problems with configuring &amp; building xsane.
<BR>
<P>In short, I think we need:
<BR>
- A way of specifing the location of the sane installation to build with.
<BR>
&nbsp;&nbsp;--with-sane= ??
<BR>
- A way of specifying static linking for the xsane executable.
<BR>
<P>This seems like reasonably standard configury stuff. Not that I'm an
<BR>
expert on autoconf...
<BR>
<P><P><P><P>Building xsane out-of-the-box on a Linux distribution
<BR>
which includes sane is almost bound to fail: the linked libsane
<BR>
will be the libsane from /usr/lib, and include files will be taken from
<BR>
/usr/include
<BR>
<P>E.g. after configuring xsane-0.55 with --prefix=/home/pkg/test
<BR>
--disable-shared
<BR>
I see the following link command for xsane:
<BR>
<P>gcc -o xsane xsane-back-gtk.o xsane-front-gtk.o xsane-gamma.o
<BR>
xsane-preview.o xsane-rc-io.o xsane-device-preferences.o
<BR>
xsane-preferences.o
<BR>
xsane-setup.o xsane-save.o xsane-scan.o xsane-icons.o xsane.o \
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;../lib/liblib.a -lgimp -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk
<BR>
-rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -lpng -lsane -ldl
<BR>
-ltiff -ljpeg -lz -lm
<BR>
<P>I think the recommendation of removing any existing Sane installation
<BR>
may not be an option for policy reasons or simply because necessary
<BR>
permissions are unavailable.
<BR>
<P>My bodge to make xsane link was to configure with:
<BR>
CC=&quot;gcc -L/home/pkg/test/lib -I/home/pkg/test/include&quot;
<BR>
<P>and ewither run the executable with LD_LIBRARY_PATH=/home/pkg/test/lib
<BR>
or link a static binary based on the command line above.
<BR>
<P><P>Solutions:
<BR>
- &quot;One-tree-build&quot;: move xsane into the sane tree. Does this just work ?
<BR>
&nbsp;&nbsp;Is there any reason for not doing this ?
<BR>
- Put -L$(libdir) in the link command, and -I$(includedir) in the compile
<BR>
&nbsp;&nbsp;commands.
<BR>
&nbsp;&nbsp;This will work if, as seems reasonably likely, xsane is being installed
<BR>
&nbsp;&nbsp;to the same place as sane.
<BR>
<P><P>Other problems (installation instructions):
<BR>
<P>The installation instruction to do &quot;make install&quot; as root
<BR>
is unnecessary, and arguably a bad idea. So long as the install dirs are
<BR>
writable, there should be no problem.
<BR>
<P>Similarly, editing /etc/ld.so.conf (or equivalent) is not strictly
<BR>
necessary. The dynamic library search path can be modified by setting
<BR>
LD_LIBRARY_PATH e.g. in ~/.profile.
<BR>
<P><P>Regards,
<BR>
<P>John.
<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;38AA813B.1FA9C27F@dial.pipex.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0179.html">Mentore Siesto: "Report on last CVS snapshot"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0177.html">John Gay: "600 resolution quite slow with my 1236S Snapscan?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0180.html">John Vickers: "Xsane-0.55: compile/configure/install nits"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0186.html">Bill Thompson: "Re: Xsane-0.55: compile/configure/install nits"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#178">[ date ]</A>
<A HREF="index.html#178">[ thread ]</A>
<A HREF="subject.html#178">[ subject ]</A>
<A HREF="author.html#178">[ 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 - 00:04:23 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>