[sane-devel] autoconf/configure and debug
Le mardi 14 juin 2011 22:57:01 Reinhold Kainhofer, vous avez ?crit : > Am Dienstag, 14. Juni 2011, 22:32:25 schrieb Chris Bagwell: > > configure will not default to CFLAGS="-g -O2" if you specify your own > > value. But if your getting two -O2 then something else may be adding > > it as well. > > Yes, the culprit is the net-snmp library... > To get the include path for the net-snmp library, the binary > "net-snmp-config" is called with --cflags and the result is appended to > CFLAGS. Unfortunately, > > reinhold at einstein:~$ net-snmp-config --cflags > -g -O2 -Ulinux -Dlinux=linux -Wall -Wstrict-prototypes -Wwrite-strings > -Wcast- qual -I. -I/home/reinhold/.build/include > > Judging from the output of net-snmp-config --help, there is no other way to > get the correct include pathes / libraries to link to net-snmp without > dragging in all unneeded compiler flags... > > Cheers, > Reinhold Hello, Thanks for your help. By configuring with CFLAGS=-ggdb and --without-snmp I can do the debug I need without optimized out functions or variables. Regards, Stef
[sane-devel] autoconf/configure and debug
Am Dienstag, 14. Juni 2011, 22:32:25 schrieb Chris Bagwell: > configure will not default to CFLAGS="-g -O2" if you specify your own > value. But if your getting two -O2 then something else may be adding > it as well. Yes, the culprit is the net-snmp library... To get the include path for the net-snmp library, the binary "net-snmp-config" is called with --cflags and the result is appended to CFLAGS. Unfortunately, reinhold at einstein:~$ net-snmp-config --cflags -g -O2 -Ulinux -Dlinux=linux -Wall -Wstrict-prototypes -Wwrite-strings -Wcast- qual -I. -I/home/reinhold/.build/include Judging from the output of net-snmp-config --help, there is no other way to get the correct include pathes / libraries to link to net-snmp without dragging in all unneeded compiler flags... Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org
[sane-devel] [PATCH] xerox_mfp: Add USB id for Samsung CLX-216x Series
From: Malte Starostik Tested with a CLX-2160. Signed-off-by: Malte Starostik --- backend/xerox_mfp.conf.in |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/backend/xerox_mfp.conf.in b/backend/xerox_mfp.conf.in index 2a28004..809786b 100644 --- a/backend/xerox_mfp.conf.in +++ b/backend/xerox_mfp.conf.in @@ -18,6 +18,9 @@ usb 0x04e8 0x341b #Samsung SCX4725-FN usb 0x04e8 0x341f +#Samsung CLX-216x Series +usb 0x04e8 0x3425 + #Samsung SCX-4500 usb 0x04e8 0x3426 -- 1.7.3.4
[sane-devel] xerox_mfp: Success with Samsung CLX-2160
Alright, here it is on a silver platter :-)
[sane-devel] autoconf/configure and debug
Am Dienstag, 14. Juni 2011, 21:49:44 schrieb stef: > Hello, > > in order to debug more efficiently, I have to re-edit Makefiles to > remove > the two -O2 options in CFLAGS and change the -g to the -ggdb option. Is > there an easy way to get CFLAGS=-ggdb when configuring SANE ? Have you ever looked at "./configure --help" to find out what options the configure script supports? There you'll see: Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. [...] Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBSlibraries to pass to the linker, e.g. -l [...] So, it is sufficient to simply call the configure script as: ./configure CFLAGS=-ggdbg (If CFLAGS is set, the configure script uses its value, otherwise it uses the default of "-g -O2", which is what you want to prevent). Cheers, Reinhold -- -- Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org
[sane-devel] support for Canon MG8150
On Sat, 2011-06-11 at 12:10 +0200, Louis Lagendijk wrote: > If uou have git commit access you could do that I guess. It is probably > better if the current maintainer of the backend (Nicolas, Gernot?) does > that, the changes do not affect any other devices, so I can not see a > reason not commit. > Hello Gernot, could you please commit this change to git? If you don't have the time, I can have a look at it, but I am currently pretty much loaded with other obligations, so I will not be able to get to this until at earliest this weekend and probably not even then... Thanks Louis
[sane-devel] autoconf/configure and debug
Hello, in order to debug more efficiently, I have to re-edit Makefiles to remove the two -O2 options in CFLAGS and change the -g to the -ggdb option. Is there an easy way to get CFLAGS=-ggdb when configuring SANE ? Regards, Stef
[sane-devel] autoconf/configure and debug
On Tue, Jun 14, 2011 at 2:49 PM, stef wrote: > ? ? ? ?Hello, > > ? ? ? ?in order to debug more efficiently, I have to re-edit Makefiles to > remove > the two -O2 options in CFLAGS and change the -g to the -ggdb option. Is there > an easy way to get CFLAGS=-ggdb when configuring SANE ? > I've not tried this with sane-backends but its supposed to be as simple as: ./configure CFLAGS=-ggdb configure will not default to CFLAGS="-g -O2" if you specify your own value. But if your getting two -O2 then something else may be adding it as well. Chris
[sane-devel] Fwd: Re: scanning only 75 dpi
Hello Stef Thanks for Your informations! As I am a complete "greenhorn" in programming & compiling I need some time to realise, what You suggest & find the *directories I ran thru internet and found the following adresses, which might help me: http://www.sane-project.org/cvs.html http://anonscm.debian.org/gitweb/?p=sane/sane-backends.git http://www3.sane-project.org/sane-backends.html ftp://ftp2.sane-project.org/pub/sane/ As I previously wrote I tried following installations: == ___|_ubuntu 10.10_|_ubuntu 11.04_|_suse 11.3_|_suse 11.4__ xsane .996_|_OK___|__not work.___|_OK| xsane .998_|__|__not work.___|___|__not work._ == "OK" means: working korrektly with 75 & 150 dpi, small formats 300 dpi, 600 dpi interlaced "not work." means: only working with 75 dpi, 150 dpi invalid copies, 300 ff dpi interlaced I will try & tell what happens ... regards Gerrit Am 13.06.2011 21:25, schrieb stef: > Hello, > > I have found a regression in the lexmark backend that appeared in 1.0.22 > and was not present in 1.0.21. I think it would be interesting for you to test > it. You may it without installing it by compiling the latest sources available > from SANE's git repository, then run them with the appended script. When > placed in the 'backend' subdirectory, it runs xsane with the library just > compiled there with full debug logs enabled. > > Regards, > Stef
[sane-devel] Epson Perfection 610 disappeared
Quoting Olaf Meeuwissen : > sedwards at xmission.com writes: > >> [snip, trouble finding device on LinuxMint 10 w/ local build] >> >> Any suggestions as to what I should do next? > > Try as root to rule out and access privilege issues. If that doesn't > shed any light, post a log of the backend's debug output. > > Hope this helps, Doh! That was it. Sorry, I should have thought of that yesterday. Thanks!!
[sane-devel] Project front end
You have not told us what languages you know how to program. I tend to use either C or Perl for most of my work, but I don't often write GUI programs. Other people like C++, or Python, or Java. If there is a SANE binding, or a C-style calling interface, you can use the language of your choice. The choice of language will help you choose the remaining tools, like editor or compiler. allan On Mon, Jun 13, 2011 at 9:16 PM, Tiago Zaniquelli wrote: > Hello, thank you for the reply. > > But I need support and didn't need theses front ends. > > So i want to begin a project. But i never developer to application for > linux. > > Can you help me? Exist documentation? Which tool you use to develop? > > Thank you > > Tiago Zaniquelli > > Em 09/06/2011 16:28, "Jeffrey Ratcliffe" > escreveu: > > -- > 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] 90% off topic - color / gray test strip
Do they really need to be strips? If not, you might get a color scanning calibration target from someone like kodak. allan On Mon, Jun 13, 2011 at 3:48 PM, Pete Lancashire wrote: > I'm looking for a strip or two strips one that is for color correction > and one for grays. I saw such on each side of a drum scanner > they looked to be about 1/4" wide. > > Idea's or pointers to where can ask > > thanks > > -pete > > -- > 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] 90% off topic - color / gray test strip
I was thinking of having a strip on each side of the scanned documents, one for color and one for gray-scale but I'll admint it is a bit overkill. I've been looking at the different IT8 targets. I'll go with getting a Kodak one. It seems it varies quite a bit. but the price is reasonable. If anyone else is interested two URLs http://www.colorwiki.com/wiki/Test_Images and http://www.colorwiki.com/wiki/Kodak_IT8_%28Q60%29_Targets http://www.computer-darkroom.com/it8cal/it8_page_1.htm http://www.computer-darkroom.com/gamma/gamma_1.htm another source of targets http://www.targets.coloraid.de/ -pete On Tue, Jun 14, 2011 at 6:37 AM, m. allan noah wrote: > Do they really need to be strips? If not, you might get a color > scanning calibration target from someone like kodak. > > allan > > On Mon, Jun 13, 2011 at 3:48 PM, Pete Lancashire > wrote: >> I'm looking for a strip or two strips one that is for color correction >> and one for grays. I saw such on each side of a drum scanner >> they looked to be about 1/4" wide. >> >> Idea's or pointers to where can ask >> >> thanks >> >> -pete >> >> -- >> 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 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 >
[sane-devel] Epson Perfection 610 disappeared
sedwards at xmission.com writes: > [snip, trouble finding device on LinuxMint 10 w/ local build] > > Any suggestions as to what I should do next? Try as root to rule out and access privilege issues. If that doesn't shed any light, post a log of the backend's debug output. Hope this helps, -- Olaf Meeuwissen, LPIC-2 FLOSS Engineer -- AVASYS CORPORATION FSF Associate Member #1962 Help support software freedom http://www.fsf.org/jf?referrer=1962
[sane-devel] Project front end
Le mardi 14 juin 2011 03:16:46 Tiago Zaniquelli, vous avez ?crit : > Hello, thank you for the reply. > > But I need support and didn't need theses front ends. > > So i want to begin a project. But i never developer to application for > linux. > > Can you help me? Exist documentation? Which tool you use to develop? > > Thank you > > Tiago Zaniquelli > Em 09/06/2011 16:28, "Jeffrey Ratcliffe" > escreveu: Hello, existing frontends may serve as documentation and inspiration. The sane standard document in the 'doc' subdirectory gives information on writing a frontend. Regarding the tools to use you may choose: - a text editor and command line - eclipse CDT - KDE's kdevelop - gnome's anjuta Regards, Stef