Image acquisition package: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 176: Line 176:
  octave> test @videoinput/set
  octave> test @videoinput/set
  octave> test @videoinput/getsnapshot
  octave> test @videoinput/getsnapshot
== Build source from mercurial repository ==
'''Warning: You really should use the <pkg install -forge> method described above if you are not sure what you are doing here.'''
Get the source here [http://sourceforge.net/p/octave/image-acquisition/ci/default/tree/] and build it yourself. The build dependencies for Debian GNU/Linux wheezy are '''libv4l-dev''' and '''libfltk1.3-dev''' or '''libfltk1.1-dev'''. You also need the GNU autotools to generate the configure script.
$ hg clone http://hg.code.sf.net/p/octave/image-acquisition octave-image-acquisition
$ cd octave-image-acquisition/src/ && ./bootstrap
$ cd ../..
$ tar czf image-acquisition.tar.gz octave-image-acquisition
octave:>> pkg install -verbose image-acquisition.tar.gz


== make check ==
== make check ==
If you have cloned the hg repo you can run the test scripts to see if all works.
If you have cloned the hg repo you can also run the test scripts to see if all works.


  $ cd octave-image-acquisition/devel
  $ cd octave-image-acquisition/devel
Line 184: Line 196:


  octave -q run_tests.m
  octave -q run_tests.m
libv4l2: error setting pixformat: Device or resource busy
  INFO: this error is expected because /dev/video0 is still streaming
  INFO: this error is expected because /dev/video0 is still streaming
  ../src/__v4l2_handler__.cc........................ PASS 3/3
  ../src/__v4l2_handler__.cc........................ PASS 4/4
  libv4l2: error getting capabilities: Inappropriate ioctl for device
  libv4l2: error getting capabilities: Inappropriate ioctl for device
  @videoinput/videoinput............................ PASS 3/3  
  @videoinput/videoinput............................ PASS 3/3  
  @videoinput/get................................... PASS 4/4  
  @videoinput/get................................... PASS 4/4  
warning: V4L2_CAP_TIMEPERFRAME is not supported
warning: V4L2_CAP_TIMEPERFRAME is not supported
  @videoinput/set................................... PASS 6/6  
  @videoinput/set................................... PASS 6/6  
  @videoinput/getsnapshot........................... PASS 1/1  
  @videoinput/getsnapshot........................... PASS 1/1  
Line 196: Line 209:
  Summary:
  Summary:
   
   
   PASS  18
   PASS  19
   FAIL  0
   FAIL  0


The two errors are expected, see test scripts. If there are tests which FAIL, then please have a look at the generated fntest.log and add it to your bug report.
The two errors are expected, see test scripts. If there are tests which FAIL, then please have a look at the generated fntest.log and add it to your bug report.
== Build src from hg repo ==
'''Warning: You really should use the <pkg install -forge> method described above if you are not sure what you are doing here.'''
Get the source here [http://sourceforge.net/p/octave/image-acquisition/ci/default/tree/] and build it yourself. The build dependencies for Debian GNU/Linux wheezy are '''libv4l-dev''' and '''libfltk1.3-dev''' or '''libfltk1.1-dev'''. You also need the GNU autotools to generate the configure script.
$ hg clone http://hg.code.sf.net/p/octave/image-acquisition octave-image-acquisition
$ cd octave-image-acquisition/src/ && ./bootstrap
$ cd ../..
$ tar czf image-acquisition.tar.gz octave-image-acquisition
octave:>> pkg install -verbose image-acquisition.tar.gz
219

edits

Navigation menu