I have been away and it is only now I got to drop-by in the forum. I am not keen on compiling but was force to do so just to make my webcam work. First thing first the method I did is a little bit different from what is found on how to compile the webcam driver in the instruction from the site.
I change the method for I feel that in case I borked or reinstall my computer’s operating system in the future I can save the rpm package that I myself created out from the source to not make me go back once again to zero. Hopefully I did the right thing or maybe if there is someone here who is more knowledgeable I am open to advise to rectify it.
As one of the moderator noted in post #2 and I quote “The solutions that are available (for such web cams that don’t function in the kernel provide gspca) are not one’s fit for a new user, and are likely difficult for an average user. One needs advanced knowledge to perform a custom compilation of the gspca (to replace the module provided with the kernel) in order to proceed and try a different solution. I have seen no suitable rpms prepackaged (as everyone had expected the module provided with the kernel to work).” Having said that please do this at your own risk
The tools or rpm packages you will need to compile is available in the opensuse repositories. You will need to install all of those via yast2. These are the prerequisites that you need:
2.checkinstall (option if you want to create your own rpm)
3.gcc -The system GNU compiler.
4.You will also need the development package to build the driver but I can’t remember it on top of my head, but during the make stage if it complain and throws errors you will be able to trace the missing link and maybe you can post it here for someone who will immediately notice might guide what to do next.
Where to get the source tarball;
This is the link where to find the souce: ~jfrancois/gspca: Summary](http://linuxtv.org/hg/~jfrancois/gspca/)
When you get to that page, on top you will see this:
projects / ~jfrancois/gspca / summary
summary | shortlog | changelog | tags | manifest | bz2 | gz
You have to click the bz2 and download it in your download folder. I am assuming that your machine has already an application to untar the source you have downloaded. To make it easier for you to work with your compiling make a new folder in your /home/user and name it as you wish and transfer the downloaded source and untar it. If you are doing it via gui, mouse right click and extract is the command using the mouse.
For the instructions please visit this link: Jef Moine
and you will find the README which is this:http://moinejf.free.fr/gspca_README.txt
This is the part of the README you should go to the link and read the whole part for more helpful instructions.
The source of the driver gspca version 2 is included in
the current Linux kernel (2.6.27).
If you have problem with your webcam, you may get newer
versions from Mercurial source code management system at:
Getting the source
You may either get a tarball or the full mercurial repository from
the previous locations.
- the first time:
- remove from the kernel all gspca v1 or other webcam stuff
which may conflict.
- don't forget to remove the modules 'gspca_xxx.ko'
installed in '/lib/modules/.../misc/' by the previous
gspcav2 tarball distribution.
- take care of the modules loaded at startup time
and included in the initrd.
- go to the tarball / repository root.
- copy the '.config' of your kernel (usually
'/boot/config-2.6.xx-xx-yy') to the directory v4l/.
Example (from the mercurial root directory):
cp /boot/config-22.214.171.124 v4l/.config
- do a 'make xxxconfig' (xxx depending on your taste -
it may be 'config', 'menuconfig', 'xconfig' or
- if you have not the full sources of the kernel, the
previous command will fail. In this case, manually edit
the file 'v4l/.config' adding:
where xxx is the name of the subdriver handling your webcam.
(look in the file
- and, as root:
Take note that to copy the .config of your kernel you have to be root… If the command line sounds cryptic, you can su to root and browes to /boot using konqueror or dolphin and copy and paste to the directory mentioned. and follow the rest as mentioned in the instruction.
If you want to have an rpm package and wish to keep it
and as root:
Note using check install it will create an rpm package in /usr/src/rpm/packages/rpms
Please have a look in that directory and see the folder where to direct your created rpm version eg: i386, i58c etc.
If this sounds complicated I advise you to do a research of more pointers in the net or in this forum for more understanding.
Hope this one will help you to start with your compiling.