[sane-devel] About the configure.in
Dear allan Thank you for your help, I reply late feel shy. 1.It must be --disable-shared When I recompiled the backend, otherwise, there will be compile errors. ~ $B-!(BCFLAGS=-g -Wall ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib BACKENDS=ricoh $B-(Bmake ... undefined reference to 'sanei_tcp_open' ... undefined reference to 'sanei_tcp_write' ... undefined reference to 'sanei_tcp_read' $B,(BI have been include the head file, #include sane/sanei_tcp.h or #include ./include/sane/sanei_tcp.h but can not fix the error if not the --disable-shared Thanks Very Much,Best Regard Yours Sincerely, 1. you did not tell me the link error, so I cannot tell you how to fix! 2. Different linux distributions put libraries in different places. You want something like ./configure --prefix=/usr --sysconfdir=/etc but you might have to add something like --libdir=/usr/lib64, if that is where your distribution put the existing copy of libsane.so allan On Wed, Nov 20, 2013 at 5:43 AM, YiHao at rst.ricoh.com wrote: Dear allan: Thanks a lot for your help, I have some other question about sane to trouble you: $B-!(BIt must be --disable-shared When I recompiled the backend, otherwise, there will be link-errors. I was wondering if it must be --disable-shared or should I use other methods to avoid the link-error. $B-(B Could you give me some advise about how to modify the /configure.in, If I want to using the proper arguments to overwrite the installed copy of sane. eg. == default: /use/local/etc/sane.d/ $B-(B /etc/saned.d/ == Best Regard Yours Sincerely, -- The truth is an offense, but not a sin
[sane-devel] About the configure.in
Dear allan: Thanks a lot for your help, I have some other question about sane to trouble you: $B-!(BIt must be --disable-shared When I recompiled the backend, otherwise, there will be link-errors. I was wondering if it must be --disable-shared or should I use other methods to avoid the link-error. $B-(B Could you give me some advise about how to modify the /configure.in, If I want to using the proper arguments to overwrite the installed copy of sane. eg. == default: /use/local/etc/sane.d/ $B-(B /etc/saned.d/ == Best Regard Yours Sincerely,
[sane-devel] Could you help me
Dear allan: Thanks for your help, I still can't get the debug log by using the following, LD_LIBRARY_PATH=/usr/local/libSANE_DEBUG_RICOH=255 xsane ==? LD_LIBRARY_PATH=/usr/local/lib/sane SANE_DEBUG_RICOH=255 xsane == ? I would like to ask whether there are other LD_LIBRARY_PATH needs to be set. Best Regard Yours Sincerely, Yihao m. allan noah kitno455 at gmail.com wrote on 11/05/2013 09:45:32 PM: 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). - 1CFLAGS=-g -o ./configure BACKENDS=ricoh 2make 3make install 4SANE_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 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.comwrote: 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?). - 1CFLAGS=-g ./configure --disable-shared BACKENDS=ricoh 2make 3make install 4... ...?How Can I make this step?? - ? I'm not sure, If I can get the debug information through the following steps. - 1CFLAGS=-g ./configure --disable-shared 2make 3make 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.comwrote: 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
[sane-devel] Get the devices about sane
Dear allan: I am sorry to trouble you again, I can use the sane backend by following methods, SANE_DEBUG_RICOH=255 scanimage --format=tiff out1.tiff but if no environment variables SANE_DEBUG_RICOH=255, sane will not be able to work = scanimage: no SANE devices found. Excuse me, Is this what I need to do? Look forward to your help, Thank you~ Best Regard Yours Sincerely, Yihao
[sane-devel] Can you help me
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). - 1CFLAGS=-g -o ./configure BACKENDS=ricoh 2make 3make install 4SANE_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 omTo YiHao at rst.ricoh.com 08/23/2013 07:29 cc PMsane-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.comwrote: 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?). - 1CFLAGS=-g ./configure --disable-shared BACKENDS=ricoh 2make 3make install 4... ...?How Can I make this step?? - ? I'm not sure, If I can get the debug information through the following steps. - 1CFLAGS=-g ./configure --disable-shared 2make 3make 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.comwrote: 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
[sane-devel] Can you help me
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?). - 1CFLAGS=-g ./configure --disable-shared BACKENDS=ricoh 2make 3make install 4... ...?How Can I make this step?? - ? I'm not sure, If I can get the debug information through the following steps. - 1CFLAGS=-g ./configure --disable-shared 2make 3make 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.comwrote: 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
[sane-devel] 【Sane Develop】Can you help me
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