2008/5/31 Johannes Sixt <[EMAIL PROTECTED]>:
> On Friday 30 May 2008 03:32, KH KH wrote:
>> 2008/5/19 Johannes Sixt <[EMAIL PROTECTED]>:
>> > On Monday 19 May 2008 13:53, Nicolas Chauvet wrote:
>> >> - sed -i -e 's|linux/time.h|time.h|' configure.in configure
>> >> The configure script test if v4l2 can be built with linux/time.h (and
>> >> fails) but this header isn't specified in the source codec elsewhere.
>> >> Instead time.h is found and the test will succeed if this file is used.
>> >
>> > It does not work here with #include <time.h> (Suse 10.1). I need
>> > <linux/time.h>. It's the types __u32 etc. that are needed. :( What to do?
>>
>> on Fedora 8 with glibc 2.7 and kernel 2.6.24
>> asm/types.h:typedef unsigned int __u32;
>> linux/types.h:#include <asm/types.h>
>> linux/videodev2.h:#include <linux/types.h>
>>
>> So I think <linux/videodev2.h> would be enought, but i'm not really
>> confident on this point.
#ifndef __LINUX_VIDEODEV2_H
#define __LINUX_VIDEODEV2_H
#define __user
#include <sys/time.h>
#include <linux/types.h>
That's on the top of the videodev2.h
My guess is only the configure part fails, this means that if you want to have
linux/videodev2.h compiled, you need to test this as a configure step:
Do we need {,linux/time.h,time.h} for linux/videodev2.h
in the vlc case, they check if they have new_videodev2.h with this compile test:
(where VIDEODEV2_H_FILE is either the system autodetected one or a
manually specified one).
[AC_TRY_COMPILE([
#include <sys/types.h>
# ifdef VIDEODEV2_H_FILE
# include VIDEODEV2_H_FILE
# else
# include <linux/videodev2.h>
# endif
],
[struct v4l2_ext_controls ctrls; ctrls.ctrl_class =
V4L2_CTRL_CLASS_MPEG; ],
new_linux_videodev2_h=yes,
new_linux_videodev2_h=no)])
Nicolas (kwizart)
> On my system this:
>
> linux/videodev2.h:#include <linux/types.h>
>
> is inside #ifdef __KERNEL__/#endif brackets :-(
>
> -- Hannes
>
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra