[Gambas-user] V4L2 backport do-able?

Ron ron at ...1740...
Wed Jul 1 16:59:10 CEST 2009


Steven James Drinnan wrote:
> On Tue, 2009-06-30 at 20:19 +0200, Ron wrote:
>   
>> Is it do-able to backport V4L2 to Gambas stable?
>>
>> I find a lot of video cams/devices using this version, and they do not 
>> seem to work with the current component.
>>
>> It gets a bit useless as time goes by....
>>
>> Anyone has taken a shot at this yet?
>>
>> Kind regards,
>> Ron_2nd.
>>
>>
>>     
>
> Basicly its a problem that gambas2 is v4l1 and now most distros use v4l2
>
> So you need to have v4lcompat and preload it like this
>
> for 64bit 
>
> LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so (application name)
>
> for _86
>
> LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so (application name)
>
>
>
> In code you can try something like this
>
> Public Sub Main()
>   DIM myname AS String
>
> End
> This will relaunch your program preloading v4lcompat
>
>
> Benniot said it is fixed in version 3
>
>
>   
Didn't know this approach thanks, will fiddle with this.

Regards,
Ron_2nd.





More information about the User mailing list