Logitech QuickCam Pro 9000: Driver Installation

Here are the details of installing libwebcamdrivers. If you want save this for reading it later, download the PDF from the link below.

Download the .PDF version of this post: Logitech WebCams [PDF] 126kb

Logitech QuickCam Pro 9000

Visit the page below to find various versions in QuickCam Pro 9000-

libwebcam Homepage:

Installing the libwebcam drivers:

      libwebcam provides the following core features:
§  Enumeration of all cameras available in the system.
§  Provide detailed information about the detected devices and their controls.
§  Wrapper for the V4L2 frame format enumeration.
§  Convenient access to device controls.
Support for configuring the Linux UVC driver's dynamic controls (extension unit controls).
In addition, the interface is prepared to handle device events ranging from newly detected cameras over control value changes to device button events. It is easy to add new features without breaking application compatibility and the addition of new controls or events is straightforward.

The source package also contains uvcdynctrl and a udev script that adds some extra controls to Logitech UVC models.

Refer the discussion here:

Installing libwebcam 

user@pc:~$ sudo apt-get install build-essential
It installs all the necessary files to build a program.

user@pc:~$ sudo apt-get install cmake
Cmake is a development tool through which programs can be built.

user@pc:~$ sudo apt-get install subversion mercurial libxml2-dev gengetopt
Subversion and mercurial are software maintenance facilities.
libxml2 and gengeopt are libwemcam dependencies.

user@pc:~$ svn http://svn.quickcamteam.net/svn/qct/webcam-tools/trunk libwebcam
It creates a folder named libwebcam and downloads all the files into it.

Get uvcvideo (and all other linuxtv.org drivers):
user@pc:~$ hg clone http://linuxtv.org/hg/v4l-dvb v4l-dvb

uvcvideo.h header to libwebcam folder:
user@pc:~$ cp v4l-dvb/linux/drivers/media/video/uvc/uvcvideo.h libwebcam/Common/include/.
Open uvcvideo.h in an editor and patch it:
user@pc:~$ nano libwebcam/Common/include/uvcvideo.h
user@pc:~$ gedit libwebcam/Common/include/uvcvideo.h
(Nano is a command-line editor and Gedit is an editor with GUI. Use any to change the code.)

Change the code from
__u8 __user *data;
__u8 *data;
in the structure uvc_xu_control

struct uvc_xu_control {
    __u8 unit;
    __u8 selector;
    __u16 size;
    __u8 *data;

Build and install libwebcam:

user@pc:~$ cd libwebcam
user@pc:~$ mkdir build
user@pc:~$ cd build
user@pc:~$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
user@pc:~$ make
user@pc:~$ sudo make install

Installing guvcview
Visit the site below for more details:

Edit the packages source list:
user@pc:~$ sudo gedit etc/apt/sources.list

Add the following lines to the file:
deb http://ppa.launchpad.net/pj-assis/ppa/ubuntu karmic main 
deb-src http://ppa.launchpad.net/pj-assis/ppa/ubuntu karmic main

Note: For Ubuntu 9.04 (Jaunty) or Ubuntu 8.10 (Intrepid) replace karmic by jaunty or intrepid from the above commands.
deb http://ppa.launchpad.net/pj-assis/ppa/ubuntu jaunty main 
deb-src http://ppa.launchpad.net/pj-assis/ppa/ubuntu jaunty m

Now add the ppa key to the system, by issuing the following commands:
user@pc:~$ gpg --keyserver keyserver.ubuntu.com --recv 0x9750A93F69FAF7DA 
user@pc:~$ gpg --export --armor 0x9750A93F69FAF7DA |sudo apt-key add -

You should now be able to install guvcview with aptitude
user@pc:~$ sudo apt-get install guvcview

This completes installation of guvcview.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  If you are interested in building the code or using the source for other purposes, use the commands below-

To get source code of guvcview:
user@pc:~$ svn checkout http://svn.berlios.de/svnroot/repos/guvcview/trunk guvcview
It creates a folder named guvcview and downloads all the files into it.