What you want to execute is something like this:
Code:
LD_LIBRARY_PATH=`pwd` ./mjpg_streamer -i "./input_uvc.so --device /dev/video0 -f 10 -r 160x120" -o "./output_http.so --port 5800 -w www"
Of course, you're going to want to write scripts and such to make it easy to run, and more importantly start on robot boot. I did all of this already, so I put install instructions + the scripts I created into a gist, you can access it at
https://gist.github.com/virtuald/c8835244759e53314211
Feedback/comments welcome!