Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner not detected kubuntu 14.04 #5

Closed
doctordruidphd opened this issue Apr 18, 2014 · 10 comments
Closed

Scanner not detected kubuntu 14.04 #5

doctordruidphd opened this issue Apr 18, 2014 · 10 comments

Comments

@doctordruidphd
Copy link

Scanner is not detected on kubuntu-14.04-amd64. Older version 0.9.1 does detect the scanner, as does xsane. In the Acquire menu, the device block is greyed, and hitting the refresh button does not change this. Running gimagereader from a terminal does not produce any error messages.

@manisandro
Copy link
Owner

Is it a network scanner?

@doctordruidphd
Copy link
Author

Yes, it is.

@manisandro
Copy link
Owner

Ok. So the reason I disabled it was that there was a crash on exit when network scanner was detected, appears to be a glib bug, though haven't managed to pin it down exactly. Changing

SANE_Status status = sane_get_devices(&device_list, true);

to

SANE_Status status = sane_get_devices(&device_list, false);

in ScannerSane.hh::97 will re-enable network scanner detection. I guess I'll re-enable it for the next release, since a crash on exit is probably less annoying than the scanner not being detected at all. In the meantime, if you know how to patch and recompile, you can build a fixed version. If you want, I can also build one for you.

@doctordruidphd
Copy link
Author

Yes, I can compile from source. Will make the changes you suggest and get back to you (probably tomorrow). Thanks.

@manisandro
Copy link
Owner

Ok great.

@doctordruidphd
Copy link
Author

OK, one problem has come up. configure is complaining it can't find "sane-backends", and there is no "sane-backends" package. That has evidently been replaced with "libsane-extras-dev", or "libsane-dev", not sure which as I installed libsane-extras-dev and all its recommends.
It works, but I do get the crash message. At least it works now. Thanks.

@manisandro
Copy link
Owner

It is libsane-dev for debian, you can look at the debian packaging files for more info: https://github.com/manisandro/gImageReader/tree/master/packaging/debian

If I find some time, I'll try to track down the glib bug in the next few days.

@doctordruidphd
Copy link
Author

One other thing I should mention: configure is also having a problem finding the tesseract package. I looked at the control file, and it seems to be looking for libtesseract-dev, which is correct, so I'm not sure what configure is complaining about:

checking for TESSERACT... no
configure: tesseract not found via pkg-config, using hardcoded CFLAGS and LIBS

@manisandro
Copy link
Owner

On certain distros, tesseract ships a pkg-config file (which is now also upstream, so more and more distros should ship the pkg-config file as they update the tesseract package). If the pkg-config file is not found, the script falls back to hardcoded cflags and libs. So this is working as expected.

@manisandro
Copy link
Owner

Detection of network scanners now enabled again, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants