Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 84956

Summary: qc-usb-messenger-0.8 (New Package)
Product: Gentoo Linux Reporter: Marcos González <mgtroyas>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: lucamarturana, media-video, Simon80, somekool
Priority: Lowest Keywords: EBUILD
Version: 2004.3   
Hardware: All   
OS: All   
URL: http://home.mag.cx/messenger/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: qc-usb-messenger-0.8.ebuild
0.8-linux-2.6.11.patch
ebuild for qc-usb-messenger
My ebuild
qc-usb-messenger-1.1.ebuild
qc-usb-messenger-1.1.ebuild, revision 1

Description Marcos González 2005-03-12 03:12:50 UTC
There is a fork of the qc-usb module (for logitech quickcam webcams), called qc-usb-messenger, that allows us to use that model (quickcam messenger) of Logitech webcam under Linux. Current version is 0.8, and development seems to have stopped, but the camera works.

The homepage is: http://home.mag.cx/messenger/

An user has written an ebuild for it (see http://forums.gentoo.org/viewtopic-t-139906-postdays-0-postorder-asc-start-0.html). It worked for me until I switched to gentoo-dev-sources-2.6.11-r3. Seems that he same patch that appears in bug #83299 needs to be applied. I've edited the ebuild and the patch to apply to the qc-usb-messenger sources and seems to work.

I request this package to be added to portage, as it has worked for 2 months now for me without any problems, and is the only way of using this webcam under linux. I include the edited ebuild and patch.
Comment 1 Marcos González 2005-03-12 03:14:27 UTC
Created attachment 53242 [details]
qc-usb-messenger-0.8.ebuild

Ebuild that applies the patch
Comment 2 Marcos González 2005-03-12 03:15:45 UTC
Created attachment 53243 [details, diff]
0.8-linux-2.6.11.patch

The patch itself. Is the qc-usb-0.6.2 patch edited to apply to the
qc-usb-messenger sources.
Comment 3 Marcos González 2005-03-30 09:16:15 UTC
I don't know where the problem is, but the /dev/v4l/video0 device is created with the right permissions, as defined in udev config (user: root, group: video), but when I start my gnome session it changes to user: marcos (my user), group: don't remember right now but maybe also wrong. I think it could be a dbus/hal problem.

Other people seem to have a problem with /dev/video0 devices not created at all. I think these people aren't using udev. Perhaps the ebuild forgets to do some important step. It was copied and customized from the "qc-usb" one, so perhaps something was forgotten (I didn't write the ebuild).

All this info is in the forums thread I posted before.
Comment 4 Jens Schittenhelm 2005-05-27 12:51:27 UTC
There is already a bug #75705 for qc-usb-messenger
Comment 5 David Laban 2005-06-11 13:47:49 UTC
Just to say that it seems to work for me with xawtv :D  
 
I have bookmarked this bug and I'll post back after I've done some more testing 
because it might just be fluke 
 
-- alsuren 
Comment 6 Graham Murray 2005-06-19 02:17:45 UTC
Created attachment 61478 [details]
ebuild for qc-usb-messenger

The previous ebuild did not install qcset
Comment 7 KrypT 2005-07-17 19:49:25 UTC
Just a note to say this works great!

-- KrypT
Comment 8 lieut_data 2005-10-27 07:53:10 UTC
Confirmed working with two Quickcam Messengers on amd64.
Comment 9 Mathieu Jobin 2005-11-04 23:03:31 UTC
does not qc-usb-messenger require some SDK from Axis ?  
 
