[sane-devel] Problem compiling scanbd (unkown type u_int8_t)

2012-02-05 Thread Wilhelm
Am 04.02.2012 20:34, schrieb Ruediger Meier:
 On Saturday 04 February 2012, Alexander Tomisch wrote:
 Hello,

 I've tried to compile scanbd on Arch Linux ...


 USE_SCANBUTTOND=yes make -e clean all


 ... and got the following error:

 [...]

 cc -Wall -Wextra -std=c99 -g -DLinux -I../include -Dsyslog=slog
 -DLOG_INFO=SLOG_INFO -DLOG_WARNING=SLOG_WARN
 -DCFG_DIR=/usr/local/etc/scanbd/scanbuttond/backends -fPIC -shared -o
 mustek.so mustek.c
 In file included from ../include/scanbuttond/libusbi.h:22:0,
from mustek.c:27:
 /usr/include/usb.h:81:2: Fehler: unbekannter Typname: ?u_int8_t?

 [...]

 It seems that scanbd is compiling well but the old scanbuttond not -
 and I did not found any useful information about this error.


 Any hints?

 In mustek.c add
 #includesys/types.h
 before including libusbi.h

just updated the repo!

Would be happy if you could test it again.


 Maybe the libusb people should include that directly within usb.h.
 You could report the issue there.

 cu,
 Rudi



-- 
Wilhelm




[sane-devel] HP Scanjet 4850 Development

2012-02-05 Thread Stef
Le vendredi 3 f?vrier 2012 13:39:57 Dani?l Sonck a ?crit :
 Hello all,
 
 I recently got an HP Scanjet scanner from my parents as I sometimes need
 to copy or scan images as a student. I have seen
 that the genesys backend has experimental support for this scanner as it
 is based on the same chip. I have tried the latest
 snapshot and I am pleased to see that it actually sees the scanner and
 does something with it. Although the statement that
 it works with 2400 - 300 dpi is not entirely true. When I scan an image,
 the top left part gets scanned perfectly but the rest
 is black with stripes through it. You can actually see some of the image
 but it is not suited for copying. Well, it is better than
 nothing but here is the thing. As this scanner is pretty useless if I
 have to switch between Win 7 and OpenSUSE every time
 I want to scan something, I want to help you with the development of
 this driver.
 
 Well, I know nothing about scanner driver programming but I do know C++
 so I understand the code of the driver. I am not
 willing to donate my scanner as it does work with Win 7 and if it is
 absolutely necessary I will switch to Win 7 to scan. But I
 am willing to do whatever you suggest to try to solve it. You could send
 me code changes to see if these would work or explain what
 I must modify to correct errors.
 
 Anyway, it is nice that there is some support for this scanner because I
 am not willing to buy a specific scanner if I already
 have a scanner.
 
 You can see the picture at http://dss.nl.eu.org/pictures/out.png. As far
 as I know, the scanner is fine. I just scanned the interior of the
 scanner, no sheet. There is a special negatives holder that always shows
 up, it makes a nice test scan as it is not confidential.
 
 Kind regards,
 
 Dani?l Sonck

Hello,

did you use a release or compiled from latest git source code ?

Regards,
Stef



[sane-devel] Problem compiling scanbd (unkown type u_int8_t)

2012-02-05 Thread Alexander Tomisch
Hello,

Thank you, the u_int8_t issue is solved.


Now it complains the PATH_MAX variable:


cc -Wall -Wextra -std=c99 -g -DLinux -I../include -Dsyslog=slog 
-DLOG_INFO=SLOG_INFO -DLOG_WARNING=SLOG_WARN 
-DCFG_DIR=/usr/local/etc/scanbd/scanbuttond/backends -fPIC -shared -o 
mustek.so mustek.c
In file included from ../include/scanbuttond/libusbi.h:23:0,
  from mustek.c:27:
/usr/include/usb.h:248:17: Fehler: ?PATH_MAX? ist hier nicht deklariert 
(nicht in einer Funktion)
make[2]: *** [mustek.so] Fehler 1
make[2]: Leaving directory `/root/scanbd/trunk/scanbuttond/backends'
make[1]: *** [backends] Fehler 2
make[1]: Leaving directory `/root/scanbd/trunk/scanbuttond'
make: *** [scanbuttond] Fehler 2



If I remove the mustek backend from the makefile same problem in the 
plustek backend.


Alex



[sane-devel] Problem compiling scanbd (unkown type u_int8_t)

2012-02-05 Thread Alexander Tomisch
... ok - sometimes it is better to use google before sending a message 
... so this problem was solved by adding the line

#include linux/limits.h

