LinHES Forums http://forum.linhes.org/ |
|
v4l-dvb compile errors http://forum.linhes.org/viewtopic.php?f=14&t=16991 |
Page 1 of 1 |
Author: | cyborg [ Tue Oct 16, 2007 10:47 am ] |
Post subject: | v4l-dvb compile errors |
Not sure whats going on here, when I try and build the latest v4l drivers it blows up on me with the errors below, any help would be greatly appreciated. /usr/src/v4l-dvb/v4l/pvrusb2-sysfs.c:928: error: 'struct class' has no member named 'dev_release' /usr/src/v4l-dvb/v4l/pvrusb2-sysfs.c:933: error: 'struct class' has no member named 'dev_uevent' make[4]: *** [/usr/src/v4l-dvb/v4l/pvrusb2-sysfs.o] Error 1 make[3]: *** [_module_/usr/src/v4l-dvb/v4l] Error 2 make[2]: *** [modules] Error 2 make[2]: Leaving directory `/usr/src/linux-source-2.6.18-chw-13' make[1]: *** [default] Error 2 make[1]: Leaving directory `/usr/src/v4l-dvb/v4l' make: *** [all] Error 2 |
Author: | cesman [ Tue Oct 16, 2007 7:06 pm ] |
Post subject: | |
More details please. How exactly are you attempting to compile the latest? |
Author: | cyborg [ Tue Oct 16, 2007 7:52 pm ] |
Post subject: | |
cesman wrote: More details please. How exactly are you attempting to compile the latest?
simple make at this point Did apt-get install mercurial cd/usr/src hg clone http://linuxtv.org/hg/v4l-dvb cd v4l-dvb make what you see in my first post is ultimately the error of the out come. |
Author: | scottr [ Wed Nov 07, 2007 1:09 am ] |
Post subject: | Different errors for me (w/resolution) |
I've gotten a newer rev of the v4l-dvb code (as of 4-nov) and had a couple of other issues. I made the following changes: Code: diff -r b9523a14ccea linux/drivers/media/video/v4l1-compat.c
--- a/linux/drivers/media/video/v4l1-compat.c Sun Nov 04 14:34:05 2007 -0200 +++ b/linux/drivers/media/video/v4l1-compat.c Wed Nov 07 00:00:45 2007 -0600 @@ -145,7 +145,7 @@ const static unsigned int palette2pixelf [VIDEO_PALETTE_YUV422P] = V4L2_PIX_FMT_YUV422P, }; -static unsigned int __pure +static unsigned int __attribute_pure__ palette_to_pixelformat(unsigned int palette) { if (palette < ARRAY_SIZE(palette2pixelformat)) diff -r b9523a14ccea linux/drivers/media/video/videodev.c --- a/linux/drivers/media/video/videodev.c Sun Nov 04 14:34:05 2007 -0200 +++ b/linux/drivers/media/video/videodev.c Tue Nov 06 19:31:57 2007 -0600 @@ -111,7 +111,7 @@ static void video_release(struct device vfd->release(vfd); } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) static struct device_attribute video_device_attrs[] = { __ATTR(name, S_IRUGO, show_name, NULL), __ATTR_NULL @@ -120,7 +120,7 @@ static struct device_attribute video_dev static struct class video_class = { .name = VIDEO_NAME, -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) .release = video_release, #else .dev_attrs = video_device_attrs, The former appears to be a gcc-ism, and as far as I can tell the latter two are simply a goof (as there is no dev_attrs field in struct class for 2.6.18). Note that you will get warnings when compiling videodev.c; you can ignore them. This works for me but your mileage may vary. Caveat emptor and all that. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |