take more notes on troubleshooting camera
authordaniel watson <ozzloy@gmail.com>
Sun, 14 Feb 2016 02:34:08 +0000 (18:34 -0800)
committerdaniel watson <ozzloy@gmail.com>
Sun, 14 Feb 2016 02:34:08 +0000 (18:34 -0800)
bbb/notes.org

index 930d96cf3b88427eed6057e2dee2e8d19a83cf0d..45e9b14459ae99bd8374a5566821b0dc69681eaa 100644 (file)
     * 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