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
      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.

uvcdynctrl
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

Copy
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
or
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;
to
__u8 *data;
in the structure uvc_xu_control

Code:
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.
Example:
deb http://ppa.launchpad.net/pj-assis/ppa/ubuntu jaunty main 
deb-src http://ppa.launchpad.net/pj-assis/ppa/ubuntu jaunty m
ain


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.

Refer:

4 comments:

  1. Hi, I am running ubuntu 9.10 and have installed svn but when i run this code:

    svn http://svn.quickcamteam.net/svn/qct/webcam-tools/trunk libwebcam

    this error comes up:

    Unknown command: 'http://svn.quickcamteam.net/svn/qct/webcam-tools/trunk'
    Type 'svn help' for usage.

    Thanks for your help

    Darren

    ReplyDelete
  2. Hi Darren,

    ... sorry for the late reply

    There is a mistake in the post, please try this command --

    svn checkout http://svn.quickcamteam.net/svn/qct/webcam-tools/trunk libwebcam

    _Bharath

    ReplyDelete
  3. Hi Bharath, thanks a lot for all the help.

    When I tried to cmake .. -DCMAKE_INSTALL_PREFIX=/usr . I get

    "Linux UVC Driver sources (uvcvideo.h) not found. Try adding its path to the CMAKE_INCLUDE_PATH environment variable."

    , and I have no idea how to proceed; this is following along as above, on a clean install of Karmic 64bit. Thanks for any advice or suggestions.

    ReplyDelete
  4. Hi Mark,

    It is assumed that CMAKE already "knowns" where 'uvcvideo.h' file is.

    Since the above error showed up. we have to manually specify where exactly is the uvcvideo header.

    Generally its in -----
    /drivers/media/video/uvc

    So issue the commands this way -----
    export CMAKE_INCLUDE_PATH=.../linux/drivers/media/video/uvc

    or if its somewhere else ----
    export CMAKE_INCLUDE_PATH= (path where it was found)

    and then say -------
    cmake .. -DCMAKE_INSTALL_PREFIX=/usr

    ReplyDelete