# modprobe quickcam 
FATAL: Error inserting quickcam (/lib/modules/2.6.14-gentoo/misc/quickcam.ko): 
Unknown symbol in module, or unknown parameter (see dmesg) 
# dmesg 
quickcam: Unknown symbol io_remap_page_range 
quickcam: Unknown symbol io_remap_page_range 
quickcam: Unknown symbol io_remap_page_range 
#                 
 
 
Comment 10 Jiri Tyr 2005-11-06 18:08:42 UTC
(In reply to comment #0)
> There is a fork of the qc-usb module (for logitech quickcam webcams), ...

Better is to use media-video/spca5xx. Works with a lot of Logitech webcams.
Comment 11 Luca Marturana 2005-11-27 02:33:11 UTC
Created attachment 73666 [details]
My ebuild

With this my modified ebuild the module will be compiled for the kernel in
/usr/src/linux instead for the current kernel running.
Comment 12 Mathieu Jobin 2005-12-02 23:55:50 UTC
is this suppose to compile at all ?  
Comment 13 Luca Marturana 2005-12-06 14:24:42 UTC
(In reply to comment #12)
> is this suppose to compile at all ?  

Yes, works fine on my system.
Comment 14 Simon Ruggier 2005-12-10 22:02:01 UTC
(In reply to comment #10)
> (In reply to comment #0)
> > There is a fork of the qc-usb module (for logitech quickcam webcams), ...
> 
> Better is to use media-video/spca5xx. Works with a lot of Logitech webcams.

You should probably do your homework before saying something like that.  As far
as I know this is the only driver that supports the quickcam messenger.

Simon
Comment 15 Simon Ruggier 2006-02-01 01:57:04 UTC
Created attachment 78629 [details]
qc-usb-messenger-1.1.ebuild

Here is an up to date ebuild for the package.  It's similar to the others, but I added a block dependency to qc-usb, a debug USE flag,and a couple of extra doc files (_README_MESSENGER and _CHANGES_MESSENGER).  I also pass in ${CFLAGS} to make, and I run depmod after the package is installed or uninstalled (if this isn't a good idea, someone please enlighten me).

I've tested it on this box with gentoo-sources-2.6.15-r1 and so far it hasn't done anything horrible, even if I unplugged the cam while it was in use, and then plugged it back in.  However, I haven't tested it for long, so anybody else with this cam should try it out.

Considering that qc-usb is in stable portage, my humble opinion is that this driver should eventually end up in portage as well.  It's still the only way to use a Quickcam Messenger, AFAIK.
Comment 16 Luca Marturana 2006-02-01 06:20:38 UTC
>I run depmod after the package is installed or uninstalled (if
> this isn't a good idea, someone please enlighten me).

linux-mod eclass that you have inherited already do it. It isn't necessary do it manually.
Comment 17 Simon Ruggier 2006-02-01 13:35:35 UTC
Comment on attachment 78629 [details]
qc-usb-messenger-1.1.ebuild

># Copyright 1999-2006 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>inherit linux-mod
>
>DESCRIPTION="Logitech Quickcam Messenger USB webcam driver module and util,
>based on qc-usb"
>HOMEPAGE="http://home.mag.cx/messenger/"
># note that judging by the older versions on the homepage, this URL will change
># to http://home.mag.cx/messenger/source/old/${P}.tar.gz when the next version
># is released, and this URL will cease to function
>SRC_URI="http://home.mag.cx/messenger/source/${P}.tar.gz"
>
>LICENSE="GPL-2"
>SLOT="0"
>KEYWORDS="x86 ~ppc ~amd64"
>IUSE="debug"
>
>DEPEND="!media-video/qc-usb"
>RDEPEND=""
>
>src_compile()
>{
>	QCFLAGS="${CFLAGS}"
>	use debug && QCFLAGS="${QCFLAGS} -DDEBUG"
>	emake LINUX_DIR=${KERNEL_DIR} USER_OPT="${QCFLAGS}" all || die "make failed"
>}
>
>src_install()
>{
>	insinto /lib/modules/${KV}/drivers/usb
>	doins quickcam.${KV_OBJ}
>	dobin qcset
>
>	dodoc README* APPLICATIONS COPYING CREDITS TODO FAQ _README_MESSENGER _CHANGES_MESSENGER
>	docinto examples
>	dodoc quickcam.sh debug.sh freeshm.sh
>}
>
>pkg_postinst()
>{
>	einfo "This driver is based on qc-usb-0.6.2, but support for cameras other"
>	einfo "than the Quickcam Messenger has been removed."
>}
Comment 18 Simon Ruggier 2006-02-01 13:45:38 UTC
Oops.. that was rather noobish, I thought I might have a shot of revising the original attachment.  Anyway, I just hope that this gets into portage, for people who have this camera.

(In reply to comment #17)
> (From update of attachment 78629 [details] [edit])
Comment 19 Luca Marturana 2006-02-02 04:34:26 UTC
(In reply to comment #17)
>pkg_postinst()
>{
>	einfo "This driver is based on qc-usb-0.6.2, but support for cameras other"
>	einfo "than the Quickcam Messenger has been removed."
>}

if you specifify another pkg_postinst and you want to use the pkg_postinst from the eclass it is necessary to recall him manually, then your pkg_postinst will be:

pkg_postinst() {
	linux-mod_pkg_postinst
	einfo "This driver is based on qc-usb-0.6.2, but support for cameras other"
	einfo "than the Quickcam Messenger has been removed."
}

For example on the metacity ebuild:

pkg_postinst() {
        gnome2_pkg_postinst

        einfo "Metacity & Xorg X11 with composite enabled may cause unwanted"
        einfo "border effects"
}
Comment 20 Simon Ruggier 2006-02-02 06:00:17 UTC
Created attachment 78718 [details]
qc-usb-messenger-1.1.ebuild, revision 1
Comment 21 Carsten Lohrke (RETIRED) gentoo-dev 2006-03-09 12:16:17 UTC
Dupe, please comment/attach to the other bug, if necessary.

*** This bug has been marked as a duplicate of 75705 ***