← Back to team overview

sslug-teknik team mailing list archive

Kan ikke kompilere BTTV for mit Hauppauge tv-kort]

 

 
--- Begin Message ---
Hejsa, jeg håber I kan hjælpe mig med <subj>.

Jeg har hentet den nyeste version af BTTV, læst dokumentationen samt
Torben Fjerdingstads foredrag om Installation af TV kort. Ikke desto har
jeg problemer, som går på at kompilere driverne.

Det ser ud til at den første fil (videodev.c) bliver kompileret (der
dannes i hvert fald en videodev.o), men derefter melder make(filen?):
#gcc: 0: no such file or directory

Jeg har vedlagt en fil som viser hvad make foretager sig (make.log) samt
den Makefile under /driver som man skal editere i. Da jeg er ret ny på
Linux (4 dage) kan jeg ikke selv finde problemet og ville derfor sætte
pris på lidt hjælp fra en som måske selv har kompileret BTTV. Mit kort
er i øvrigt et Hauppage med en video dekoder-chip kaldet Bt848KPF og er
fra 1996.

mvh.
Nicolai Brøgger
(cd driver; make)
make[1]: Entering directory `/tmp/bttv/driver'
DIR=`pwd`; (cd /usr/src/linux-2.2.1/linux; make SUBDIRS=$DIR modules)
make[2]: Entering directory `/usr/src/linux-2.2.1/linux'
make -C  /tmp/bttv/driver CFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE" MAKING_MODULES=1 modules
make[3]: Entering directory `/tmp/bttv/driver'
gcc -D__KERNEL__ -I/usr/src/linux-2.2.1/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE -DTUNER_DEFAULT= -DCARD_DEFAULT=2 -DBTTV_MAJOR=81   0   -DEXPORT_SYMTAB -c videodev.c
make[3]: Leaving directory `/tmp/bttv/driver'
make[2]: Leaving directory `/usr/src/linux-2.2.1/linux'
make[1]: Leaving directory `/tmp/bttv/driver'
#################################################
# config

# 0: Temic PAL tuner
# 1: Philips PAL_I tuner
# 2: Philips NTSC tuner
# 3: Philips SECAM tuner
# 4: no tuner
# 5: Philips PAL tuner
# 6: Temic NTSC tuner
# 7: Temic PAL tuner
# TUNER=0
# Do not select the tuner type here!
# Edit the type argument for the tuner module in "update"!

# Module arguments are documented in MODULES

# 0:  Auto-Detect
# 1:  Miro
# 2:  Hauppauge (bt848)
# 3:  STB
# 4:  Intel
# 5:  Diamond
# 6:  AVerMedia
# 7:  MATRIX Vision MV-Delta
# 8:  FlyVideo
# 9:  TurboTV
# 10: Hauppauge (bt878)
# 11: Miro Pro
# 12: TV-Boostar
# 13: Hauppauge WinCam
# 14: MAXI
# 15: Terratec TerraTV+
# 16: Aimslab VHX
# 17: PXC200
# 18: AVermedia98
# 19: FlyVideo98 (newer FlyVideo cards)
CARD=2
# This can be set using module parameters too.


# uncomment this if you have a Hauppauge with MSP34xx sound decoder!
#MSP=-DRESET_MSP_HAUPPAUGE
# This is gone.  If you have i2c I/O errors or autodetect goes wrong,
# load the module with "card=2"


# change this to 0 if you have a plain Bt848 and NOT a Bt848A or higher 
# 0 == don't use PLL (plain Bt848, revision 17) 

# use 1 or 2 if you have a Bt848A, Bt849, Bt878, Bt879
# 1 == 28 MHz crystal installed
# 2 == 34 MHz crystal installed (-DUSE_PLL=2)
PLL=0
# This can be set using module parameters too.


# Official major device number is 81
# Older kernels might have problems with such high numbers.
# But I rather recommend updating to kernel 2.0.31 or higher.
BTTV_MAJOR=81

# currently running kernel
CURRENT=$(shell uname -r)

# where the kernel sources are located
#KERNEL_LOCATION=/usr/src/kernel/2.0.35
#KERNEL_LOCATION=/usr/src/kernel/$(CURRENT)
#KERNEL_LOCATION=/usr/src/kernel/vger
KERNEL_LOCATION=/usr/src/linux-2.2.1/linux


#################################################
# some magic for using linux kernel settings
# when compiling module(s)

M_OBJS       = bttv.o msp3400.o tuner.o #i2c_chardev.o
MX_OBJS      = videodev.o i2c.o
EXTRA_CFLAGS = -DTUNER_DEFAULT=$(TUNER) -DCARD_DEFAULT=$(CARD) \
	-DBTTV_MAJOR=$(BTTV_MAJOR) $(INTERFACE) $(MSP) $(PLL) #-DVIDEODAT

here:
	DIR=`pwd`; (cd $(KERNEL_LOCATION); make SUBDIRS=$$DIR modules)

install:
	su -c "cp -v $(M_OBJS) $(MX_OBJS) /lib/modules/$(CURRENT)/misc"

clean:
	-rm -f $(M_OBJS) $(MX_OBJS) .*.o.flags *~

include $(KERNEL_LOCATION)/Rules.make


--- End Message ---