sane-project-website/old-archive/2000-10/0328.html

153 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: Re: sane-config</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@Wolfsburg.DE)">
<META NAME="Subject" CONTENT="Re: sane-config">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: sane-config</H1>
<!-- received="Tue Oct 31 10:53:02 2000" -->
<!-- isoreceived="20001031185302" -->
<!-- sent="Tue, 31 Oct 2000 18:44:59 +0100" -->
<!-- isosent="20001031174459" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: sane-config" -->
<!-- id="39FF051B.92A387AC@wolfsburg.de" -->
<!-- inreplyto="200010310634.OAA05108@minerva.ee.uwa.edu.au" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@Wolfsburg.DE?Subject=Re:%20sane-config&In-Reply-To=&lt;39FF051B.92A387AC@wolfsburg.de&gt;"><EM>oliver.rauch@Wolfsburg.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Oct 31 2000 - 09:44:59 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0329.html">Oliver Rauch: "Re: X-Frontends (xscanimage+xcam) and sane-1.0.4"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0327.html">John Craig: "Re: Agfa Snapscan 310 color problem"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0323.html">Petter Reinholdtsen: "Re: sane-config"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0340.html">Petter Reinholdtsen: "Re: sane-config"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#328">[ date ]</A>
<A HREF="index.html#328">[ thread ]</A>
<A HREF="subject.html#328">[ subject ]</A>
<A HREF="author.html#328">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Petter Reinholdtsen wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; does not only print the libs required for compiling sane.
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; $sane-config --libs
</EM><BR>
<EM>&gt; &gt; -lsane -ldl -lnsl -ljpeg -lintl -lm
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; It lists all libraries used by SANE backends. Why is this wrong?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; Is someone &quot;maintaining&quot; sane-config?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Well, I made it, but you can just do the changes you need.
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt; ##&gt; Petter Reinholdtsen &lt;## | <A HREF="mailto:pere@td.org.uit.no?Subject=Re:%20sane-config&In-Reply-To=&lt;39FF051B.92A387AC@wolfsburg.de&gt;">pere@td.org.uit.no</A>
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt; Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
</EM><BR>
<EM>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20sane-config&In-Reply-To=&lt;39FF051B.92A387AC@wolfsburg.de&gt;">majordomo@mostang.com</A>
</EM><BR>
<P>Hi Petter,
<BR>
<P>the help says:
<BR>
<P>$ sane-config -h
<BR>
Usage:
<BR>
&nbsp;&nbsp;sane-config --libs - libraries required to link with SANE
<BR>
<P>So it should print the libs that a required to link a program with sane
<BR>
and not the ones the sane libs are linked against.
<BR>
<P>$ ldd /usr/local/lib/sane/libsane-dll.so
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;libc.so.6 =&gt; /lib/libc.so.6 (0x4000e000)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x80000000)
<BR>
<P>it looks like ld (=ld-linux?) is already linked to libsane-dll,
<BR>
the other ones are not needed (If I compile xscanimage without
<BR>
linking nsl, jpeg and intl everything works fine)!
<BR>
<P>I think that if the required libs are linked to the sane backends
<BR>
it should be enough if a frontend links against libsane.
<BR>
<P>So if a backend needs a jpeg library, the library has to be linked
<BR>
to the backend lib not to the frontend.
<BR>
<P>So the output of sane-config should be &quot;-lsane&quot; ?!
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><P><PRE>
--
Homepage: <A HREF="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</A>
sane-umax: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-umax.html">http://www.wolfsburg.de/~rauch/sane/sane-umax.html</A>
xsane: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-xsane.html">http://www.wolfsburg.de/~rauch/sane/sane-xsane.html</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@Wolfsburg.DE?Subject=Re:%20sane-config&In-Reply-To=&lt;39FF051B.92A387AC@wolfsburg.de&gt;">Oliver.Rauch@Wolfsburg.DE</A>
<P>--
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:%20sane-config&In-Reply-To=&lt;39FF051B.92A387AC@wolfsburg.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0329.html">Oliver Rauch: "Re: X-Frontends (xscanimage+xcam) and sane-1.0.4"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0327.html">John Craig: "Re: Agfa Snapscan 310 color problem"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0323.html">Petter Reinholdtsen: "Re: sane-config"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0340.html">Petter Reinholdtsen: "Re: sane-config"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#328">[ date ]</A>
<A HREF="index.html#328">[ thread ]</A>
<A HREF="subject.html#328">[ subject ]</A>
<A HREF="author.html#328">[ 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>Tue Oct 31 2000 - 10:53:41 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>