kopia lustrzana https://gitlab.com/sane-project/website
246 wiersze
8.8 KiB
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=<38ABDAEA.480BA1A0@samart.co.th>"><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>>
|
||
|
</EM><BR>
|
||
|
<EM>> Hello.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> I think there are some problems with configuring & building xsane.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> In short, I think we need:
|
||
|
</EM><BR>
|
||
|
<EM>> - A way of specifing the location of the sane installation to build with.
|
||
|
</EM><BR>
|
||
|
<EM>> --with-sane= ??
|
||
|
</EM><BR>
|
||
|
<EM>> - A way of specifying static linking for the xsane executable.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> This seems like reasonably standard configury stuff. Not that I'm an
|
||
|
</EM><BR>
|
||
|
<EM>> expert on autoconf...
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> Building xsane out-of-the-box on a Linux distribution
|
||
|
</EM><BR>
|
||
|
<EM>> which includes sane is almost bound to fail: the linked libsane
|
||
|
</EM><BR>
|
||
|
<EM>> will be the libsane from /usr/lib, and include files will be taken from
|
||
|
</EM><BR>
|
||
|
<EM>> /usr/include
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> E.g. after configuring xsane-0.55 with --prefix=/home/pkg/test
|
||
|
</EM><BR>
|
||
|
<EM>> --disable-shared
|
||
|
</EM><BR>
|
||
|
<EM>> I see the following link command for xsane:
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> gcc -o xsane xsane-back-gtk.o xsane-front-gtk.o xsane-gamma.o
|
||
|
</EM><BR>
|
||
|
<EM>> xsane-preview.o xsane-rc-io.o xsane-device-preferences.o
|
||
|
</EM><BR>
|
||
|
<EM>> xsane-preferences.o
|
||
|
</EM><BR>
|
||
|
<EM>> xsane-setup.o xsane-save.o xsane-scan.o xsane-icons.o xsane.o \
|
||
|
</EM><BR>
|
||
|
<EM>> ../lib/liblib.a -lgimp -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk
|
||
|
</EM><BR>
|
||
|
<EM>> -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -lpng -lsane -ldl
|
||
|
</EM><BR>
|
||
|
<EM>> -ltiff -ljpeg -lz -lm
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> I think the recommendation of removing any existing Sane installation
|
||
|
</EM><BR>
|
||
|
<EM>> may not be an option for policy reasons or simply because necessary
|
||
|
</EM><BR>
|
||
|
<EM>> permissions are unavailable.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> My bodge to make xsane link was to configure with:
|
||
|
</EM><BR>
|
||
|
<EM>> CC="gcc -L/home/pkg/test/lib -I/home/pkg/test/include"
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> and ewither run the executable with LD_LIBRARY_PATH=/home/pkg/test/lib
|
||
|
</EM><BR>
|
||
|
<EM>> or link a static binary based on the command line above.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> Solutions:
|
||
|
</EM><BR>
|
||
|
<EM>> - "One-tree-build": move xsane into the sane tree. Does this just work ?
|
||
|
</EM><BR>
|
||
|
<EM>> Is there any reason for not doing this ?
|
||
|
</EM><BR>
|
||
|
<EM>> - Put -L$(libdir) in the link command, and -I$(includedir) in the compile
|
||
|
</EM><BR>
|
||
|
<EM>> commands.
|
||
|
</EM><BR>
|
||
|
<EM>> This will work if, as seems reasonably likely, xsane is being installed
|
||
|
</EM><BR>
|
||
|
<EM>> to the same place as sane.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> Other problems (installation instructions):
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> The installation instruction to do "make install" as root
|
||
|
</EM><BR>
|
||
|
<EM>> is unnecessary, and arguably a bad idea. So long as the install dirs are
|
||
|
</EM><BR>
|
||
|
<EM>> writable, there should be no problem.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> Similarly, editing /etc/ld.so.conf (or equivalent) is not strictly
|
||
|
</EM><BR>
|
||
|
<EM>> necessary. The dynamic library search path can be modified by setting
|
||
|
</EM><BR>
|
||
|
<EM>> LD_LIBRARY_PATH e.g. in ~/.profile.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> Regards,
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> John.
|
||
|
</EM><BR>
|
||
|
|
||
|
<BR>
|
||
|
John,
|
||
|
<BR>
|
||
|
<P> I just finished compiling xsane 0.56 and got the same link statements
|
||
|
<BR>
|
||
|
as you. But when I run 'ldd xsane', I get:
|
||
|
<BR>
|
||
|
<P> [root@darkside bin]# ldd xsane
|
||
|
<BR>
|
||
|
libgimp.so.1 => /usr/lib/libgimp.so.1 (0x4001a000)
|
||
|
<BR>
|
||
|
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x4002a000)
|
||
|
<BR>
|
||
|
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4016b000)
|
||
|
<BR>
|
||
|
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x401a0000)
|
||
|
<BR>
|
||
|
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x401a4000)
|
||
|
<BR>
|
||
|
libdl.so.2 => /lib/libdl.so.2 (0x401c9000)
|
||
|
<BR>
|
||
|
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x401cd000)
|
||
|
<BR>
|
||
|
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401da000)
|
||
|
<BR>
|
||
|
libm.so.6 => /lib/libm.so.6 (0x4028c000)
|
||
|
<BR>
|
||
|
libpng.so.2 => /usr/lib/libpng.so.2 (0x402aa000)
|
||
|
<BR>
|
||
|
libsane.so.1 => /usr/local/lib/libsane.so.1 (0x402ca000)
|
||
|
<BR>
|
||
|
libtiff.so.3 => /usr/lib/libtiff.so.3 (0x402cf000)
|
||
|
<BR>
|
||
|
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x402fd000)
|
||
|
<BR>
|
||
|
libz.so.1 => /usr/lib/libz.so.1 (0x4031e000)
|
||
|
<BR>
|
||
|
libc.so.6 => /lib/libc.so.6 (0x4032d000)
|
||
|
<BR>
|
||
|
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
|
||
|
<BR>
|
||
|
<P> Which shows where libsane.so.1 lives. I don't see one in /usr/lib.
|
||
|
<BR>
|
||
|
|
||
|
<BR>
|
||
|
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=<38ABDAEA.480BA1A0@samart.co.th>">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>
|