[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-help
Subject:    HP ScanJet 4300C
From:       Pierre-Philipp Braun <ppwb () club-internet ! fr>
Date:       2003-08-27 15:15:41
[Download RAW message or body]

Hi all,

i would like to use a HP ScanJet 4300C USB scanner, but's it's not supported
by sane backends.

Is there something else i could do?
It has USB and parralel device.

dmesg,
	usb0 at uhci0: USB revision 1.0
	uhub0 at usb0

	uscanner0 at uhub0 port 1
	uscanner0: Hewlett Packard Scanjet 4300C, rev 1.00/0.00, addr 2
	uscanner0: setting config no failed

usbdevs,
	# /usr/sbin/usbdevs
	addr 1: UHCI root hub, VIA Technologie
	 addr 2: Scanjet 4300C, Hewlett Packard


I tryed http://sourceforge.net/projects/hp3300backend/ which is supposed to
be compatible with ScanJet 4300C.

First with xBSD uscanner functionnality, but when i try './testtool -b' for
example, i enter directly to NetBSD kernel debugging mode (green on i386).

Second, when i try testtool with libusb functionnality, it doesn't compile
correctly:

gcc -Wall -g -I/usr/include/dev/usb -DLIBUSB_SUPPORT  -c main.c
In file included from main.c:36:
hp3300c_libusb.c: In function `LibUsbInit':
hp3300c_libusb.c:54: warning: implicit declaration of function `usb_init'
hp3300c_libusb.c:55: warning: implicit declaration of function `usb_find_busses'
hp3300c_libusb.c:56: warning: implicit declaration of function `usb_find_devices'
hp3300c_libusb.c:57: `usb_busses' undeclared (first use in this function)
hp3300c_libusb.c:57: (Each undeclared identifier is reported only once
hp3300c_libusb.c:57: for each function it appears in.)
hp3300c_libusb.c:57: dereferencing pointer to incomplete type
hp3300c_libusb.c:58: dereferencing pointer to incomplete type
hp3300c_libusb.c:58: dereferencing pointer to incomplete type
hp3300c_libusb.c:62: dereferencing pointer to incomplete type
hp3300c_libusb.c:63: dereferencing pointer to incomplete type
hp3300c_libusb.c:65: dereferencing pointer to incomplete type
hp3300c_libusb.c:65: dereferencing pointer to incomplete type
hp3300c_libusb.c: In function `LibUsbOpen':
hp3300c_libusb.c:78: `usb_dev_handle' undeclared (first use in this function)
hp3300c_libusb.c:78: `devLibUsb' undeclared (first use in this function)
hp3300c_libusb.c:78: warning: statement with no effect
hp3300c_libusb.c:79: parse error before `char'
hp3300c_libusb.c:84: `usb_busses' undeclared (first use in this function)
hp3300c_libusb.c:84: dereferencing pointer to incomplete type
hp3300c_libusb.c:85: dereferencing pointer to incomplete type
hp3300c_libusb.c:85: dereferencing pointer to incomplete type
hp3300c_libusb.c:87: `szDeviceName' undeclared (first use in this function)
hp3300c_libusb.c:87: dereferencing pointer to incomplete type
hp3300c_libusb.c:87: dereferencing pointer to incomplete type
hp3300c_libusb.c:91: warning: implicit declaration of function `usb_open'
hp3300c_libusb.c:92: warning: implicit declaration of function `usb_claim_interface'
hp3300c_libusb.c:94: warning: implicit declaration of function `usb_close'
hp3300c_libusb.c:97: dereferencing pointer to incomplete type
hp3300c_libusb.c:98: dereferencing pointer to incomplete type
hp3300c_libusb.c:98: `pModel' undeclared (first use in this function)
hp3300c_libusb.c: In function `LibUsbExit':
hp3300c_libusb.c:112: `usb_dev_handle' undeclared (first use in this function)
hp3300c_libusb.c:112: `devLibUsb' undeclared (first use in this function)
hp3300c_libusb.c:112: warning: statement with no effect
hp3300c_libusb.c:119: parse error before `)'
hp3300c_libusb.c:121: warning: implicit declaration of function `usb_release_interface'
hp3300c_libusb.c: In function `_LibUsbReadControl':
hp3300c_libusb.c:133: `usb_dev_handle' undeclared (first use in this function)
hp3300c_libusb.c:133: `devLibUsb' undeclared (first use in this function)
hp3300c_libusb.c:133: warning: statement with no effect
hp3300c_libusb.c:139: parse error before `)'
hp3300c_libusb.c:143: warning: implicit declaration of function `usb_control_msg'
hp3300c_libusb.c: In function `_LibUsbWriteControl':
hp3300c_libusb.c:152: `usb_dev_handle' undeclared (first use in this function)
hp3300c_libusb.c:152: `devLibUsb' undeclared (first use in this function)
hp3300c_libusb.c:152: warning: statement with no effect
hp3300c_libusb.c:158: parse error before `)'
hp3300c_libusb.c: In function `LibUsbWriteBulk':
hp3300c_libusb.c:185: `usb_dev_handle' undeclared (first use in this function)
hp3300c_libusb.c:185: `devLibUsb' undeclared (first use in this function)
hp3300c_libusb.c:185: warning: statement with no effect
hp3300c_libusb.c:191: parse error before `)'
hp3300c_libusb.c:196: warning: implicit declaration of function `usb_bulk_write'
hp3300c_libusb.c: In function `LibUsbReadBulk':
hp3300c_libusb.c:210: `usb_dev_handle' undeclared (first use in this function)
hp3300c_libusb.c:210: `devLibUsb' undeclared (first use in this function)
hp3300c_libusb.c:210: warning: statement with no effect
hp3300c_libusb.c:216: parse error before `)'
hp3300c_libusb.c:221: warning: implicit declaration of function `usb_bulk_read'
*** Error code 1

Stop.
make: stopped in /home/elge/tp/scan/testtool1


Any advice would be appreciated.
Thanks in advance.
-- 
Pierre-Philipp
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic