From dc4d07d0a34707644daf004c1c705e2915500986 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Sat, 13 Feb 2016 18:34:08 -0800 Subject: [PATCH] take more notes on troubleshooting camera --- bbb/notes.org | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/bbb/notes.org b/bbb/notes.org index 930d96c..45e9b14 100644 --- a/bbb/notes.org +++ b/bbb/notes.org @@ -14,8 +14,52 @@ * sudo aptitude install -y v4l-utils # for v4l2-ctl * sudo aptitude install pkg-config # for compiling * for opencv: - * sudo aptitude install -y + * sudo aptitude install -y libopencv-dev + * check whether libopencv-dev is the only package necessary * add ssh key to bbb image to make sshing easier +** trying to compile grabber.c from derek molloy +*** problem +**** what i did +gcc -O2 -Wall `pkg-config --cflags --libs libv4l2` grabber.c -o grabber + +**** what i expected +compilation finishes and i can run grabber + +**** what actually happened +Package libv4l2 was not found in the pkg-config search path. + +**** potential solution + sudo aptitude install -y libv4l-dev + +***** did it work? + * retrying compile + * compile finished, created grabber! + +** another problem, getting image from camera failed +*** problem +**** what i did +after compiling grabber, tried to run it + +**** what i expected +grab images and maybe there would be a picture in the current directory + +**** what actually happened +grabber ran for a bit and output the following: + +"Warning: driver is sending image at 1280x720" + +after waiting for a bit, killed grabber with C-c. no picture in the +current directory + +**** possible solution + * read source of grabber.c and look for anything out of + ordinary. + * saw that frame size was hard coded to 1920x1080 + * redid code to 640x480. recompiled the code + * ran it, got no terminal output + * killed it with C-c after a bit + * saw grabber000.ppm + * doing * maybe just go with debian 8.2 * systematically try all the images on all the boards -- 2.30.2