in scanbuttond/include/scanbuttond/libusbi.h before the include of usb.h



Now a second time the u_int8_t problem and the PATH_MAX problem


I added (thanks to Ruediger) in scanbuttond/interface/libusbi.c

#include linux/limits.h
#include sys/types.h

before the include of usb.h


USE_SCANBUTTOND=yes make -e clean all

runs without errors now but make install not:


[ alex at hydra] ~/scanbd/trunk (2,0G free)% make install
cc -Wall -Wextra -std=c99 -g -DLinux -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_LIBUDEV 
-c -o sane.o sane.c
cc   scanbd.o slog.o sane.o daemonize.o dbus.o udev.o  -lconfuse 
-lpthread -ldbus-1 -lsane -ludev -o scanbd
scanbd.o: In function `sig_hup_handler':
/home/alex/scanbd/trunk/scanbd.c:162: undefined reference to 
`stop_scbtn_threads'
[...]

complete output here: http://pastebin.com/jAVKsEDT


Alex



[sane-devel] Problem compiling scanbd (unkown type u_int8_t)

2012-02-05 Thread Wilhelm
Am 05.02.2012 12:00, schrieb Alexander Tomisch:
 ... ok - sometimes it is better to use google before sending a message
 ... so this problem was solved by adding the line

 #include linux/limits.h

 in scanbuttond/include/scanbuttond/libusbi.h before the include of usb.h



 Now a second time the u_int8_t problem and the PATH_MAX problem


 I added (thanks to Ruediger) in scanbuttond/interface/libusbi.c

 #include linux/limits.h
 #include sys/types.h

 before the include of usb.h


 USE_SCANBUTTOND=yes make -e clean all

 runs without errors now but make install not:


 [ alex at hydra] ~/scanbd/trunk (2,0G free)% make install
 cc -Wall -Wextra -std=c99 -g -DLinux -I/usr/include/dbus-1.0
 -I/usr/lib/dbus-1.0/include -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_LIBUDEV
 -c -o sane.o sane.c
 cc scanbd.o slog.o sane.o daemonize.o dbus.o udev.o -lconfuse -lpthread
 -ldbus-1 -lsane -ludev -o scanbd
 scanbd.o: In function `sig_hup_handler':
 /home/alex/scanbd/trunk/scanbd.c:162: undefined reference to
 `stop_scbtn_threads'
 [...]


Please use:

USE_SCANBUTTOND=yes make install


 complete output here: http://pastebin.com/jAVKsEDT


 Alex



-- 
Wilhelm




[sane-devel] scanimage freezes for 3 minutes with Epson Perfection V200 [epkowa]

2012-02-05 Thread emmanuel.mic...@wanadoo.fr
Hello,

The setup:
Scanner EPSON Prefection V200
OS Ubuntu Server 64 bits 10.04.3

libsane 1.0.20-13ubuntu2
sane-utils 1.0.20-13ubuntu2
iscan 2.28.1-3.ltdl7
iscan-data 1.14.0-1
iscan-plugin-gt-f670 2.1.2-1

The problem:
Everytime I scan a document with scanimage I have to wait _exactly_ 3 
minutes before it returns to the command line. Below are the end of the 
debug logs from dll and epkowa:

