adding a scanjet 3300c to Mepis 3.4 rc1
Has anyone had any luck getting a HP scanjet 3300c to work under Linux? I'm currently running Mepis 3.4 rc1. I understand I need to patch the sane backend, but I cannot get the files from sourceforge to complile and install. Here is the errors I get when I run make:
gcc -Wall -g -DSTATIC="" -DSANE_Byte="unsigned char" -DSANE_Word=int -DSANE_Bool
=SANE_Word -DSANE_TRUE=1 -DSANE_FALSE=0 -I/usr/local/include -DLIBUSB_SUPPORT
-c -o niash_libusb.o niash_libusb.c
niash_libusb.c:30:44: error: usb.h: No such file or directory
niash_libusb.c: In function 'NiashLibUsbInit':
niash_libusb.c:52: warning: implicit declaration of function 'usb_init'
niash_libusb.c:53: warning: implicit declaration of function 'usb_find_busses'
niash_libusb.c:54: warning: implicit declaration of function 'usb_find_devices'
niash_libusb.c:55: error: 'usb_busses' undeclared (first use in this function)
niash_libusb.c:55: error: (Each undeclared identifier is reported only once
niash_libusb.c:55: error: for each function it appears in.)
niash_libusb.c:55: error: dereferencing pointer to incomplete type
niash_libusb.c:57: error: dereferencing pointer to incomplete type
niash_libusb.c:57: error: dereferencing pointer to incomplete type
niash_libusb.c:62: error: dereferencing pointer to incomplete type
niash_libusb.c:63: error: dereferencing pointer to incomplete type
niash_libusb.c:67: error: dereferencing pointer to incomplete type
niash_libusb.c:68: error: dereferencing pointer to incomplete type
niash_libusb.c: In function 'NiashLibUsbOpen':
niash_libusb.c:85: error: 'usb_dev_handle' undeclared (first use in this functio
n)
niash_libusb.c:85: error: 'devLibUsb' undeclared (first use in this function)
niash_libusb.c:91: error: 'usb_busses' undeclared (first use in this function)
niash_libusb.c:91: error: dereferencing pointer to incomplete type
niash_libusb.c:93: error: dereferencing pointer to incomplete type
niash_libusb.c:93: error: dereferencing pointer to incomplete type
niash_libusb.c:96: error: dereferencing pointer to incomplete type
niash_libusb.c:97: error: dereferencing pointer to incomplete type
niash_libusb.c:102: warning: implicit declaration of function 'usb_open'
niash_libusb.c:103: warning: implicit declaration of function 'usb_claim_interfa
ce'
niash_libusb.c:106: warning: implicit declaration of function 'usb_close'
niash_libusb.c:109: error: dereferencing pointer to incomplete type
niash_libusb.c:110: error: dereferencing pointer to incomplete type
niash_libusb.c: In function 'NiashLibUsbExit':
niash_libusb.c:125: error: 'usb_dev_handle' undeclared (first use in this functi
on)
niash_libusb.c:125: error: 'devLibUsb' undeclared (first use in this function)
niash_libusb.c:133: error: syntax error before ')' token
niash_libusb.c:135: warning: implicit declaration of function 'usb_release_inter
face'
niash_libusb.c: In function '_LibUsbReadControl':
niash_libusb.c:148: error: 'usb_dev_handle' undeclared (first use in this functi on)
niash_libusb.c:148: error: 'devLibUsb' undeclared (first use in this function)
niash_libusb.c:155: error: syntax error before ')' token
niash_libusb.c:159: warning: implicit declaration of function 'usb_control_msg'
niash_libusb.c: In function '_LibUsbWriteControl':
niash_libusb.c:168: error: 'usb_dev_handle' undeclared (first use in this functi on)
niash_libusb.c:168: error: 'devLibUsb' undeclared (first use in this function)
niash_libusb.c:175: error: syntax error before ')' token
niash_libusb.c: In function 'NiashLibUsbWriteBulk':
niash_libusb.c:202: error: 'usb_dev_handle' undeclared (first use in this functi on)
niash_libusb.c:202: error: 'devLibUsb' undeclared (first use in this function)
niash_libusb.c:209: error: syntax error before ')' token
niash_libusb.c:214: warning: implicit declaration of function 'usb_bulk_write'
niash_libusb.c: In function 'NiashLibUsbReadBulk':
niash_libusb.c:230: error: 'usb_dev_handle' undeclared (first use in this functi on)
niash_libusb.c:230: error: 'devLibUsb' undeclared (first use in this function)
niash_libusb.c:237: error: syntax error before ')' token
niash_libusb.c:242: warning: implicit declaration of function 'usb_bulk_read'
make: *** [niash_libusb.o] Error 1
I am new to compliling these types of files, any help would be appreciated. Thanks
|