LinHES Forums
http://forum.linhes.org/

Missing DVB and IVTV headers with R5F27?
http://forum.linhes.org/viewtopic.php?f=6&t=16434
Page 1 of 1

Author:  greend139 [ Tue Sep 11, 2007 11:11 am ]
Post subject:  Missing DVB and IVTV headers with R5F27?

When trying to upgrade to svn on R5F27 my configure script kept telling me that it could not find the dvb headers, and that ivtv/v4l support would not be included. Looking into the headers folders in /usr/src/ I noticed that the the DVB, IVTV, and V4L headers were all sym links to files in the /root directory that are not there on a default install. Is there anyway to fix this, as I am not too experienced with playing with kernel headers. Thanks!

Author:  cecil [ Tue Sep 11, 2007 3:50 pm ]
Post subject: 

Get the "tip" from linuxtv.org and make kernel-links.

Author:  greend139 [ Wed Sep 12, 2007 5:32 am ]
Post subject: 

Thanks cecil, i'll give that a try. Also, thanks for a great release as always, to you and the testers :)

Author:  footeo [ Mon Oct 01, 2007 8:48 pm ]
Post subject: 

greend139 I seem to be having the same problem. Did you get this to work, and if so what steps did you take?

Author:  jbm2131 [ Mon Oct 01, 2007 11:34 pm ]
Post subject: 

It worked for me. Follow the instructions at http://linuxtv.org/repo/ for getting the latest v4l-dvb source (the "tip"). Once you download/unzip/un-tar the tarball, go into the directory that it created and as cecil said make kernel-links.

Author:  footeo [ Tue Oct 02, 2007 6:05 am ]
Post subject: 

did you have to make and make install in the v4l-dvb directory or just create the links?

Author:  jbm2131 [ Tue Oct 02, 2007 10:52 pm ]
Post subject: 

Just
Code:
make kernel-links.

All you are doing is creating symbolic links from the downloaded header files to the directory that the mythtv makefiles are expecting them to be. You don't need to compile anything. (Except for the mythtv source!)

Author:  pvr500 [ Wed Oct 03, 2007 9:26 pm ]
Post subject: 

jbm2131 wrote:
Just
Code:
make kernel-links.

All you are doing is creating symbolic links from the downloaded header files to the directory that the mythtv makefiles are expecting them to be. You don't need to compile anything. (Except for the mythtv source!)


I am sorry - I may be missing something here - I am having problems getting this to work -see error below - help please.

Quote:
/usr/src/v4l-dvb-b0a3a9b43d60# make kernel-links
make -C /usr/src/v4l-dvb-b0a3a9b43d60/v4l kernel-links
make[1]: Entering directory `/usr/src/v4l-dvb-b0a3a9b43d60/v4l'
cd ..; v4l/scripts/makelinks.sh /lib/modules/2.6.18-chw-13/source

usage: v4l/scripts/makelinks.sh <path_to_kernel_to_patch>

make[1]: Leaving directory `/usr/src/v4l-dvb-b0a3a9b43d60/v4l'

Author:  jbm2131 [ Wed Oct 03, 2007 10:28 pm ]
Post subject: 

Quote:
/usr/src/v4l-dvb-b0a3a9b43d60# make kernel-links
make -C /usr/src/v4l-dvb-b0a3a9b43d60/v4l kernel-links
make[1]: Entering directory `/usr/src/v4l-dvb-b0a3a9b43d60/v4l'
cd ..; v4l/scripts/makelinks.sh /lib/modules/2.6.18-chw-13/source

usage: v4l/scripts/makelinks.sh <path_to_kernel_to_patch>

make[1]: Leaving directory `/usr/src/v4l-dvb-b0a3a9b43d60/v4l'


When I run make kernel-links it does not try to link to /lib/modules/2.6.18-chw-13/source but to /lib/modules/2.6.18-chw-13/build, and this seems to work. Sounds like the Makefile is trying to guess where your kernel directory is and it is guessing wrong. My /lib/modules/2.6.18-chw-13/build is symlink'ed to /usr/src/linux-headers-2.6.18-chw-13. Is your directory structure different for some reason? Maybe if you linked /lib/modules/2.6.18-chw-13/source to /usr/src/linux-headers-2.6.18-chw-13 it would work.

