{"id":285,"date":"2008-06-17T11:36:48","date_gmt":"2008-06-17T11:36:48","guid":{"rendered":"http:\/\/blog.cyberwizzard.nl\/?p=285"},"modified":"2016-03-17T21:24:20","modified_gmt":"2016-03-17T20:24:20","slug":"logitech-quickcam-communicate-stx-and-linux","status":"publish","type":"post","link":"https:\/\/blog.cyberwizzard.nl\/?p=285","title":{"rendered":"Logitech Quickcam Communicate STX and Linux"},"content":{"rendered":"<p>Todays annoyance is the fact that my webcam was broken for months now because I couldn&#8217;t get the correct driver to work. To be exact, the device ID is 046d:08d7 and the correct driver for it is gspcav1, from <a href=\"http:\/\/mxhaard.free.fr\" target=\"_blank\">this site<\/a>. I tried the UVC driver from Berlios as well, but it only works with newer cameras (and as I upgraded from my perfectly fine Logitech Messenger just because Windows Vista needed it, Logitech can drop dead if they think I&#8217;ll buy yet another camera). Anyway, the UVC driver can be <a href=\"http:\/\/linux-uvc.berlios.de\" target=\"_blank\">found here<\/a>.<\/p>\n<p>The problem I kept having was the fact that the gspcav1 driver was the only one for my camera but it wouldn&#8217;t compile. I would end up with this error dump:<\/p>\n<p><pre>make -C \/usr\/src\/linux M=\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224 CC=x86_64-pc-linux-gnu-gcc modules<br \/>make[1]: Entering directory `\/usr\/src\/linux-2.6.25-gentoo-r4'<br \/>&nbsp; CC [M]&nbsp; \/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.o<br \/>In file included from \/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:848:<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/Sunplus\/spca506.h: In function 'spca506_SetNormeInput':<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/Sunplus\/spca506.h:120: error: 'VIDEO_MODE_NTSC' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/Sunplus\/spca506.h:120: error: (Each undeclared identifier is reported only once<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/Sunplus\/spca506.h:120: error: for each function it appears in.)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/Sunplus\/spca506.h:131: error: 'VIDEO_MODE_PAL' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/Sunplus\/spca506.h:137: error: 'VIDEO_MODE_SECAM' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c: In function 'spca5xx_get_depth':<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1093: error: 'VIDEO_PALETTE_RGB565' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1095: error: 'VIDEO_PALETTE_RGB24' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1101: error: 'VIDEO_PALETTE_YUV420P' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1104: error: 'VIDEO_PALETTE_RGB32' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c: In function 'v4l_to_spca5xx':<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1291: error: 'VIDEO_PALETTE_RGB565' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1293: error: 'VIDEO_PALETTE_RGB24' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1295: error: 'VIDEO_PALETTE_RGB32' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1297: error: 'VIDEO_PALETTE_YUV422P' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1299: error: 'VIDEO_PALETTE_YUV420P' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c: In function 'spca50x_init_source':<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1802: error: 'VIDEO_PALETTE_RGB24' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c: In function 'spca5xx_setFrameDecoder':<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:1841: error: 'VIDEO_PALETTE_RGB24' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c: In function 'spca5xx_do_ioctl':<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:2074: error: 'VIDIOCGCAP' undeclared (first use in this function)<br \/>\/var\/tmp\/portage\/media-video\/gspcav1-20071224\/work\/gspcav1-20071224\/gspca_core.c:2078: error: invalid application of 'sizeof' to incomplete type 'struct video_capability'<\/pre>\n<p>Note: I&#8217;m posting it all so someone might find it using a search engine because nobody else put this up.<\/p>\n<p>The solution to this? So darn simple that I shouldn&#8217;t have missed it: enable Video For Linux 1 in the kernel. You see, this driver is designed for V4L1 and without the compatibility layer it will error like this. For the Gentoo users it seems like a problem which is here to stay as the ebuild can not check for this (only if any V4L version is enabled).<\/p>\n<p>I still think it would be nice if the package maintainers put up a warning in the ebuild so I wouldn&#8217;t have to figure this out on my own&#8230; ahh well.<\/p>\n<div class=\"wlWriterSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1b395db5-a27f-4984-b1ba-7da5bf45a45f\" style=\"padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Tags van Technorati: <a href=\"http:\/\/technorati.com\/tags\/gentoo\" rel=\"tag\">gentoo<\/a>,<a href=\"http:\/\/technorati.com\/tags\/linux\" rel=\"tag\">linux<\/a>,<a href=\"http:\/\/technorati.com\/tags\/logitech%20webcam\" rel=\"tag\">logitech webcam<\/a>,<a href=\"http:\/\/technorati.com\/tags\/gspcav1\" rel=\"tag\">gspcav1<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Todays annoyance is the fact that my webcam was broken for months now because I couldn&#8217;t get the correct driver to work. To be exact, the device ID is 046d:08d7 and the correct driver for it is gspcav1, from this site. I tried the UVC driver from Berlios as well, but it only works with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[243,241,460,459,242],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-linux-gentoolinux","tag-gspcav","tag-logitech","tag-no_ok","tag-not_ok","tag-webcam"],"views":1475,"_links":{"self":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285"}],"version-history":[{"count":1,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":448,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions\/448"}],"wp:attachment":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}