sane-project-website/old-archive/2001-04/0317.html

178 wiersze
6.6 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: same old &quot;no device&quot; problem</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
<META NAME="Subject" CONTENT="Re: same old &quot;no device&quot; problem">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: same old &quot;no device&quot; problem</H1>
<!-- received="Mon Apr 30 10:14:42 2001" -->
<!-- isoreceived="20010430171442" -->
<!-- sent="Mon, 30 Apr 2001 19:14:16 +0200" -->
<!-- isosent="20010430171416" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="henning@meier-geinitz.de" -->
<!-- subject="Re: same old &quot;no device&quot; problem" -->
<!-- id="20010430191416.B29674@vortex.swb.de" -->
<!-- inreplyto="3AECF109.1060206@columbus.rr.com" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20same%20old%20&quot;no%20device&quot;%20problem&In-Reply-To=&lt;20010430191416.B29674@vortex.swb.de&gt;"><EM>henning@meier-geinitz.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Apr 30 2001 - 10:14:16 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0318.html">Henning Meier-Geinitz: "Re: : trust imagery 1200 wont work with xscanimage &quot;no sane device&quot;"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0316.html">Henning Meier-Geinitz: "Re: No SANE Devices Found"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0311.html">mKlein: "same old &quot;no device&quot; problem"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#317">[ date ]</A>
<A HREF="index.html#317">[ thread ]</A>
<A HREF="subject.html#317">[ subject ]</A>
<A HREF="author.html#317">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>On Sun, Apr 29, 2001 at 11:58:49PM -0500, mKlein wrote:
<BR>
<EM>&gt; The last hurdle lies with this problem that a lot of people seem to
</EM><BR>
<EM>&gt; have.
</EM><BR>
<P>You are talking about the &quot;no device&quot; problem? If scanimage prints the
<BR>
&quot;No scanners were identified...&quot; message that just means that. There
<BR>
are lots of reasons for the message (scanner not supported, driver not
<BR>
load, permission problems, configuration problems etc.).
<BR>
<P><EM>&gt; After installing the backend, frontend and xsane, then configuring
</EM><BR>
<EM>&gt; snapscan.conf and dll.conf to utilize my scanner, I am unable to run
</EM><BR>
<EM>&gt; xscanimage or xsane from anything but /usr/local/etc/sane.d. Usually
</EM><BR>
<EM>&gt; I get a &quot;No Devices Available&quot; error from everywhere but that
</EM><BR>
<EM>&gt; directory.
</EM><BR>
<P>That probably means that your config files aren't found. As the
<BR>
directory &quot;/usr/local/etc/sane.d&quot; is the default directory I really
<BR>
don't know why this happens. Try to use a freshly installed
<BR>
sane-backends-1.0.4.tar.gz from www.mostang.com and don't set
<BR>
SANE_CONFIG_DIR. That's what's in the sanei/sanei_config.c file:
<BR>
<P>/* Search configuration file FILENAME along directory list DIR_LIST
<BR>
&nbsp;&nbsp;&nbsp;and return file pointer if such a file exists. FILENAME should be
<BR>
&nbsp;&nbsp;&nbsp;a filename with extension (such as &quot;mustek.conf&quot;).
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1st: SANE_CONFIG_DIR environment variable.
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2nd: PATH_SANE_CONFIG_DIR set during configuration.
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3rd: Current directory.
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>
&nbsp;&nbsp;&nbsp;Output: File pointer, or NULL if not found. */
<BR>
<P>You can have a look at the code of this file to see if I am right.
<BR>
<P><EM>&gt; However, I can dump the executables in /sane.d and symlink them to
</EM><BR>
<EM>&gt; /usr/local/bin and it runs just fine anywhere from the command line.
</EM><BR>
<EM>&gt; This is simply a work-around and doesn't help with trying to get them to
</EM><BR>
<EM>&gt; run as plug-ins in GIMP 1.2. There seems to be nothing I can do to get
</EM><BR>
<EM>&gt; that part working.
</EM><BR>
<P>sanei_config_open() can't find the files in PATH_SANE_CONFIG_DIR
<BR>
(which is /usr/local/etc/sane.d if configure wasn't given any
<BR>
arguments) so it uses the current directory. That's why it works if
<BR>
the executable is placed in sane.d/.
<BR>
<P><EM>&gt; A friend mentioned I would have to make sure sane.d was in my
</EM><BR>
<EM>&gt; path. As a intermediate newbie I can say I know what he is talking
</EM><BR>
<EM>&gt; about but not how to do that.
</EM><BR>
<P>He is right if he says that you can put scanimage to
<BR>
/usr/local/etc/sane.d/ and run it just with its name by adding the
<BR>
name of the directory to the $PATH environment variable. But that's
<BR>
not the right solution.
<BR>
<P>To check where sanei_config_open() really looks for the config files
<BR>
you can use the following command:
<BR>
<P>SANE_DEBUG_SANEI_CONFIG=255 SANE_DEBUG_SNAPSCAN=255 scanimage -L
<BR>
<P>Probably that's &quot;/etc/sane.d&quot;, maybe something left from a distribution or
<BR>
pre vious tries with your sane installation.
<BR>
<P><EM>&gt; /dev/sg1
</EM><BR>
<P>As a workaround, adding a symlink /dev/scanner to /dev/sg1 will work if I
<BR>
understood the snapscan backend correctly.
<BR>
<P>Bye,
<BR>
&nbsp;&nbsp;Henning
<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:%20same%20old%20&quot;no%20device&quot;%20problem&In-Reply-To=&lt;20010430191416.B29674@vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0318.html">Henning Meier-Geinitz: "Re: : trust imagery 1200 wont work with xscanimage &quot;no sane device&quot;"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0316.html">Henning Meier-Geinitz: "Re: No SANE Devices Found"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0311.html">mKlein: "same old &quot;no device&quot; problem"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#317">[ date ]</A>
<A HREF="index.html#317">[ thread ]</A>
<A HREF="subject.html#317">[ subject ]</A>
<A HREF="author.html#317">[ 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>Mon Apr 30 2001 - 10:17:39 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>