I'm trying to test a C program to access to webcam and make a snapshot, I found this code https://gist.github.com/bellbind/6813905
I built it using
gcc -std=c99 capture.c -ljpeg -o capture
but the following error occurs
Wrong JPEG library version: library is 80, caller expects 62
I'm using ubuntu 14.10 Any idea how to solve this problem ?