You are running a recompiled version of scanimage, which searches /usr/local for libraries. Your system provided xsane does not do this. Try telling the linker where to look like so:
LD_LIBRARY_PATH=/usr/local/lib SANE_DEBUG_RICOH=255 xsane If this works, you can make it permanent by adding /usr/local/lib to /etc/ld.so.conf, and running ldconfig allan On Tue, Nov 5, 2013 at 5:21 AM, <YiHao at rst.ricoh.com> wrote: > Hello allan, > > I can get debug log with scanimage, Thanks a lot ! > But, I can not get the debug log of the backends correctly with the > graphical frontend(xscanimage or xsane). > ----------------------------------------- > 1>CFLAGS="-g -o" ./configure BACKENDS="ricoh" > 2>make > 3>make install > 4>SANE_DEBUG_RICOH=255 xsane --->XSANE has been started, but I can get > the debug logging of the backends > ----------------------------------------- > I'm not sure, > Whether the problem is because the installation path can not be the default > </usr/local/lib/sane/>. > > What should I do if I want to get the debug log of the backends using the > graphical frontend, > Look forward to your help, Thank you~ > > Best Regard > Yours Sincerely, Yihao > > > > > > > "m. allan noah" > <kitno455 at gmail.c > om> To > YiHao at rst.ricoh.com > 08/23/2013 07:29 cc > PM sane-devel > <sane-devel at lists.alioth.debian.org > >, yihao1008 at 163.com > Subject > Re: [sane-devel] Can you help me > > > > > > > > > > > > 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" -- "The truth is an offense, but not a sin"