[Tellico-users] Webcam barcode scanning

Sebastian Held sebastian at bildungsdoku-gabi.de
Thu Oct 29 21:47:30 UTC 2009


Hi,

no, that's not the problem. I've a cheap one, too (without focus).
One debug method is to use strace:

strace -e trace=open ./tellico

[...] (click on search)
open("/usr/share/kde4/apps/khtml/khtml.rc", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/entry-templates/Compact.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/tellico-common.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/dev/video0", O_RDWR)             = 22
open("/sys/class/video4linux/video0/dev", O_RDONLY) = 25
open("/sys/class/video4linux/video0/device/modalias", O_RDONLY) = 25
open("/sys/devices/virtual/dmi/id/board_vendor", O_RDONLY) = 25
open("/sys/devices/virtual/dmi/id/board_name", O_RDONLY) = 25
open("/sys/devices/virtual/dmi/id/product_version", O_RDONLY) = 25
open("/dev/shm/usb-0000:00:1d.7-1.1:PC Camera", O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW|O_CLOEXEC, 0600) = -1 EEXIST (File exists)
open("/dev/shm/usb-0000:00:1d.7-1.1:PC Camera", O_RDWR|O_NOFOLLOW|O_CLOEXEC) = 25
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.rw3789", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 28
[...]

Important is the line "/dev/video0". Here tellico opens this device without an error.


Now the same again without a webcam connected:

[...] (click on search)
open("/usr/share/kde4/apps/khtml/khtml.rc", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/entry-templates/Compact.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/tellico-common.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/dev/video0", O_RDWR)             = -1 ENOENT (No such file or directory)
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.rw6603", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 22
[...]

The device cannot be opened.


Now without webcam support compiled in:

[...] (click on search)
open("/usr/share/kde4/apps/khtml/khtml.rc", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/entry-templates/Compact.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/home/sebastian/src/tellico-2.0/BIN/share/apps/tellico/tellico-common.xsl", O_RDONLY|O_LARGEFILE) = 22
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.K19515", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 22
open("/usr/share/icons/oxygen/16x16/actions/edit-find.png", O_RDONLY|O_LARGEFILE) = 22
open("/var/tmp/kdecache-sebastian/kpc/kde-icon-cache.lock.A19515", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE|O_CLOEXEC, 0600) = 22
[...]

Tellico does not try to open /dev/video0

regards,
Sebastian


Am Donnerstag 29 Oktober 2009 19:56:54 schrieb Morten Bo Johansen:
> Rory Verleysen <rory.verleysen at telenet.be> wrote:
> > Hi,
> >
> > There exists no documentation considering this subject. All v4l capable
> > video devices should be supported, please do take into account you'll
> > need a webcam which can focus.
> 
> Thanks. My webcam is the cheapest of the cheapest. So I suppose it is the
> lack of focusing capability which is the problem, since the other
> prerequisites you mentioned are in order.
> 
> 
> Morten
> 
> _______________________________________________
> tellico-users mailing list
> tellico-users at kde.org
> https://mail.kde.org/mailman/listinfo/tellico-users
> 



More information about the tellico-users mailing list