[Gambas-devel] Video4Linux2 compile error svn Gambas 3 on Ubuntu Hardy 8.04
Ron
ron at ...572...
Mon Jul 13 16:33:56 CEST 2009
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?
Next problem:
ron at ...218...:~$ gambas3
ERROR: #27: Cannot load component 'gb.qt4': cannot find library file
Need to try it on a newer OS I guess, but it's strange that ./reconf-all
&& ./configure -C didn't seem to complain earlier.
Regards,
Ron_2nd.
ron at ...218...:~/install/gambas/trunk/trunk/gb.v4l/src$ diff gv4l2.c gv4l2.c.org
574c574
< gv4l2_debug("Frame in unknown palette");
---
> gv4l2_debug("Frame in unknown format");
594,600d593
< /*
< For adding new formats use the #ifdef method.
< It is not safe to asume every videodev2.h has the V4L2_PIX_FMT_
< V4L2_PIX_FMT_Y16 was not aviable in Ubuntu 8.04 but exists in Ubuntu
8.10
< Some other where also missing
< Add by:R.Onstenk 22-feb-2009
< */
612,613d604
<
< #ifdef V4L2_PIX_FMT_Y16
615d605
< #endif
619d608
<
644d632
< #ifdef V4L2_PIX_FMT_SGBRG8
646,647d633
< #endif
< #ifdef V4L2_PIX_FMT_SBGGR16
649,650d634
< #endif
<
660d643
< #ifdef V4L2_PIX_FMT_SPCA501
662,663d644
< #endif
< #ifdef V4L2_PIX_FMT_SPCA505
665,666d645
< #endif
< #ifdef V4L2_PIX_FMT_SPCA508
668,669d646
< #endif
< #ifdef V4L2_PIX_FMT_SPCA561
671,672d647
< #endif
< #ifdef V4L2_PIX_FMT_PAC207
674,675d648
< #endif
< #ifdef V4L2_PIX_FMT_PJPG
677,678d649
< #endif
< #ifdef V4L2_PIX_FMT_YVYU
680,681d650
< #endif
<
683c652
< gv4l2_debug("Frame in unknown format. Format:0x"
+ format);
---
> gv4l2_debug("Frame in unknown format");
770d738
<
More information about the Devel
mailing list