<div dir="ltr"><div><div><div><div><div><br></div>1. I don't think you want to use --disable-shared.  You should build and install shared libraries someplace that your system's linker will find them.<br></div><br>2. You get debug logging by using environment variables with any sane frontend, like so:<br>
</div><br>SANE_DEBUG_RICOH=255 scanimage -L<br><br></div>3. You do not see any scanners listed by scanimage -L because the sane-backend only supports a few older ricoh scanners. I doubt your scanner is supported. Three different backends provide this support. <br>
<br>See a list here: <a href="http://www.sane-project.org/sane-mfgs.html#Z-RICOH">http://www.sane-project.org/sane-mfgs.html#Z-RICOH</a><br><br></div>allan<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 23, 2013 at 6:24 AM,  <span dir="ltr"><<a href="mailto:YiHao@rst.ricoh.com" target="_blank">YiHao@rst.ricoh.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Sir or Madam:<br>
I was so pleased to received your reply,<br>
<br>
I have some questions about using the debugging library,Can you give me<br>
some advice?<br>
①<br>
If I want to debug the sane-backends(e.g. ricoh.c),<br>
Please give me some advice for the following steps(Is there anything<br>
wrong?).<br>
-----------------------------------------<br>
1>CFLAGS="-g" ./configure --disable-shared BACKENDS="ricoh"<br>
2>make<br>
3>make install<br>
4>... ...(How Can I make this step?)<br>
-----------------------------------------<br>
②<br>
I'm not sure, If I can get the debug information through the following<br>
steps.<br>
-----------------------------------------<br>
1>CFLAGS="-g" ./configure --disable-shared<br>
2>make<br>
3>make install<br>
<br>
 "scanimage -L"  --Faild to get the debug information.<br>
-----------------------------------------<br>
③<br>
I can't get any sane-backends information by "scanimage -L",<br>
Whether I must have a scanner device connected to My computer through USB<br>
or SCSI ?<br>
<br>
Thank you very much, Looking forward to your reply.<br>
Best Regard<br>
Yours Sincerely,  Yihao<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
We have a debugging library which is part of sane-backends. It allows you<br>
to set an environment variable, and which causes the backend to print<br>
messages to STDERR. If your backend is part of sane-backends, you can use<br>
this library. If you backend is outside of sane-backends, you can certainly<br>
setup something similar in your backend. You should not have to recompile<br>
the frontend.<br>
<br>
allan<br>
<br>
<br>
On Thu, Aug 22, 2013 at 6:46 AM,  <<a href="mailto:YiHao@rst.ricoh.com">YiHao@rst.ricoh.com</a>>wrote:<br>
<br>
Dear Sir or Madam:<br>
<br>
I want to know,<br>
How can I debug the sane-backend by frontend(e.g. scanimage),<br>
<br>
How to enter the backend's breakpoint,<br>
Do I need to compile the frontend if I want to know  whether the backend<br>
receives the Frontend command.<br>
<br>
<br>
<br>
<br>
<br>
Can you give me some advise, Thank you.<br>
Best Regard<br>
<br>
Yours Sincerely, Yihao<br>
<br>
<br>
--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
<br>
<br>
<br>
<br>
--<br>
"The truth is an offense, but not a sin"</blockquote></div><br><br clear="all"><br>-- <br>"The truth is an offense, but not a sin"
</div>