LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2008, 02:01 PM   #1
treimers
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Rep: Reputation: 0
Problem compiling ivtv-0.10.6 against 2.6.18-92.1.18.el5.centos.plus


hi everyone--

I'm running into one of the fairly common compiling problems... but I'm not good at compiling!

Here's the system:

I'm trying to get a Hauppage PVR-350 card working to just view TV
(MythTV is installed, and I might start using it, but the gameplan
is primarily just to watch TV first)

Software:
ivtv-0.10.6 (apparently this is best for the PVR-350 cards
according to linuxtv.org's wiki)

Kernel
kernel-devel-2.6.18-92.1.6.el5
kernel-headers-2.6.18-92.1.18.el5.centos.plus
yum-kernel-module-1.0.4-3.el5.centos.2
kernel-2.6.18-92.1.18.el5.centos.plus
kernel-doc-2.6.18-92.el5
kernel-2.6.18-53.el5

uname -a
Linux myhost.mydomain.org 2.6.18-92.1.18.el5.centos.plus #1 SMP Wed Nov 26 07:40:57 EST 2008 i686 i686 i386 GNU/Linux


So I'm running the same kernel that I have -devel and -headers installed for.



The instructions to compile ivtv from sources are:
"From http://ivtvdriver.org/index.php/Howto"

tar -zxf ivtv-0.10.0.tar.gz
cd ivtv-0.10.0/
make
su -c "make install" or sudo make install





However, when I do a "make" I get this:
make -C driver all
make[1]: Entering directory `/root/software/ivtv/ivtv-0.10.6/driver'
make -C /lib/modules/2.6.18-92.1.18.el5.centos.plus/build M=/root/software/ivtv/ivtv-0.10.6/driver modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-92.1.18.el5.centos.plus/build: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/software/ivtv/ivtv-0.10.6/driver'
make: *** [all] Error 2

That says that
"/lib/modules/2.6.18-92.1.18.el5.centos.plus/build"
does not exist

Here's an ls

[root@media1 2.6.18-92.1.18.el5.centos.plus]# ls -la
total 1336
drwxr-xr-x 6 root root 4096 Dec 4 22:20 .
drwxr-xr-x 4 root root 4096 Dec 4 22:20 ..
lrwxrwxrwx 1 root root 60 Dec 4 22:20 build -> ../../../usr/src/kernels/2.6.18-92.1.18.el5.centos.plus-i686
<snip>

Build is a symlink.

Notice that it's WRONG.
It's referring to
/usr/src/2.6.18-92.1.18.el5.centos.plus-i686

However. the actual directory is
/usr/src/2.6.18-92.1.18.el5-i686

centos-plus is NOT actually part of the directory name, yet the symlink that gets built is.


I thought I'd post this since I bet LOTS of folks have had build problems because of this.

Maybe now some of them will trip over this post and resolve their issue.
 
Old 12-05-2008, 02:04 PM   #2
treimers
LQ Newbie
 
Registered: Dec 2003
Posts: 10

Original Poster
Rep: Reputation: 0
OK, so now I do have a question about the next bit of install directions for IPTV

Under a section called "udev rules"


udev versions before 098
You're looking for the ID parameter (if you're clever you can just use lspci to get this). Write your udev rule as follows

DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="id", SYMLINK+="name"

Example:

DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:02:08.0", SYMLINK+="pvr_500_1"


WHAT are they talking about here?

I've never messed with udev before, and have no idea where to PUT a 'udeve rule' or whether I even need to do this?
 
Old 12-06-2008, 12:44 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 1 " /lib/modules/2.6.18-92.1.18.el5.centos.plus/build "
> > 'build' is a symlink to /usr/src/kernels/2.xx.xx...
This is the first thing to do. ( May work, the kernel-devel
is a limited package, contains very few files. )

Else go to the next possible move :

" yum install kernel-source-`uname -r` " will do if a package is
available ( there isn't any for my CentOS-5.2, being 2.6.18-92.el5 )

A very few other source packages can be found, example
http://ftp.linux.ncsu.edu/pub/centos...tosplus/SRPMS/
> > e.g. kernel-2.6.18-92.1.18.el5.centos.plus.src.rpm
which will install ( unpack to ) /usr/src/redhat/SOURCES

The "tar.bz2" can then be unpacked e.g.to your /home (/root is
not a recommended place to do anything), patches applied etc.

An update seems an idea, I have one running now, but the
kernel-devel version coming in is 2.6.18-92.1.18, so that
makes no real differece for the source.
....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.2 Linux Kernel 2.6.18-92.1.10.el5 - Cannot Load e1000e driver jreige Linux - Hardware 1 09-18-2008 12:57 PM
Installing ivtv on CentOS 5 Linux31 Red Hat 5 04-25-2008 05:44 PM
problem with iptables afer compiling 2.6.24.2 from www.kernel.org on centos 5.1 tanch Linux - Newbie 4 03-03-2008 12:22 AM
IVTV module failing while compiling from Mandriva urpmi Mikel Sevrel Linux - Software 2 05-19-2006 11:01 PM
error compiling ivtv in KnoppMyth newmoon Linux - General 11 05-13-2005 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration