[MPlayer-users] problem compiling stream_pvr.c

Larry Bernstone larry.bernstone at comcast.net
Tue Jan 2 22:00:56 CET 2007


Not being a C programmer, I was hoping to get some help from the mailing
list.  I am getting the following error compiling MPlayer 1.0rc1 with
--enable-pvr on my machine with kernel 2.6.19.1:
cc -c -I.. -I../loader  -Wdeclaration-after-statement -O4 -march=k8
-mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/directfb
-I/usr/X11/include  -I/usr/include/SDL -D_REENTRANT
-I/opt/kde3/include/artsc -pthread -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib64/glib-2.0/include  -I/usr/include/freetype2 -o
stream_pvr.o stream_pvr.c
stream_pvr.c: In function 'pvr_init':
stream_pvr.c:136: error: 'V4L2_MPEG_VIDEO_ASPECT_4x3' undeclared (first
use in this function)
stream_pvr.c:136: error: (Each undeclared identifier is reported only
once
stream_pvr.c:136: error: for each function it appears in.)
stream_pvr.c:137: error: 'V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000'
undeclared (first use in this function)
stream_pvr.c:138: error: 'V4L2_MPEG_AUDIO_ENCODING_LAYER_2' undeclared
(first use in this function)
stream_pvr.c:139: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_384K' undeclared
(first use in this function)
stream_pvr.c:140: error: 'V4L2_MPEG_AUDIO_MODE_STEREO' undeclared (first
use in this function)
stream_pvr.c:142: error: 'V4L2_MPEG_VIDEO_BITRATE_MODE_VBR' undeclared
(first use in this function)
stream_pvr.c:144: error: 'V4L2_MPEG_STREAM_TYPE_MPEG2_PS' undeclared
(first use in this function)
stream_pvr.c: In function 'parse_encoder_options':
stream_pvr.c:182: error: 'V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000'
undeclared (first use in this function)
stream_pvr.c:185: error: 'V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100'
undeclared (first use in this function)
stream_pvr.c:188: error: 'V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000'
undeclared (first use in this function)
stream_pvr.c:197: error: 'V4L2_MPEG_AUDIO_ENCODING_LAYER_1' undeclared
(first use in this function)
stream_pvr.c:199: error: 'V4L2_MPEG_AUDIO_ENCODING_LAYER_2' undeclared
(first use in this function)
stream_pvr.c:201: error: 'V4L2_MPEG_AUDIO_ENCODING_LAYER_3' undeclared
(first use in this function)
stream_pvr.c:211: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_32K' undeclared
(first use in this function)
stream_pvr.c:214: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_64K' undeclared
(first use in this function)
stream_pvr.c:217: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_96K' undeclared
(first use in this function)
stream_pvr.c:220: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_128K' undeclared
(first use in this function)
stream_pvr.c:223: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_160K' undeclared
(first use in this function)
stream_pvr.c:226: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_192K' undeclared
(first use in this function)
stream_pvr.c:229: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_224K' undeclared
(first use in this function)
stream_pvr.c:232: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_256K' undeclared
(first use in this function)
stream_pvr.c:235: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_288K' undeclared
(first use in this function)
stream_pvr.c:238: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_320K' undeclared
(first use in this function)
stream_pvr.c:241: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_352K' undeclared
(first use in this function)
stream_pvr.c:244: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_384K' undeclared
(first use in this function)
stream_pvr.c:247: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_416K' undeclared
(first use in this function)
stream_pvr.c:250: error: 'V4L2_MPEG_AUDIO_L1_BITRATE_448K' undeclared
(first use in this function)
stream_pvr.c:262: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_32K' undeclared
(first use in this function)
stream_pvr.c:265: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_48K' undeclared
(first use in this function)
stream_pvr.c:268: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_56K' undeclared
(first use in this function)
stream_pvr.c:271: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_64K' undeclared
(first use in this function)
stream_pvr.c:274: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_80K' undeclared
(first use in this function)
stream_pvr.c:277: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_96K' undeclared
(first use in this function)
stream_pvr.c:280: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_112K' undeclared
(first use in this function)
stream_pvr.c:283: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_128K' undeclared
(first use in this function)
stream_pvr.c:286: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_160K' undeclared
(first use in this function)
stream_pvr.c:289: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_192K' undeclared
(first use in this function)
stream_pvr.c:292: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_224K' undeclared
(first use in this function)
stream_pvr.c:295: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_256K' undeclared
(first use in this function)
stream_pvr.c:298: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_320K' undeclared
(first use in this function)
stream_pvr.c:301: error: 'V4L2_MPEG_AUDIO_L2_BITRATE_384K' undeclared
(first use in this function)
stream_pvr.c:313: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_32K' undeclared
(first use in this function)
stream_pvr.c:316: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_40K' undeclared
(first use in this function)
stream_pvr.c:319: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_48K' undeclared
(first use in this function)
stream_pvr.c:322: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_56K' undeclared
(first use in this function)
stream_pvr.c:325: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_64K' undeclared
(first use in this function)
stream_pvr.c:328: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_80K' undeclared
(first use in this function)
stream_pvr.c:331: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_96K' undeclared
(first use in this function)
stream_pvr.c:334: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_112K' undeclared
(first use in this function)
stream_pvr.c:337: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_128K' undeclared
(first use in this function)
stream_pvr.c:340: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_160K' undeclared
(first use in this function)
stream_pvr.c:343: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_192K' undeclared
(first use in this function)
stream_pvr.c:346: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_224K' undeclared
(first use in this function)
stream_pvr.c:349: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_256K' undeclared
(first use in this function)
stream_pvr.c:352: error: 'V4L2_MPEG_AUDIO_L3_BITRATE_320K' undeclared
(first use in this function)
stream_pvr.c:364: error: 'V4L2_MPEG_AUDIO_MODE_STEREO' undeclared (first
use in this function)
stream_pvr.c:366: error: 'V4L2_MPEG_AUDIO_MODE_JOINT_STEREO' undeclared
(first use in this function)
stream_pvr.c:368: error: 'V4L2_MPEG_AUDIO_MODE_DUAL' undeclared (first
use in this function)
stream_pvr.c:370: error: 'V4L2_MPEG_AUDIO_MODE_MONO' undeclared (first
use in this function)
stream_pvr.c:381: error: 'V4L2_MPEG_VIDEO_BITRATE_MODE_VBR' undeclared
(first use in this function)
stream_pvr.c:383: error: 'V4L2_MPEG_VIDEO_BITRATE_MODE_CBR' undeclared
(first use in this function)
stream_pvr.c:394: error: 'V4L2_MPEG_STREAM_TYPE_MPEG2_PS' undeclared
(first use in this function)
stream_pvr.c:396: error: 'V4L2_MPEG_STREAM_TYPE_MPEG2_TS' undeclared
(first use in this function)
stream_pvr.c:398: error: 'V4L2_MPEG_STREAM_TYPE_MPEG1_SS' undeclared
(first use in this function)
stream_pvr.c:400: error: 'V4L2_MPEG_STREAM_TYPE_MPEG2_DVD' undeclared
(first use in this function)
stream_pvr.c:402: error: 'V4L2_MPEG_STREAM_TYPE_MPEG1_VCD' undeclared
(first use in this function)
stream_pvr.c:404: error: 'V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD' undeclared
(first use in this function)
stream_pvr.c: At top level:
stream_pvr.c:410: warning: 'struct v4l2_ext_control' declared inside
parameter list
stream_pvr.c:410: warning: its scope is only this definition or
declaration, which is probably not what you want
stream_pvr.c: In function 'add_v4l2_ext_control':
stream_pvr.c:412: error: dereferencing pointer to incomplete type
stream_pvr.c:413: error: dereferencing pointer to incomplete type
stream_pvr.c: In function 'set_encoder_settings':
stream_pvr.c:420: error: storage size of 'ctrls' isn't known
stream_pvr.c:430: error: invalid application of 'sizeof' to incomplete
type 'struct v4l2_ext_control'
stream_pvr.c:432: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:432: error: dereferencing pointer to
incomplete type
stream_pvr.c:432: error: 'V4L2_CID_MPEG_VIDEO_ASPECT' undeclared (first
use in this function)
stream_pvr.c:435: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:435: error: dereferencing pointer to
incomplete type
stream_pvr.c:435: error: 'V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ' undeclared
(first use in this function)
stream_pvr.c:438: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:438: error: dereferencing pointer to
incomplete type
stream_pvr.c:438: error: 'V4L2_CID_MPEG_AUDIO_ENCODING' undeclared
(first use in this function)
stream_pvr.c:443: error: 'V4L2_MPEG_AUDIO_ENCODING_LAYER_1' undeclared
(first use in this function)
stream_pvr.c:444: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:444: error: dereferencing pointer to
incomplete type
stream_pvr.c:444: error: 'V4L2_CID_MPEG_AUDIO_L1_BITRATE' undeclared
(first use in this function)
stream_pvr.c:447: error: 'V4L2_MPEG_AUDIO_ENCODING_LAYER_2' undeclared
(first use in this function)
stream_pvr.c:448: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:448: error: dereferencing pointer to
incomplete type
stream_pvr.c:448: error: 'V4L2_CID_MPEG_AUDIO_L2_BITRATE' undeclared
(first use in this function)
stream_pvr.c:451: error: 'V4L2_MPEG_AUDIO_ENCODING_LAYER_3' undeclared
(first use in this function)
stream_pvr.c:452: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:452: error: dereferencing pointer to
incomplete type
stream_pvr.c:452: error: 'V4L2_CID_MPEG_AUDIO_L3_BITRATE' undeclared
(first use in this function)
stream_pvr.c:459: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:459: error: dereferencing pointer to
incomplete type
stream_pvr.c:459: error: 'V4L2_CID_MPEG_AUDIO_MODE' undeclared (first
use in this function)
stream_pvr.c:462: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:462: error: dereferencing pointer to
incomplete type
stream_pvr.c:462: error: 'V4L2_CID_MPEG_VIDEO_BITRATE' undeclared (first
use in this function)
stream_pvr.c:465: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:465: error: dereferencing pointer to
incomplete type
stream_pvr.c:465: error: 'V4L2_CID_MPEG_VIDEO_BITRATE_PEAK' undeclared
(first use in this function)
stream_pvr.c:468: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:468: error: dereferencing pointer to
incomplete type
stream_pvr.c:468: error: 'V4L2_CID_MPEG_VIDEO_BITRATE_MODE' undeclared
(first use in this function)
stream_pvr.c:471: error: invalid use of undefined type 'struct
v4l2_ext_control'stream_pvr.c:471: error: dereferencing pointer to
incomplete type
stream_pvr.c:471: error: 'V4L2_CID_MPEG_STREAM_TYPE' undeclared (first
use in this function)
stream_pvr.c:475: error: 'V4L2_CTRL_CLASS_MPEG' undeclared (first use in
this function)
stream_pvr.c:479: error: 'VIDIOC_S_EXT_CTRLS' undeclared (first use in
this function)
stream_pvr.c: In function 'pvr_stream_open':
stream_pvr.c:930: error: storage size of 'ctrls' isn't known
stream_pvr.c:977: error: 'V4L2_CTRL_CLASS_MPEG' undeclared (first use in
this function)
stream_pvr.c:981: error: 'VIDIOC_G_EXT_CTRLS' undeclared (first use in
this function)
make: *** [stream_pvr.o] Error 1




More information about the MPlayer-users mailing list