On Mon, 2018-05-28 at 10:09 +1200, Christopher Gregory wrote:
> Hello,
> 
> For some reason libdv-1.0.0 will not compile for me.  I have checked the
> patches at debian and not even with the patches applied will it compile
> successfully.
> 
> The error I am getting is:
> 
> encode.c:1505:2: note: within this loop
>   for (;i < 16; i++) {
>   ^~~
> mv -f .deps/encode.Tpo .deps/encode.Plo
> /bin/sh ../libtool --silent  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I..     -g -O2 -Wall -g -MT headers.lo -MD -MP -MF .deps/headers.Tpo
> -c -o headers.lo headers.c
> mv -f .deps/headers.Tpo .deps/headers.Plo
> /bin/sh ../libtool --silent  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I..     -g -O2 -Wall -g -MT enc_input.lo -MD -MP -MF
> .deps/enc_input.Tpo -c -o enc_input.lo enc_input.c
> enc_input.c:1021:36: error: ‘VIDEO_MAX_FRAME’ undeclared here (not in a
> function); did you mean ‘VIDEO_MODE_SECAM’?
>  static struct video_mmap gb_frames[VIDEO_MAX_FRAME];
>                                     ^~~~~~~~~~~~~~~
>                                     VIDEO_MODE_SECAM
> enc_input.c:1021:26: warning: ‘gb_frames’ defined but not used
> [-Wunused-variable]
>  static struct video_mmap gb_frames[VIDEO_MAX_FRAME];
> 
> Regards,
> 
> Christopher.
> 

Do you have the following file installed?
/usr/include/linux/videodev2.h
That's where VIDEO_MAX_FRAME is defined.

Also grep the configure output for videodev.h which apparently is an old 
version.

Regards,
Wayne.


-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to