Replace #include <linux/videodev2.h> in v4l2-dbg.cpp with 
#include "videodev2.h".

That should hopefully fix these errors. I've also committed this change 
to ivtv trunk.

        Hans

On Sunday 22 July 2007 16:31:55 pomidorabelisima wrote:
> ivtv-1.0.0:
>
> make -C driver all
> make[1]: Entering directory `/ivtv/ivtv-1.0.0/driver'
> created ivtv-svnversion.h
> make -C /lib/modules/2.6.22/build
> M=/ivtv/ivtv-1.0.0/driver modules
> make[2]: Entering directory `/usr/src/linux-2.6.22'
>   CC [M]  /ivtv/ivtv-1.0.0/driver/ivtv-fb.o
>   Building modules, stage 2.
>   MODPOST 1 modules
>   CC      /ivtv/ivtv-1.0.0/driver/ivtv-fb.mod.o
>   LD [M]  /ivtv/ivtv-1.0.0/driver/ivtv-fb.ko
> make[2]: Leaving directory `/usr/src/linux-2.6.22'
> make[1]: Leaving directory `/ivtv/ivtv-1.0.0/driver'
> make -C i2c-drivers all
> make[1]: Entering directory
> `/ivtv/ivtv-1.0.0/i2c-drivers'
> make -C /lib/modules/2.6.22/build
> M=/ivtv/ivtv-1.0.0/i2c-drivers modules
> make[2]: Entering directory `/usr/src/linux-2.6.22'
>   CC [M]  /ivtv/ivtv-1.0.0/i2c-drivers/saa717x.o
>   Building modules, stage 2.
>   MODPOST 1 modules
>   CC      /ivtv/ivtv-1.0.0/i2c-drivers/saa717x.mod.o
>   LD [M]  /ivtv/ivtv-1.0.0/i2c-drivers/saa717x.ko
> make[2]: Leaving directory `/usr/src/linux-2.6.22'
> make[1]: Leaving directory
> `/ivtv/ivtv-1.0.0/i2c-drivers'
> make -C utils all
> make[1]: Entering directory `/ivtv/ivtv-1.0.0/utils'
> g++ -I/ivtv/ivtv-1.0.0/utils/../driver -D_GNU_SOURCE
> -O2 -Wall -g   -c
> -o v4l2-ctl.o v4l2-ctl.cpp
> v4l2-ctl.cpp:809: warning: 'char* pts_to_string(char*,
> long unsigned
> int)' defined but not used
> g++ -lm -o v4l2-ctl v4l2-ctl.o
> g++ -I/ivtv/ivtv-1.0.0/utils/../driver -D_GNU_SOURCE
> -O2 -Wall -g   -c
> -o v4l2-dbg.o v4l2-dbg.cpp
> v4l2-dbg.cpp: In function 'std::string cap2s(unsigned
> int)':
> v4l2-dbg.cpp:157: error:
> 'V4L2_CAP_VIDEO_OUTPUT_OVERLAY' was not
> declared in this scope
> v4l2-dbg.cpp: In function 'void
> print_chip(v4l2_chip_ident*)':
> v4l2-dbg.cpp:223: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp:229: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp:231: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp:231: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp: In function 'int main(int, char**)':
> v4l2-dbg.cpp:280: error: aggregate 'v4l2_chip_ident
> chip_id' has
> incomplete type and cannot be defined
> v4l2-dbg.cpp:450: error: 'VIDIOC_G_CHIP_IDENT' was not
> declared in this
> scope
> v4l2-dbg.cpp:460: error: 'VIDIOC_G_CHIP_IDENT' was not
> declared in this
> scope
> v4l2-dbg.cpp:469: error: 'VIDIOC_G_CHIP_IDENT' was not
> declared in this
> scope
> make[1]: *** [v4l2-dbg.o] Error 1
> make[1]: Leaving directory `/ivtv/ivtv-1.0.0/utils'
> make: *** [all] Error 2
>
>
> ivtv-trunk:
> At revision 3957.
>
> make -C driver all
> make[1]: Entering directory `/ivtv/ivtv_trunk/driver'
> created ivtv-svnversion.h
> make -C /lib/modules/2.6.22/build
> M=/ivtv/ivtv_trunk/driver modules
> make[2]: Entering directory `/usr/src/linux-2.6.22'
>   CC [M]  /ivtv/ivtv_trunk/driver/ivtv-fb.o
>   Building modules, stage 2.
>   MODPOST 1 modules
>   CC      /ivtv/ivtv_trunk/driver/ivtv-fb.mod.o
>   LD [M]  /ivtv/ivtv_trunk/driver/ivtv-fb.ko
> make[2]: Leaving directory `/usr/src/linux-2.6.22'
> make[1]: Leaving directory `/ivtv/ivtv_trunk/driver'
> make -C i2c-drivers all
> make[1]: Entering directory
> `/ivtv/ivtv_trunk/i2c-drivers'
> make -C /lib/modules/2.6.22/build
> M=/ivtv/ivtv_trunk/i2c-drivers modules
> make[2]: Entering directory `/usr/src/linux-2.6.22'
>   CC [M]  /ivtv/ivtv_trunk/i2c-drivers/saa717x.o
>   Building modules, stage 2.
>   MODPOST 1 modules
>   CC      /ivtv/ivtv_trunk/i2c-drivers/saa717x.mod.o
>   LD [M]  /ivtv/ivtv_trunk/i2c-drivers/saa717x.ko
> make[2]: Leaving directory `/usr/src/linux-2.6.22'
> make[1]: Leaving directory
> `/ivtv/ivtv_trunk/i2c-drivers'
> make -C utils all
> make[1]: Entering directory `/ivtv/ivtv_trunk/utils'
> g++ -I/ivtv/ivtv_trunk/utils/../driver -D_GNU_SOURCE
> -O2 -Wall -g   -c
> -o v4l2-ctl.o v4l2-ctl.cpp
> v4l2-ctl.cpp:809: warning: 'char* pts_to_string(char*,
> long unsigned
> int)' defined but not used
> g++ -lm -o v4l2-ctl v4l2-ctl.o
> g++ -I/ivtv/ivtv_trunk/utils/../driver -D_GNU_SOURCE
> -O2 -Wall -g   -c
> -o v4l2-dbg.o v4l2-dbg.cpp
> v4l2-dbg.cpp: In function 'std::string cap2s(unsigned
> int)':
> v4l2-dbg.cpp:157: error:
> 'V4L2_CAP_VIDEO_OUTPUT_OVERLAY' was not
> declared in this scope
> v4l2-dbg.cpp: In function 'void
> print_chip(v4l2_chip_ident*)':
> v4l2-dbg.cpp:223: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp:229: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp:231: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp:231: error: invalid use of undefined type
> 'struct
> v4l2_chip_ident'
> v4l2-dbg.cpp:218: error: forward declaration of
> 'struct v4l2_chip_ident'
> v4l2-dbg.cpp: In function 'int main(int, char**)':
> v4l2-dbg.cpp:280: error: aggregate 'v4l2_chip_ident
> chip_id' has
> incomplete type and cannot be defined
> v4l2-dbg.cpp:450: error: 'VIDIOC_G_CHIP_IDENT' was not
> declared in this
> scope
> v4l2-dbg.cpp:460: error: 'VIDIOC_G_CHIP_IDENT' was not
> declared in this
> scope
> v4l2-dbg.cpp:469: error: 'VIDIOC_G_CHIP_IDENT' was not
> declared in this
> scope
> make[1]: *** [v4l2-dbg.o] Error 1
> make[1]: Leaving directory `/ivtv/ivtv_trunk/utils'
> make: *** [all] Error 2
>
>
>
>
>
>
>
>
> _____________________________________________________________________
>_______________ Building a website is a piece of cake. Yahoo! Small
> Business gives you all the tools to get online.
> http://smallbusiness.yahoo.com/webhosting
>
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel



_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to