Author |
Message |
dwaine
|
Posted: Wed Jan 02, 2008 4:51 pm |
|
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
|
I grabbed a V4L CVS today and tried to compile it. It gives me a compiling error. Anyone else trying to compile a pull from v4l CVS?
Here's the compile error. Any suggestions?
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/usbvision-core.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/usbvision-video.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/usbvision-i2c.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/usbvision-cards.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/zc0301_core.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/zc0301_pb0330.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/zc0301_pas202bcb.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/zoran_procfs.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/zoran_device.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/zoran_driver.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/zoran_card.o
LD [M] /usr/src/v4l-dvb-e57736b60075/v4l/saa7146.o
LD [M] /usr/src/v4l-dvb-e57736b60075/v4l/saa7146_vv.o
LD [M] /usr/src/v4l-dvb-e57736b60075/v4l/ir-common.o
CC [M] /usr/src/v4l-dvb-e57736b60075/v4l/videodev.o
/usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:126: error: unknown field 'dev_attrs' specified in initializer
/usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:126: warning: initialization from incompatible pointer type
/usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: error: unknown field 'dev_release' specified in initializer
/usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: warning: missing braces around initializer
/usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: warning: (near initialization for 'video_class.subsys')
/usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: warning: initialization from incompatible pointer type
make[3]: *** [/usr/src/v4l-dvb-e57736b60075/v4l/videodev.o] Error 1
make[2]: *** [_module_/usr/src/v4l-dvb-e57736b60075/v4l] 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-e57736b60075/v4l'
make: *** [all] Error 2
root@mythtv:/usr/src/v4l-dvb-e57736b60075#
|
|
Top |
|
 |
slowtolearn
|
Posted: Wed Jan 02, 2008 7:42 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
dwaine wrote: /usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:126: error: unknown field 'dev_attrs' specified in initializer /usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:126: warning: initialization from incompatible pointer type /usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: error: unknown field 'dev_release' specified in initializer /usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: warning: missing braces around initializer /usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: warning: (near initialization for 'video_class.subsys') /usr/src/v4l-dvb-e57736b60075/v4l/videodev.c:127: warning: initialization from incompatible pointer type You should check with the V4L devs to see what they say. Looks like they've missed/mistyped some things, or there are dependencies that you don't have fulfilled on your system.
|
|
Top |
|
 |
