Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I followed the instuction and tried to compile the test program using "make"
But I get a list of errors and I can't figure what is going on...
I have also big problem with the modem/router... I am forced to connect it to the PC using USB but the system doesn't recognize it... Even I can't connect to the server http://10.0.0.2 which is used to configure the ADSL connection... Thank God it works perfectly on Windows but I continuesly have to change OS by restarting my laptop...
before trying to make your scanner work, call:
$ less /proc/bus/usb/devices
("q" will exit, cursor up and down will scroll)
if your scanning device is not listed by name, you probably
have a 3400C or 4300C and difficulties with the kernel-usb.
The forum will give you information, how to change the
kernel code, to make your scanner work.
--------------- THE TEST TOOL ----------------------------------
to compile the testtool type:
$ make
to invoke it:
$ ./testtool
The testtool will exclusively use "libusb"
(take care that libusb is installed),
because the "scanner" module is deprecated in the 2.6-kernels.
If your system is complaining about not being able to
access the USB port "ERROR: usb_claim_interface failed"
make sure, that the scanner kernel-module is not loaded
(when using older kernels). If
$ /sbin/lsmod | grep scanner
shows "scanner ...." unload the module by
$ sudo /sbin/rmmod scanner
followed by the root-password
if you still don't have access to the USB port, make sure that
your "/proc/bus/usb" interfaces have write access rights for everybody.
Grant write access rights by:
$ sudo chmod a+rw -R /proc/bus/usb/00*
followed by the root-password
if you still have problems, please check the cables!
To make your scanner system wide available,
you will need to "patch" SANE (http:/sane-project.org)
to patch the sane backends
get the latest sane-backend-sources from http:/sane-project.org,
unpack them and call:
$ ./patch-sane.sh /path/to/the/sane/sources/sane-backends-1.0.XX
$ cd /path/to/the/sane/sources/sane-backends-1.0.XX
$ ./configure --prefix=/usr # can be different on various systems
$ make
$ sudo make install
followed by the root-password
NOTE:
when you already have a sane-version installed on your system,
the correct --prefix can be retrieved by analizing the output of
$ ls -l `which scanimage`
Strip away everything from the output starting with "/bin/scanimage".
It might be a good idea to uninstall the older sane version first.
Have fun
------------------------------------------------------------------
And this is the list of commands and errors
------------------------------------------------------------------
[jagrom@localhost jagrom]$ cd '/home/jagrom/Desktop/backend'
[jagrom@localhost backend]$ make
gcc -Wall -g -DSTATIC="" -c -o niash_libusb.o niash_libusb.c
niash_libusb.c:30:58: 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 function)
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_interface'
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 function)
niash_libusb.c:125: error: `devLibUsb' undeclared (first use in this function)
niash_libusb.c:133: error: parse error before ')' token
niash_libusb.c:135: warning: implicit declaration of function `usb_release_interface'
niash_libusb.c: In function `_LibUsbReadControl':
niash_libusb.c:148: error: `usb_dev_handle' undeclared (first use in this function)
niash_libusb.c:148: error: `devLibUsb' undeclared (first use in this function)
niash_libusb.c:155: error: parse 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 function)
niash_libusb.c:168: error: `devLibUsb' undeclared (first use in this function)
niash_libusb.c:175: error: parse error before ')' token
niash_libusb.c: In function `NiashLibUsbWriteBulk':
niash_libusb.c:202: error: `usb_dev_handle' undeclared (first use in this function)
niash_libusb.c:202: error: `devLibUsb' undeclared (first use in this function)
niash_libusb.c:209: error: parse 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 function)
niash_libusb.c:230: error: `devLibUsb' undeclared (first use in this function)
niash_libusb.c:237: error: parse error before ')' token
niash_libusb.c:242: warning: implicit declaration of function `usb_bulk_read'
make: *** [niash_libusb.o] Error 1
[jagrom@localhost backend]$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.