[sane-devel] Visioneer Problems
The above comments are in response to m. allan noah's email of 05/06/07 14:52 as quoted below: > On 6/5/07, Robin Stewart wrote: >> >> The above comments are in response to m. allan noah's email of 05/06/07 >> 00:25 as quoted below: >> ok- as we covered recently, you have to upgrade the avision backend >> with the one from rene's site. this will involve: >> >> 1. downloading and extracting the sane source code >> 2. downloading and possibly extracting rene's updated files >> 3. replacing some files in the sane tarball with those from rene >> 4. configure sane with the proper arguments to overwrite that provided >> by your os >> 5. make && make install >> >> you still feeling game? >> >> I gave up last time because I was not able to follow the >> instructions to >> the stage that I had a working scanner. I hoped that as some time had >> passed >> it would be easier. So far it has easier as I have gained experience >> in the >> mean time, but that list above is daunting especially as you tend >> think I >> have the necessary knowledge on how to do this type of thing. As I >> need a >> scanner working I will try. > > you are trying to use a newer scanner than your sane install, so > unless you want to wait for the next release of sane or replace your > scanner, you are going to have to learn :) > > i wont spoon feed you, but i will answer questions. start with step > one: download stable source from www.sane-project.org, and use tar to > extract the file. lets see how that goes, I have d/l sane-backends-1.0.18.tar.gz and extracted the files to a temp directory. Rene had written to me saying: > The XP 450 ID shoudl already be in the backend, at least my SVN > development tree: > > http://www.exactcode.de/site/open_source/saneavision/ > > Can you copy the files from: > > http://svn.exactcode.de/sane-avision/trunk/backend/ > > Into your local SANE source and recompile sane-backends? I had a look at the trunk/backend location and there are 3 subdirectories there: Avision. c .conf .h Referring to te extracted files from 1.0.18 in the temporary Backend Folder there are the same named files but avision.conf is in the extracted files as avision.conf.in I assume I copy the trunk/backend files into the Backend folder of the temp directory, but what about the avision.conf.in? Robin -- Finally - A spam blocker that actually works. http://www.bluebottle.com
[sane-devel] Visioneer Problems
> >> 1. downloading and extracting the sane source code > >> 2. downloading and possibly extracting rene's updated files > >> 3. replacing some files in the sane tarball with those from rene > >> 4. configure sane with the proper arguments to overwrite that provided > >> by your os > >> 5. make && make install > Rene had written to me saying: > > Can you copy the files from: > > > > http://svn.exactcode.de/sane-avision/trunk/backend/ > > > > Into your local SANE source and recompile sane-backends? > I had a look at the trunk/backend location and there are 3 > subdirectories there: > > Avision. c >.conf >.h those are files, not subdirs, but yes, that is what we are after. > Referring to te extracted files from 1.0.18 in the temporary Backend > Folder there are the same named files but avision.conf is in the > extracted files as avision.conf.in > > I assume I copy the trunk/backend files into the Backend folder of the > temp directory, but what about the avision.conf.in? yes, overwrite the files in 'backend', but rename rene's avision.conf to avision.conf.in first. that is a more recent change that rene perhaps did not make to his private copy. then you are off to step 4. you will want to make sure you have /usr/include/usb.h first. if not, install the libusb-dev or libusb-devel package that came with your os. you need to determine where your existing compilation of sane has installed its files, and pass the correct arguments to ./configure to use the same locations. this will overwrite the originals instead of installing a second copy (which causes issues generally). run configure with the --help option for more info. basically, we want to overwrite the scanimage and sane-find-scanner programs, (probably in /usr/bin), the saned daemon program (probably in /usr/sbin) as well as libsane.so.* and the sane/libsane-* libraries (probably in /usr/lib). we also want to overwrite /etc/sane.d probably something like: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var though if you are on a 64 bit linux system you might have to add --libdir=/usr/lib64 allan -- "The truth is an offense, but not a sin"
[sane-devel] Sane Compile - Parse Error
Hi Allan, On 04/06/07, m. allan noah wrote: > platform/compiler/clibrary version info? Platform: MinGW (from Cygwin) Compiler: GCC 3.4.4 I'm not sure what you mean by C library version. Hugh > On 6/4/07, Hugh McMaster wrote: > > Hi everyone, > > > > I am trying to compile Sane, and everything is working, until the > > compiler exits during the 'make' process with: > > > > sanei_scsi.c: In function `sanei_scsi_open': > > sanei_scsi.c:1220: warning: assignment makes integer from pointer without a > > cast > > sanei_scsi.c:1222: warning: comparison between pointer and integer > > sanei_scsi.c:855: warning: unused variable `real_dev' > > sanei_scsi.c: In function `sanei_scsi_close': > > sanei_scsi.c:1572: warning: passing arg 1 of `CloseHandle' makes > > pointer from integer without a cast > > sanei_scsi.c: In function `sanei_scsi_cmd2': > > sanei_scsi.c:4755: warning: assignment discards qualifiers from > > pointer target type > > sanei_scsi.c:4763: warning: implicit declaration of function `offsetof' > > sanei_scsi.c:4763: error: parse error before "struct" > > sanei_scsi.c:4770: warning: passing arg 1 of `DeviceIoControl' makes > > pointer from integer without a cast > > sanei_scsi.c: At top level: > > sanei_scsi.c:5833: warning: unused parameter 'fd' > > sanei_scsi.c:5824: warning: unused parameter 'id' > > sanei_scsi.c:5819: warning: unused parameter 'idp' > > sanei_scsi.c:4809: warning: unused parameter 'findtype' > > > > I'm not worried about the unused parameters, as those often come up > > during compiling of any sources. I'm just concerned about the error. > > I'm using the CVS version from June 17 2007.
[sane-devel] network attached hp officejet 7310
Hello, On Jun 4 12:05 Allan Gottlieb wrote (shortened): > I have an officejet 7310 on our lan at address 192.168.1.50. The hpaio driver is not part of the SANE software but a so called "external backend", which comes directly from HP, see http://hplip.sourceforge.net/ For example see http://hplip.sourceforge.net/troubleshooting/network.html By the way: The "net" backend is only to be used in conjunction with "saned", e.g. see "man saned" and "man sane-net" or have a look at http://www.sane-project.org/docs.html Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex
[sane-devel] network attached hp officejet 7310
At Tue, 05 Jun 2007 12:21:00 +0200 (CEST) Johannes Meixner wrote: > On Jun 4 12:05 Allan Gottlieb wrote (shortened): >> I have an officejet 7310 on our lan at address 192.168.1.50. > > The hpaio driver is not part of the SANE software but a so called > "external backend", which comes directly from HP, see > http://hplip.sourceforge.net/ Right. I have that driver. When installed (under gentoo) the line hpaio is appended to /etc/sane.d/dll.conf > For example see > http://hplip.sourceforge.net/troubleshooting/network.html This talks about general connectivity and printing. I can print fine to the officejet using HPLIP. > By the way: > The "net" backend is only to be used in conjunction with "saned", > e.g. see "man saned" and "man sane-net" or have a look at > http://www.sane-project.org/docs.html This may be the trouble. You are certainly correct that I am likely in error messing with net since that is for a server. I just read a few more docs (thanks for the reference) and they all refer to a scanner that is attached (often via usb) to a host. However, in my case the scanner *is* the host. That is, the hp7310 is a network device. The hp7130 has a url on our lan (namely 192.168.1.50). I can ping that url, I can print to it (via cups), but I guess my question is "How do I tell the scan client that the scanner is a network device with address 192.168.1.50?" Thanks, allan
[sane-devel] Sane Compile - Parse Error
hmm, no offsetof macro in mingw's c lib? or maybe the correct header is not included on mingw build (usually stddef.h)? if you cant find it, you could try adding this to sanei-scsi.h #define offsetof(TYPE, MEMBER) ((size_t) & (((TYPE*) 0)->MEMBER)) just to see if that works. allan On 6/5/07, Hugh McMaster wrote: > Hi Allan, > > On 04/06/07, m. allan noah wrote: > > platform/compiler/clibrary version info? > > Platform: MinGW (from Cygwin) > Compiler: GCC 3.4.4 > > I'm not sure what you mean by C library version. > > Hugh > > > On 6/4/07, Hugh McMaster wrote: > > > Hi everyone, > > > > > > I am trying to compile Sane, and everything is working, until the > > > compiler exits during the 'make' process with: > > > > > > sanei_scsi.c: In function `sanei_scsi_open': > > > sanei_scsi.c:1220: warning: assignment makes integer from pointer without > > > a cast > > > sanei_scsi.c:1222: warning: comparison between pointer and integer > > > sanei_scsi.c:855: warning: unused variable `real_dev' > > > sanei_scsi.c: In function `sanei_scsi_close': > > > sanei_scsi.c:1572: warning: passing arg 1 of `CloseHandle' makes > > > pointer from integer without a cast > > > sanei_scsi.c: In function `sanei_scsi_cmd2': > > > sanei_scsi.c:4755: warning: assignment discards qualifiers from > > > pointer target type > > > sanei_scsi.c:4763: warning: implicit declaration of function `offsetof' > > > sanei_scsi.c:4763: error: parse error before "struct" > > > sanei_scsi.c:4770: warning: passing arg 1 of `DeviceIoControl' makes > > > pointer from integer without a cast > > > sanei_scsi.c: At top level: > > > sanei_scsi.c:5833: warning: unused parameter 'fd' > > > sanei_scsi.c:5824: warning: unused parameter 'id' > > > sanei_scsi.c:5819: warning: unused parameter 'idp' > > > sanei_scsi.c:4809: warning: unused parameter 'findtype' > > > > > > I'm not worried about the unused parameters, as those often come up > > > during compiling of any sources. I'm just concerned about the error. > > > I'm using the CVS version from June 17 2007. > -- "The truth is an offense, but not a sin"