[Mplayer-users] Compile mga_vid.o fails

Dirk Vornheder DVornheder at t-online.de
Tue Mar 6 00:46:31 CET 2001


Am Dienstag,  6. März 2001 07:14 schrieben Sie:
> Hi,
>
> > Compiling mga_vid.o after download latest version from cvs fails:
> >
> > mga_vid.c:806: warning: initialization from incompatible pointer type
> > mga_vid.c:807: warning: missing braces around initializer
> > mga_vid.c:807: warning: (near initialization for `mga_v4l_dev.name')
>
> Try again now! (after cvs update)
> I've removed all the v4l stuff, because it's unused by MPlayer,
> but it's very kernel-version dependent.
>

Doesn't work.

After cvs update make fails:

root at PCNEU /privat/tv/main/drivers > make
gcc -g -O2  -Wall -D__KERNEL__  -DMODULE         -include 
/usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c 
mga_vid.c
mga_vid.c: In function `mga_vid_ioctl':
mga_vid.c:450: warning: long unsigned int format, uint32_t arg (arg 2)
mga_vid.c: In function `mga_vid_find_card':
mga_vid.c:547: warning: long unsigned int format, uint32_t arg (arg 2)
gcc -g -O -Wall -I/usr/src/linux/include -o mga_vid_test mga_vid_test.c
In file included from mga_vid_test.c:19:
mga_vid.h:22: parse error before `uint32_t'
mga_vid.h:22: warning: no semicolon at end of struct or union
mga_vid.h:23: warning: type defaults to `int' in declaration of `ram_size'
mga_vid.h:23: warning: data definition has no type or storage class
mga_vid.h:24: parse error before `src_width'
mga_vid.h:24: warning: type defaults to `int' in declaration of `src_width'
mga_vid.h:24: warning: data definition has no type or storage class
mga_vid.h:25: parse error before `src_height'
mga_vid.h:25: warning: type defaults to `int' in declaration of `src_height'
mga_vid.h:25: warning: data definition has no type or storage class
mga_vid.h:26: parse error before `dest_width'
mga_vid.h:26: warning: type defaults to `int' in declaration of `dest_width'
mga_vid.h:26: warning: data definition has no type or storage class
mga_vid.h:27: parse error before `dest_height'
mga_vid.h:27: warning: type defaults to `int' in declaration of `dest_height'
mga_vid.h:27: warning: data definition has no type or storage class
mga_vid.h:28: parse error before `x_org'
mga_vid.h:28: warning: type defaults to `int' in declaration of `x_org'
mga_vid.h:28: warning: data definition has no type or storage class
mga_vid.h:29: parse error before `y_org'
mga_vid.h:29: warning: type defaults to `int' in declaration of `y_org'
mga_vid.h:29: warning: data definition has no type or storage class
mga_vid.h:30: parse error before `colkey_on'
mga_vid.h:30: warning: type defaults to `int' in declaration of `colkey_on'
mga_vid.h:30: warning: data definition has no type or storage class
mga_vid.h:31: parse error before `colkey_red'
mga_vid.h:31: warning: type defaults to `int' in declaration of `colkey_red'
mga_vid.h:31: warning: data definition has no type or storage class
mga_vid.h:32: parse error before `colkey_green'
mga_vid.h:32: warning: type defaults to `int' in declaration of `colkey_green'
mga_vid.h:32: warning: data definition has no type or storage class
mga_vid.h:33: parse error before `colkey_blue'
mga_vid.h:33: warning: type defaults to `int' in declaration of `colkey_blue'
mga_vid.h:33: warning: data definition has no type or storage class
mga_vid.h:34: parse error before `format'
mga_vid.h:34: warning: type defaults to `int' in declaration of `format'
mga_vid.h:34: warning: data definition has no type or storage class
mga_vid.h:35: warning: type defaults to `int' in declaration of 
`mga_vid_config_t'
mga_vid.h:35: warning: data definition has no type or storage class
mga_vid_test.c:21: parse error before `config'
mga_vid_test.c:21: warning: type defaults to `int' in declaration of `config'
mga_vid_test.c:21: warning: data definition has no type or storage class
mga_vid_test.c:22: parse error before `*'
mga_vid_test.c:22: warning: type defaults to `int' in declaration of 
`mga_vid_base'
mga_vid_test.c:22: warning: data definition has no type or storage class
mga_vid_test.c:23: parse error before `is_g400'
mga_vid_test.c:23: warning: type defaults to `int' in declaration of `is_g400'
mga_vid_test.c:23: warning: data definition has no type or storage class
mga_vid_test.c:28: parse error before `y_image'
mga_vid_test.c:28: warning: type defaults to `int' in declaration of `y_image'
mga_vid_test.c:28: warning: data definition has no type or storage class
mga_vid_test.c:29: parse error before `cr_image'
mga_vid_test.c:29: warning: type defaults to `int' in declaration of 
`cr_image'
mga_vid_test.c:29: warning: data definition has no type or storage class
mga_vid_test.c:30: parse error before `cb_image'
mga_vid_test.c:30: warning: type defaults to `int' in declaration of 
`cb_image'
mga_vid_test.c:30: warning: data definition has no type or storage class
mga_vid_test.c:34: parse error before `*'
mga_vid_test.c: In function `write_frame_g200':
mga_vid_test.c:36: `uint8_t' undeclared (first use in this function)
mga_vid_test.c:36: (Each undeclared identifier is reported only once
mga_vid_test.c:36: for each function it appears in.)
mga_vid_test.c:36: `dest' undeclared (first use in this function)
mga_vid_test.c:36: warning: statement with no effect
mga_vid_test.c:37: `uint32_t' undeclared (first use in this function)
mga_vid_test.c:37: parse error before `bespitch'
mga_vid_test.c:40: `bespitch' undeclared (first use in this function)
mga_vid_test.c:40: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:42: `h' undeclared (first use in this function)
mga_vid_test.c:42: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:44: `y' undeclared (first use in this function)
mga_vid_test.c:44: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:45: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:49: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:51: `w' undeclared (first use in this function)
mga_vid_test.c:51: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:53: `cb' undeclared (first use in this function)
mga_vid_test.c:54: `cr' undeclared (first use in this function)
mga_vid_test.c:56: request for member `src_width' in something not a 
structure or union
mga_vid_test.c: At top level:
mga_vid_test.c:61: parse error before `*'
mga_vid_test.c: In function `write_frame_g400':
mga_vid_test.c:63: `uint8_t' undeclared (first use in this function)
mga_vid_test.c:63: `dest' undeclared (first use in this function)
mga_vid_test.c:63: warning: statement with no effect
mga_vid_test.c:64: `uint32_t' undeclared (first use in this function)
mga_vid_test.c:64: parse error before `bespitch'
mga_vid_test.c:67: `bespitch' undeclared (first use in this function)
mga_vid_test.c:67: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:69: `h' undeclared (first use in this function)
mga_vid_test.c:69: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:71: `y' undeclared (first use in this function)
mga_vid_test.c:71: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:72: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:76: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:78: `cb' undeclared (first use in this function)
mga_vid_test.c:78: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:79: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:83: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:85: `cr' undeclared (first use in this function)
mga_vid_test.c:85: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:86: request for member `src_width' in something not a 
structure or union
mga_vid_test.c: At top level:
mga_vid_test.c:91: parse error before `*'
mga_vid_test.c: In function `write_frame':
mga_vid_test.c:94: `y' undeclared (first use in this function)
mga_vid_test.c:94: `cr' undeclared (first use in this function)
mga_vid_test.c:94: `cb' undeclared (first use in this function)
mga_vid_test.c: In function `draw_cool_pattern':
mga_vid_test.c:105: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:106: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:112: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:113: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:119: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:120: request for member `src_width' in something not a 
structure or union
mga_vid_test.c: In function `draw_color_blend':
mga_vid_test.c:132: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:133: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:139: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:140: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:146: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:147: request for member `src_width' in something not a 
structure or union
mga_vid_test.c: In function `main':
mga_vid_test.c:167: request for member `src_width' in something not a 
structure or union
mga_vid_test.c:168: request for member `src_height' in something not a 
structure or union
mga_vid_test.c:169: request for member `dest_width' in something not a 
structure or union
mga_vid_test.c:170: request for member `dest_height' in something not a 
structure or union
mga_vid_test.c:171: request for member `x_org' in something not a structure 
or union
mga_vid_test.c:172: request for member `y_org' in something not a structure 
or union
mga_vid_test.c:173: request for member `colkey_on' in something not a 
structure or union
mga_vid_test.c:174: request for member `format' in something not a structure 
or union
mga_vid_test.c:181: request for member `card_type' in something not a 
structure or union
mga_vid_test.c:183: request for member `ram_size' in something not a 
structure or union
mga_vid_test.c:188: request for member `ram_size' in something not a 
structure or union
mga_vid_test.c:193: `uint8_t' undeclared (first use in this function)
mga_vid_test.c:193: parse error before `)'
make: *** [mga_vid_test] Error 1

Dirk



_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list