You are not logged in.

#1 2011-09-10 11:04:47

arne
Member
Registered: 2009-09-29
Posts: 8

Cannot compile saa716x

I have a Philips Semiconductors SAA7160 (rev 03) TV-card and I try to compile this driver:

http://www.jusst.de/hg/saa716x

I get this error:

File not found: /lib/modules//build/.config at ./scripts/make_kconfig.pl line 32

Offline

#2 2011-09-10 16:58:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Cannot compile saa716x

Please tell us how you are trying to compile it.

My guess is that you are downloading it and compiling it my hand (as opposed to using a PKGBUILD)
This needs to be compiled in the kernel tree.

This link points to a driver for the SAA7134.  It will not work for you, but perhaps you might adapted it to your needs.  This link uses mercurial to download the source, yours would use the http URL.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-09-10 17:40:08

arne
Member
Registered: 2009-09-29
Posts: 8

Re: Cannot compile saa716x

Yes, I'm trying to compile by hand. I just change to the source directory and type make. Perhaps I need to read a little more how to compile on Arch.

Offline

#4 2011-09-11 01:05:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Cannot compile saa716x

Arne,  I saw your cross post and decided to spend some time trying to help you out.  I got a way through it before I decided it is non-trivial.  As I don't have this hardware myself, my interest is waning.

If it is okay with you, I suggest you let me move this from the Newbie corner to the AUR Issues, Discussion, and PKGBUILD requests forum.  Maybe someone will help out by creating an AUR package.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-09-11 01:56:59

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: Cannot compile saa716x

I'm wrestling with this issue myself too. The current AUR packages (v4l-dvb-git and v4l-dbd) don't compile and install without errors.

@ arne. To fix that particular error, you need to edit the Makefile in the v4l folder. There are two lines which need correcting to the following:

OUTDIR ?= /lib/modules/3.0-ARCH/build
SRCDIR ?= /lib/modules/3.0-ARCH/source

The next compile error I ran into was a missing " "cx23885-cards.c" missing file "../../../staging/altera-stapl/altera.h". Solved that by only compiling for saa7146, but then it wouldn't install with "make install":

make: *** No rule to make target `media-install', needed by `install'.  Stop.

A media_build which has been modified to compile under kernel 3.0 has been posted:
http://www.tbsdtv.com/forum/viewtopic.php?f=14&t=1133

This compiled correctly (after making the changes to the Makefile as above), but still won't install (same error as above).

Will keep working on getting a solution / workaround, so that I can run my HVR-2200 on Arch / MythTV!

Last edited by sultanoswing (2011-09-11 02:00:50)


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#6 2011-09-11 02:56:21

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: Cannot compile saa716x

Well, I haven't been able to get the compile working, but the card is now functioning.

Check out this thread for my solution: https://bbs.archlinux.org/viewtopic.php?id=126229


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#7 2011-09-11 05:31:07

arne
Member
Registered: 2009-09-29
Posts: 8

Re: Cannot compile saa716x

@ ewaller:

I tried to modify the PKGBUILD from the saa7134 package but got a new error I don't know how to solve:

In file included from <command-line>:0:0:
/home/arne/saa716x-1d4e1f927992/v4l/config-compat.h:4:28: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.

@ sultanoswing:

Editing the makefile helped but got new compiling errors.

Last edited by arne (2011-09-12 07:03:07)

Offline

#8 2011-09-13 11:08:16

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: Cannot compile saa716x

I found a solution and got the compile and install done (card still not working properly though). Check out the thread I linked to above.

A further suggestion is to only compile the drivers you want, which helps avoid errors from driver compiles you don't want/need.


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#9 2011-09-14 11:30:12

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: Cannot compile saa716x

Just to update this thread.

I've posted a complete success compiling and installing the v4l-dbv-git drivers under the 3.0-ARCH kernel:
https://bbs.archlinux.org/viewtopic.php … 74#p990574

Good luck with yours!!


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

Board footer

Powered by FluxBB