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.
2. You get debug logging by using environment variables with any sane frontend, like so: SANE_DEBUG_RICOH=255 scanimage -L 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. See a list here: http://www.sane-project.org/sane-mfgs.html#Z-RICOH allan On Fri, Aug 23, 2013 at 6:24 AM, <YiHao at rst.ricoh.com> wrote: > Dear Sir or Madam: > I was so pleased to received your reply, > > I have some questions about using the debugging library?Can you give me > some advice? > ? > If I want to debug the sane-backends(e.g. ricoh.c), > Please give me some advice for the following steps(Is there anything > wrong?). > ----------------------------------------- > 1>CFLAGS="-g" ./configure --disable-shared BACKENDS="ricoh" > 2>make > 3>make install > 4>... ...?How Can I make this step?? > ----------------------------------------- > ? > I'm not sure, If I can get the debug information through the following > steps. > ----------------------------------------- > 1>CFLAGS="-g" ./configure --disable-shared > 2>make > 3>make install > > "scanimage -L" --Faild to get the debug information. > ----------------------------------------- > ? > I can't get any sane-backends information by "scanimage -L", > Whether I must have a scanner device connected to My computer through USB > or SCSI ? > > Thank you very much, Looking forward to your reply. > Best Regard > Yours Sincerely, Yihao > > > > > > > > > > > > We have a debugging library which is part of sane-backends. It allows you > to set an environment variable, and which causes the backend to print > messages to STDERR. If your backend is part of sane-backends, you can use > this library. If you backend is outside of sane-backends, you can certainly > setup something similar in your backend. You should not have to recompile > the frontend. > > allan > > > On Thu, Aug 22, 2013 at 6:46 AM, <YiHao at rst.ricoh.com>wrote: > > Dear Sir or Madam: > > I want to know, > How can I debug the sane-backend by frontend(e.g. scanimage), > > How to enter the backend's breakpoint, > Do I need to compile the frontend if I want to know whether the backend > receives the Frontend command. > > > > > > Can you give me some advise, Thank you. > Best Regard > > Yours Sincerely, Yihao > > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-request at lists.alioth.debian.org > > > > > -- > "The truth is an offense, but not a sin" -- "The truth is an offense, but not a sin" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130823/37f2c295/attachment.html>