Author:  greend139 [ Tue Oct 09, 2007 6:44 am ]
Post subject: 

I just downloaded the src tree from linuxtv and did make kernel-links (as root). Doing a make install really screwed a few things up, so i recommend not doing it. After make kernel-links i am able to build mythtv from svn head with dvb & ivtv support without any problems.

Author:  haffi [ Wed Oct 10, 2007 8:46 am ]
Post subject: 

I see they are linking to
ivtvfb.h -> /root/v4l-dvb-1387dc197077/linux/include/linux/

and there for im getting this version

http://linuxtv.org/hg/v4l-dvb/rev/1387dc197077

works for me

I tried the newer verison and got all kinds of errors, since that is not the same headers.

Author:  neutron68 [ Wed Feb 13, 2008 11:35 am ]
Post subject:  somewhat confused...

I'm confused, because TJC told us in his R5F27 Tips http://mysettopbox.tv/phpBB2/viewtopic.php?t=16384
that the headers are included with a default install??
Quote:
7.2) The full kernel source is no longer included, however, the kernel headers needed to compile modules are. I have personally compiled both ivtv and nVidia drivers using these.


After reading of version conflicts above, I followed haffi's method and downloaded the same version:
http://linuxtv.org/hg/v4l-dvb/rev/1387dc197077

I think the 'make kernel-links' worked. Here's the output to review:
Code:
root@mythtv:/usr/src/v4l-dvb-1387dc197077# make kernel-links
make -C /usr/src/v4l-dvb-1387dc197077/v4l kernel-links
make[1]: Entering directory `/usr/src/v4l-dvb-1387dc197077/v4l'
No version yet.
make[1]: Leaving directory `/usr/src/v4l-dvb-1387dc197077/v4l'
make[1]: Entering directory `/usr/src/v4l-dvb-1387dc197077/v4l'
cd ..;  v4l/scripts/makelinks.sh /lib/modules/2.6.18-chw-13/build
patching /lib/modules/2.6.18-chw-13/build...
make[1]: Leaving directory `/usr/src/v4l-dvb-1387dc197077/v4l'
root@mythtv:/usr/src/v4l-dvb-1387dc197077#


Next, I tried to compile the dvb-atsc-tools from the pchdtv.com website and they appered to compile now.
Code:
root@mythtv:/usr/src/dvb-atsc-tools-1.0.7# make
gcc -Wall -D_FILE_OFFSET_BITS=64     chopatscfile.c   -o chopatscfile
gcc -Wall -D_FILE_OFFSET_BITS=64     dtvsignal.c   -o dtvsignal
gcc -Wall -D_FILE_OFFSET_BITS=64     dtvscan.c   -o dtvscan
gcc -Wall -D_FILE_OFFSET_BITS=64     dtvsnr.c   -o dtvsnr
gcc -Wall -D_FILE_OFFSET_BITS=64     getatsc.c   -o getatsc
gcc -Wall -D_FILE_OFFSET_BITS=64     atscpackets.c   -o atscpackets
root@mythtv:/usr/src/dvb-atsc-tools-1.0.7# make install
install --mode=u=rwx,go=rx chopatscfile dtvsignal dtvscan dtvsnr getatsc atscpackets /usr/bin
root@mythtv:/usr/src/dvb-atsc-tools-1.0.7#

Are there other software packages or modules that will require users to "make kernel-links" for?

Insight appreciated,
Eric

Author:  jbm2131 [ Wed Feb 13, 2008 10:31 pm ]
Post subject: 

If you search around a bit, you will see that these missing headers have been required for quite a few different purposes. I can't remember all of them, but luckily you now have them. I think their absence is just an unfortunate oversight judging by cecil's comment from http://www.knoppmyth.net/phpBB2/viewtopic.php?p=104432#104432

cecil wrote:
Get the tip of v4l/dvb and make kernel-links. I've a lot on my plate at the moment, but I'll try and remember this for future releases. You can find the "tip" here: http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.bz2

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/