[Gambas-devel] Video4Linux2 compile error svn Gambas 3 on Ubuntu Hardy 8.04

Ron Onstenk ronstk at ...124...
Tue Jul 14 15:43:59 CEST 2009


On Tuesday 14 July 2009, Ron wrote:
> Ron_1st wrote:
> > On Monday 13 July 2009, Ron wrote:
> >   
> >> Ron wrote:
> >>     
> >>> Trying to compile svn Gambas3 rev 2110 on Ubuntu 8.04
> >>>
> >>> gv4l2.c:633: error: 'V4L2_PIX_FMT_SGBRG8' undeclared (first use in 
> >>> this function                           )
> >>> make[2]: Leaving directory 
> >>> `/home/ron/install/gambas/trunk/trunk/gb.v4l/src'
> >>> make[1]: *** [install-recursive] Error 1
> >>> make[1]: Leaving directory `/home/ron/install/gambas/trunk/trunk/gb.v4l'
> >>> make: *** [install-recursive] Error 1
> >>>
> >>> I found an older thread about this exact problem, where they talk 
> >>> about having to comment out these defines....
> >>> Is this still needed, if so, this is not practical!
> >>>
> >>> Or do I miss a dependency?
> >>>
> >>>       
> >> Found this new gv4l2.c by Ron_1st, see diff below, with it I can compile 
> >> gambas3 succesfully.
> >> Any reason why it's not commited to svn?
> >>
> >>
> >>     
> >
> > Glad to know someone can use it also. :)
> >
> > There was some discusion about a complete renew for the v4l part
> > but it looks to me it is dead. 
> > I do now use vlook module from the motion webcam project. (www.lavrsen.dk)
> >
> >   
> 
> Hoi Ron,
> 
> hoe gebruik je die vlook precies  in je gambas project? (ik kon zo snel 
> niet vinden waar die zat in die motion release)
> Heb je een component gemaakt?
> 
> Ben wel geinteresseerd hoe je eea gebruikt in je project.
> 
> Alvast bedankt!
> Ron.
> 

Hi Ron

I do not use it in gambas itself.
At start of the box I load the vlookback module with parameters.
This produce aside the /dev/video0 a new device as /dev/video4
video0 is in my case a v4l2 Philips webcam and video4 the translated
to v4l1 device for flash components. 
The camera in flash object is not founs as v4l2 but v4l1 and works.


The vlookback source available at:
http://www.lavrsen.dk/twiki/bin/view/Motion/VideoFourLinuxLoopbackDevice

I did use his vloopback-0.91 version already a few years back and could
view with several programs at the same time look to video.


This package has included also a fork(rework) of vloopback
http://www.swift-tools.net/Flashcam/
http://sourceforge.net/projects/flashcam/
http://flashcam.sourceforge.net

This is a very good package to start with. 
It has also support to add other programs, like gambas, however I haven't
done. 
I do now use a external camara multiplexer Hitachi MX850 and a DVR 
for recording. Was planned to make a gambas program but no time todo.


other source:
http://fedoraproject.org/wiki/Features/BetterWebcamSupport
I do have the microdia microscope in use and that works with this 
project. Not a gambas program.

attached a bash script using vloopback, flascam and the microdia uScoop.
Its just the try, show, debug, inof script with comments what to find/found
and parameters to use.
My best bet for your domotica project ATM.

-- 

111.111111 x 111.111111 = 12345.678987654321
-------------- next part --------------
A non-text attachment was scrubbed...
Name: microstart1
Type: application/x-shellscript
Size: 3486 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20090714/0d49827a/attachment.bin>


More information about the Devel mailing list