Also you may need to check if the webcam is being detected!
Try opening terminal and typing "lsusb"
Then try turning on your webcam (usually hotkeys fn+f6 or whatever
works for you).
Then type "lsusb" into your terminal again to see if anything new has
appeared or turned off.
Depending on how things go have a look at this:
http://ubuntuforums.org/showthread.php?t=593231
It is a good guide that should help with sorting this out, hopefully
something simple!
(I had the same problem on my Advent 4211, the link I used to help me
compile the code step by step is not broken, will keep trying though).