dwaine
|
Posted: Thu Jan 10, 2008 9:43 am |
|
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
|
This patch fixed the compiling problem. It was the recent changes for videodev split up.
v4l cvs now compiles...
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 /* __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,
|
|
Top |
|
 |
bode77
|
Posted: Mon Mar 03, 2008 10:49 pm |
|
Joined: Tue Jul 11, 2006 11:05 pm
Posts: 77
|
I was hoping for a little help on this. I tried using the patch but get these errors:
Code: root@mythtv:~/v4l-dvb# patch -p1 < /myth/tmp/v4ldvb2618patch.txt patching file linux/drivers/media/video/v4l1-compat.c Hunk #1 FAILED at 145. 1 out of 1 hunk FAILED -- saving rejects to file linux/drivers/media/video/v4l1-compat.c.rej patching file linux/drivers/media/video/videodev.c Hunk #1 FAILED at 111. patch unexpectedly ends in middle of line Hunk #2 FAILED at 120. 2 out of 2 hunks FAILED -- saving rejects to file linux/drivers/media/video/videodev.c.rej
Probably because I don't really know what I'm doing with this. I ran it on driver source, is that correct? I have been trying to get this thing updated forever and am not getting any further. Any help would be much appreciated. I need to get the v4l compiled as who knows when a new kernel will be introduced into KM. Thanks
_________________ R5*
AMD Athlon X2 64 4850e
M2NPV-VM
LVM: 120 GB PATA & 320 GB SATA
1GB DDR2
PVR500
DVico Fusion Express
Pioneer DVR-111D
RC6 Remote
|
|
Top |
|
 |
cecil
|
Posted: Tue Mar 04, 2008 7:23 am |
|
 |
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
What does this patch do? Where can I find details?
|
|
Top |
|
 |
bode77
|
Posted: Wed Mar 05, 2008 12:09 am |
|
Joined: Tue Jul 11, 2006 11:05 pm
Posts: 77
|
The patch is supposed to allow an install of newer v4l-dvb drivers on the 2.6.18. It originated here:
http://www.gossamer-threads.com/lists/ivtv/devel/37175
_________________ R5*
AMD Athlon X2 64 4850e
M2NPV-VM
LVM: 120 GB PATA & 320 GB SATA
1GB DDR2
PVR500
DVico Fusion Express
Pioneer DVR-111D
RC6 Remote
|
|
Top |
|
 |
cecil
|
Posted: Wed Mar 05, 2008 3:53 am |
|
 |
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
LOL! KnoppMyth R5F27 at the time of it's release had newer versions of the drivers. Newer than what was in the kernel. You don't need this patch, the work has been done for you.
|
|
Top |
|
 |
bode77
|
Posted: Wed Mar 05, 2008 9:51 am |
|
Joined: Tue Jul 11, 2006 11:05 pm
Posts: 77
|
I don't get the joke. I am trying to install the "tip" as are the rest of the folks in this thread. R5F27 isn't more recent than that. I need some mods that are not included on my R5F27.
Is the patch not up to the "tip"? I have been able to fix almost every issue ever encountered with KM by using this forum without needing to ask too many questions. But installing the V4L-DVB "tip" or any other version just doesn't seem resolved for me with any posts here. This seemed to be the most promising of late after kernel sources, kernel links, etc.
Just seems from all the errors there is an issue with .../videodev.c:* in 2.6.18 for several people on the make and some people used this patch to get over the hump. Is there a better way to get this to work?
I started a post some time ago but never had a resolution then either. Sucks since my KM box is just sitting there waiting for a fix.
http://knoppmyth.net/phpBB2/viewtopic.php?t=17253
_________________ R5*
AMD Athlon X2 64 4850e
M2NPV-VM
LVM: 120 GB PATA & 320 GB SATA
1GB DDR2
PVR500
DVico Fusion Express
Pioneer DVR-111D
RC6 Remote
|
|
Top |
|
 |
cecil
|
Posted: Wed Mar 05, 2008 5:26 pm |
|
 |
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
You shouldn't need a patch to compile tip. Would you like to test the latest version of Knoppmyth to ensure it resolves your problem? If so, please PM me.
|
|
Top |
|
 |
dwaine
|
Posted: Mon Mar 10, 2008 10:46 pm |
|
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
|
I posted some patches to the dvb/v4l hg tree. I wanted to test out my patches and need this patch to be able to compile the hg tree.
The hg tree gets updated on a daily basis?
Dwaine
|
|
Top |
|
 |
cecil
|
Posted: Fri Mar 14, 2008 1:22 am |
|
 |
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
Would you like to test the latest version of KnoppMyth? It is based on 2.6.23 and a very recent V4L/DVB "tip".
|
|
Top |
|
 |
dwaine
|
Posted: Sat Mar 22, 2008 11:27 pm |
|
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
|
arrrgghhh.. I can get the v4l-dvb HG tree to compile, but it does not compile all the modules in the tree.
I did do a make kernel-links. make all
There is suppose to be 228 modules that get compiled. Guess what.. The two modules the saa7134 and cx88 is what I needed. Anyway around this.
make[2]: Leaving directory `/usr/src/linux-source-2.6.18-chw-13'
./scripts/rmmod.pl check
found 198 modules
make[1]: Leaving directory `/myth/v4l-dvb-9a2af878cbd5/v4l'
root@mythtv:/myth/v4l-dvb-9a2af878cbd5# make all
make -C /myth/v4l-dvb-9a2af878cbd5/v4l all
make[1]: Entering directory `/myth/v4l-dvb-9a2af878cbd5/v4l'
creating symbolic links...
Kernel build directory is /lib/modules/2.6.18-chw-13/build
make -C /lib/modules/2.6.18-chw-13/build SUBDIRS=/myth/v4l-dvb-9a2af878cbd5/v4l modules
make[2]: Entering directory `/usr/src/linux-source-2.6.18-chw-13'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/linux-source-2.6.18-chw-13'
./scripts/rmmod.pl check
found 198 modules
make[1]: Leaving directory `/myth/v4l-dvb-9a2af878cbd5/v4l'
Here is the make kernel-links output...
root@mythtv:/myth/v4l-dvb-9a2af878cbd5# make kernel-links
make -C /myth/v4l-dvb-9a2af878cbd5/v4l kernel-links
make[1]: Entering directory `/myth/v4l-dvb-9a2af878cbd5/v4l'
cd ..; v4l/scripts/makelinks.sh /lib/modules/2.6.18-chw-13/source
patching /lib/modules/2.6.18-chw-13/source...
make[1]: Leaving directory `/myth/v4l-dvb-9a2af878cbd5/v4l'
root@mythtv:/myth/v4l-dvb-9a2af878cbd5#
I was hoping to get this resolved this weekend so I can submit the necessary patches to get the Digiwave 108g card working under v4l-dvb. Just need to test out the patches on my mythtv box.
Dwaine
|
|
Top |
|
 |
slawlor
|
Posted: Tue Mar 25, 2008 11:52 am |
|
Joined: Mon Mar 24, 2008 6:07 pm
Posts: 1
|
I can't get the latest dvb drivers to compile either. Dying to put my HVR-1800 to work. I would love to test the latest release for ya, Cecil!
|
|
Top |
|
 |
acosgrove
|
Posted: Tue Mar 25, 2008 2:44 pm |
|
Joined: Fri Jun 10, 2005 7:57 pm
Posts: 29
Location:
Alpharetta, GA.
|
I was trying to update to either trunk or 0.21-fixes but the compile failed when trying to do mythplugins. It referenced videodev.h which is a symbolic link to an install that sat in the root folder before R5F27 was cleaned up and released. Where can I get the headers I need or do I need to re-download v4l-dvb?
|
|
Top |
|
 |
Golffies
|
Posted: Mon May 26, 2008 12:38 am |
|
Joined: Mon Dec 18, 2006 1:20 pm
Posts: 98
Location:
Krakow, Poland, EU
|
Hello,
The same applies to Satelco Easywatch PCI DVB-T card. The card does not work out of the box under Knoppmyth R5F27. This patch may solve it. As trying to compile latest v4l-dvb drivers against 2.6.18-chw-13 kernel (KnoppMyth R5F27), I am facing the very same issue:
Code: /v4l-dvb/v4l/videodev.c:498: error: unknown field 'dev_attrs' specified in initializer /v4l-dvb/v4l/videodev.c:498: warning: initialization from incompatible pointer type /v4l-dvb/v4l/videodev.c:499: error: unknown field 'dev_release' specified in initializer /v4l-dvb/v4l/videodev.c:499: warning: missing braces around initializer /v4l-dvb/v4l/videodev.c:499: warning: (near initialization for 'video_class.subsys') /v4l-dvb/v4l/videodev.c:499: warning: initialization from incompatible pointer type
cecil wrote: Would you like to test the latest version of KnoppMyth? It is based on 2.6.23 and a very recent V4L/DVB "tip".
Definitely yes  , as attempts to compile present v4l-dvb drivers with kernel older than 2.6.19 seem to be unsuccessful.
Regards.
|
|
Top |
|
 |