[DLL]
2012-02-05 20:48:31 scanimage: read 26780688 bytes in total
2012-02-05 20:48:31 [dll] sane_cancel(handle=0x1088da0)
2012-02-05 20:48:31 Closing device
2012-02-05 20:48:31 [dll] sane_close(handle=0x1088da0)
2012-02-05 20:51:31 Calling sane_exit
2012-02-05 20:51:31 [dll] sane_exit: exiting
2012-02-05 20:51:31 [dll] sane_exit: calling backend `epkowa's exit function
2012-02-05 20:51:31 [dll] sane_exit: finished
2012-02-05 20:51:31 scanimage: finished

[EPKOWA]
2012-02-05 20:58:42 scanimage: read 26780688 bytes in total
2012-02-05 20:58:42 epkowa.c:5955: [epkowa]{C} sane_epkowa_cancel
2012-02-05 20:58:42 device.c:536: [epkowa]{C} dev_unlock
2012-02-05 20:58:42 Closing device
2012-02-05 20:58:42 epkowa.c:2554: [epkowa]{C} sane_epkowa_close
2012-02-05 20:58:42 device.c:242: [epkowa]{C} dev_close (fd = 0)
2012-02-05 21:01:42 Calling sane_exit
2012-02-05 21:01:42 backend.c:251: [epkowa]{C} sane_epkowa_exit ()
2012-02-05 21:01:42 dip-obj.c:152: [epkowa]{C} dip_exit (0x1fe46b0)
2012-02-05 21:01:42 cfg-obj.c:468: [epkowa]{C} cfg_has (0x1fdf630, 4)
2012-02-05 21:01:42 cfg-obj.c:468: [epkowa]{C} cfg_has (0x1fdf630, 3)
2012-02-05 21:01:42 cfg-obj.c:468: [epkowa]{C} cfg_has (0x1fdf630, 2)
2012-02-05 21:01:42 cfg-obj.c:468: [epkowa]{C} cfg_has (0x1fdf630, 1)
2012-02-05 21:01:42 cfg-obj.c:411: [epkowa]{C} cfg_exit (0x1fdf630)
2012-02-05 21:01:42 model-info.c:209: [epkowa]{C} model_info_cache_exit 
(0x1fdf$
2012-02-05 21:01:42 scanimage: finished

As you can see, I always have this 3 minutes delay just after 
sane_close. I would be glad if someone could help me to understand what 
this temporal hole is about. Thanks in advance.

Bests,

Emmanuel MICHEL



[sane-devel] scanbd - epson backend - undefined symbol: MAX

2012-02-05 Thread Alexander Tomisch
Hello,

I compiled and installed scanbd on Arch Linux ARM and it works almost.

Scanbd is started through xinetd and scanning with scandb as wrapper for 
saned is working.

But if I activate the epson backend (I have a Epson Perferction 640) 
scanbd is starting with the following error:


/usr/local/bin/scanbd: Loading 
/usr/local/etc/scanbd/scanbuttond/backends/epson.so
/usr/local/bin/scanbd: Can't load 
/usr/local/etc/scanbd/scanbuttond/backends/epson.so: 
/usr/local/etc/scanbd/scanbuttond/backends/epson.so: undefined symbol: MAX
/usr/local/bin/scanbd: meta-backend: could not load 'epson'



Any hints?

The old scanbuttond compiled from source was working on my other system 
some times ago (not any longer because of problems with libusb-compat) 
with the epson backend.


Alex



[sane-devel] HP Scanjet 4850 Development

2012-02-05 Thread Daniƫl Sonck
On 05-02-12 09:01, Stef wrote:
 Le vendredi 3 f?vrier 2012 13:39:57 Dani?l Sonck a ?crit :
 Hello all,

 I recently got an HP Scanjet scanner from my parents as I sometimes need
 to copy or scan images as a student. I have seen
 that the genesys backend has experimental support for this scanner as it
 is based on the same chip. I have tried the latest
 snapshot and I am pleased to see that it actually sees the scanner and
 does something with it. Although the statement that
 it works with 2400 - 300 dpi is not entirely true. When I scan an image,
 the top left part gets scanned perfectly but the rest
 is black with stripes through it. You can actually see some of the image
 but it is not suited for copying. Well, it is better than
 nothing but here is the thing. As this scanner is pretty useless if I
 have to switch between Win 7 and OpenSUSE every time
 I want to scan something, I want to help you with the development of
 this driver.

 Well, I know nothing about scanner driver programming but I do know C++
 so I understand the code of the driver. I am not
 willing to donate my scanner as it does work with Win 7 and if it is
 absolutely necessary I will switch to Win 7 to scan. But I
 am willing to do whatever you suggest to try to solve it. You could send
 me code changes to see if these would work or explain what
 I must modify to correct errors.

 Anyway, it is nice that there is some support for this scanner because I
 am not willing to buy a specific scanner if I already
 have a scanner.

 You can see the picture at http://dss.nl.eu.org/pictures/out.png. As far
 as I know, the scanner is fine. I just scanned the interior of the
 scanner, no sheet. There is a special negatives holder that always shows
 up, it makes a nice test scan as it is not confidential.

 Kind regards,

 Dani?l Sonck
   Hello,

   did you use a release or compiled from latest git source code ?

 Regards,
   Stef
I compiled from the latest git source code. The release that came with 
openSUSE did not want to work or recognize my printer.

Daniel

-- 
Groeten,

Dani?l Sonck
-
WWW: http://dss.nl.eu.org/
TEL: +31683554997
-
Zin in wat kunst:
http://dsonck92.deviantart.com/
-
Certificate provider
CA  : CAcert
ROOT: http://www.cacert.org/index.php?id=3

-- next part --
A non-text attachment was scrubbed...
Name: dsonck92.vcf
Type: text/x-vcard
Size: 208 bytes
Desc: not available
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120205/4ee06982/attachment.vcf
-- next part --
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2312 bytes
Desc: S/MIME Cryptographic Signature
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120205/4ee06982/attachment.bin