Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 19/02/2007, à 00:48

Sax

Installation drivers ov511, petit pb

Bonjour, big_smile

J'essaie en vain d'installer les drivers ov511 (pour ma webcam creative go plus, lsusb et dmesg la trouve bien), version 2.30 ou 2.31.
Quand je fais le make j'ai ces messages:

Building OVCam drivers for 2.6 kernel.
    PLEASE IGNORE THE "Overriding SUBDIRS" WARNING
make -C /lib/modules/2.6.15-28-386/build SUBDIRS=/home/fabien/dl/ov511-2.30 modules
make[1]: entrant dans le répertoire « /lib/modules/2.6.15-28-386/build »
make[1]: *** Pas de règle pour fabriquer la cible « modules ». Arrêt.
make[1]: quittant le répertoire « /lib/modules/2.6.15-28-386/build »
make: *** [default] Erreur 2

Je suis sous 2.6.15-28-386...

Je sais pas vraiment quoi faire et je n'ai rien trouvé de vraiment concluant.

Merci pour votre aide.

Hors ligne

#2 Le 19/02/2007, à 00:51

scorpio810

Re : Installation drivers ov511, petit pb

http://doc.ubuntu-fr.org/ov51x?s=ov511


"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

http://qelectrotech.org/

Hors ligne

#3 Le 19/02/2007, à 01:01

Sax

Re : Installation drivers ov511, petit pb

Merci smile , j'ai zappé cette page mais apparemment j'ai fait la même chose et ça plante au moment du make.

Hors ligne

#4 Le 19/02/2007, à 01:09

scorpio810

Re : Installation drivers ov511, petit pb

as tu installé les headers correspondant a ton noyau ?

apt-get install linux-headers-`uname -r

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

http://qelectrotech.org/

Hors ligne

#5 Le 19/02/2007, à 01:12

Sax

Re : Installation drivers ov511, petit pb

oui, apparemment c'est bien le make qui foire.

le makefile, je sais pas trop, p-e y a-t-il une erreur ?

ifeq ($(shell uname -r | cut -d . -f 1-2),2.4)
#################################### OPTIONS ##################################
# Change this to /usr/include if you get header file errors
INCLUDEDIR = /lib/modules/`uname -r`/build/include

ACFILE = $(INCLUDEDIR)/linux/autoconf.h

CFLAGS = -D__KERNEL__ -DMODULE -DOUTSIDE_KERNEL -O2 -Wall -Wstrict-prototypes \
    -fomit-frame-pointer -I$(INCLUDEDIR)

# Detect modversions support
ifneq ($(strip $(shell grep 'define CONFIG_MODVERSIONS 1' $(ACFILE))),)
CFLAGS += -DMODVERSIONS -include $(INCLUDEDIR)/linux/modversions.h
endif

# Detect extra required CFLAGS
EXTRA_CFLAGS := $(shell ./get_cflags.sh)
CFLAGS += $(EXTRA_CFLAGS)

CC = gcc
LD = ld
LD_RFLAG = -r

SEN_OBJS = ovcamchip_core.o ov6x20.o ov6x30.o ov7x10.o ov7x20.o ov76be.o
MODULES = ov511.o ovfx2.o ovcamchip.o saa7111-new.o tda7313.o

# Enable OV511 Decompression
CFLAGS += -DCONFIG_OV511_DECOMP
COMP_OBJS += ov511_decomp.o

# Enable OV518 Decompression
CFLAGS += -DCONFIG_OV518_DECOMP
COMP_OBJS += ov518_decomp.o

#################################### TARGETS ##################################

# tuner.o isn't in $(MODULES) since it would conflict with the kernel's tuner.o
all: $(MODULES) tuner.o

install: all
    ./do_install.sh $(MODULES)

clean:
    rm -f *.o *.ko *.mod.* .[a-z]* core *.i

#################################### RULES ####################################

ovcamchip_core.o: ovcamchip_core.c ovcamchip.h compat.h driver_version.h
    $(CC) -c $(CFLAGS) -o ovcamchip_core.o ovcamchip_core.c

ov6x20.o: ov6x20.c ovcamchip.h compat.h
    $(CC) -c $(CFLAGS) ov6x20.c

ov6x30.o: ov6x30.c ovcamchip.h compat.h
    $(CC) -c $(CFLAGS) ov6x30.c

ov7x10.o: ov7x10.c ovcamchip.h compat.h
    $(CC) -c $(CFLAGS) ov7x10.c

ov7x20.o: ov7x20.c ovcamchip.h compat.h
    $(CC) -c $(CFLAGS) ov7x20.c

ov76be.o: ov76be.c ovcamchip.h compat.h
    $(CC) -c $(CFLAGS) ov76be.c

ovcamchip.o: $(SEN_OBJS)
    $(LD) $(LD_RFLAG) -o ovcamchip.o $(SEN_OBJS)

ov511_core.o: ov511_core.c ov511.h ovcamchip.h tuner.h audiochip.h id.h \
              compat.h driver_version.h
    $(CC) -c $(CFLAGS) -o ov511_core.o ov511_core.c

ov511.o: ov511_core.o $(COMP_OBJS)
    $(LD) $(LD_RFLAG) -o ov511.o ov511_core.o $(COMP_OBJS)

ovfx2.o: ovfx2.c ovfx2.h ovcamchip.h compat.h driver_version.h
    $(CC) -c $(CFLAGS) -o ovfx2.o ovfx2.c

ov511_decomp.o: ov511_decomp.c ov511.h compat.h
    $(CC) -c $(CFLAGS) ov511_decomp.c

ov518_decomp.o: ov518_decomp.c ov511.h compat.h
    $(CC) -c $(CFLAGS) ov518_decomp.c

saa7111-new.o: saa7111-new.c compat.h
    $(CC) -c $(CFLAGS) saa7111-new.c

tuner.o: tuner.c tuner.h audiochip.h id.h compat.h
    $(CC) -c $(CFLAGS) tuner.c

tda7313.o: tda7313.c audiochip.h id.h compat.h
    $(CC) -c $(CFLAGS) tda7313.c

endif  # End kernel version test

############################ 2.6 kernel compile ###############################
ifeq ($(shell uname -r | cut -d . -f 1-2),2.6)

ifneq ($(KERNELRELEASE),)
# We were called by kbuild

obj-m += ovcamchip.o
obj-m += ov511.o
obj-m += ovfx2.o
obj-m += saa7111-new.o
#Don't build our tuner version by default, otherwise TV cards may stop working
#obj-m += tuner.o
obj-m += tda7313.o

ovcamchip-objs := ovcamchip_core.o ov6x20.o ov6x30.o ov7x10.o ov7x20.o ov76be.o

ov511-objs := ov511_core.o ov511_decomp.o ov518_decomp.o
EXTRA_CFLAGS = -DCONFIG_OV511_DECOMP -DCONFIG_OV518_DECOMP

else  # We were called from command line

KDIR := /lib/modules/$(shell uname -r)/build
PWD  := $(shell pwd)

default:
    @echo '    Building OVCam drivers for 2.6 kernel.'
    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

install:
    ./do_install.sh *.ko

clean:
    $(MAKE) -C $(KDIR) M=$(PWD) clean

endif  # End kbuild check

endif  # End kernel version test

Dernière modification par Sax (Le 19/02/2007, à 01:18)

Hors ligne

#6 Le 19/02/2007, à 01:27

scorpio810

Re : Installation drivers ov511, petit pb

les paquets   gcc , build-essential sont installés ?


"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

http://qelectrotech.org/

Hors ligne

#7 Le 19/02/2007, à 01:38

scorpio810

Re : Installation drivers ov511, petit pb

http://forum.ubuntu-fr.org/viewtopic.php?pid=667973#p667973


"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

http://qelectrotech.org/

Hors ligne

#8 Le 19/02/2007, à 21:39

Sax

Re : Installation drivers ov511, petit pb

smile

GCC et build essential sont bien installés....

Merci pour ton aide

Je vais chercher encore un peu mais je crois que je vais en acheter une neuve, celle-ci étant une vieille que j'ai récup.

bon, en fait, les bons drivers pour ma webcam sont les W9968CF (http://www.linux-projects.org/modules/mydownloads/) MAIS j'ai toujours ce problème de make...

S'il vous plait comment on fait un make qui fonctionne?

je mets le makefile, les variables (KERNEL*) sont elles bonnes ?



#############################################################################
# Makefile for W996[87]CF JPEG USB Dual Mode Camera Chip driver for Linux   #
#                                                                           #
#  Copyright (C) 2002-2007 by Luca Risolia <luca.risolia@studio.unibo.it>   #
#                                                                           #
#  This program is free software; you can redistribute it and/or modify     #
#  it under the terms of the GNU General Public License as published by     #
#  the Free Software Foundation; either version 2 of the License, or        #
#  (at your option) any later version.                                      #
#                                                                           #
#  This program is distributed in the hope that it will be useful,          #
#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
#  GNU General Public License for more details.                             #
#                                                                           #
#  You should have received a copy of the GNU General Public License        #
#  along with this program; if not, write to the Free Software              #
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                #
#############################################################################

DRIVER_VERSION = 1.39

#############################################################################
# For Linux 2.6 users.
#############################################################################
ifneq ($(shell uname -r | cut -d. -f1,2), 2.4)

ifneq ($(KERNELRELEASE),)   # We were called by kbuild

obj-m += w9968cf.o

# Comment following lines if you don't want to build the post-processing module
obj-m += w9968cf-vpp.o
w9968cf-vpp-objs := w9968cf_vppcore.o w9968cf_decoder.o w9968cf_vppfuncs.o

else   # We were called from command line

KERNEL_VERSION = `uname -r`
KERNELDIR := /lib/modules/$(KERNEL_VERSION)/build
PWD  := $(shell pwd)
MODULE_INSTALLDIR = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb/media/

# Targets, don't change!

modules: default

modules_install: install

default:
    @echo '  Building W996[87]CF driver for OFFICIAL 2.6 kernels (http://www.kernel.org)'
    @echo '  PLEASE IGNORE THE "Overriding SUBDIRS", "CRC" AND VERSIONING WARNINGS'
    @echo '  Remember: you must have read/write access to your kernel source tree.'
    @echo '  WARNING: Due to V4L1 API obsolescence, Linux 2.6.18 is the last supported kernel'
    $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules

install:
    install -d $(MODULE_INSTALLDIR)
    install -m 0644 -c w9968cf.ko $(MODULE_INSTALLDIR)
    install -m 0644 -c w9968cf-vpp.ko $(MODULE_INSTALLDIR)
    /sbin/depmod -ae

uninstall:
    rm -f $(MODULE_INSTALLDIR)/w9968cf.ko
    rm -f $(MODULE_INSTALLDIR)/w9968cf-vpp.ko
    /sbin/depmod -aq

endif

else   # kernel version test

#############################################################################
# For Linux 2.4 users.
# Change the following lines according to your system configuration.
# It is important to configure your particular source tree ("make dep") before
# compiling this module!
#############################################################################
KERNEL_VERSION = `uname -r`

KERNEL_INCLUDEDIR = /lib/modules/$(KERNEL_VERSION)/build/include
# Try to the following line instead of the one above if headers were not found
#KERNEL_INCLUDEDIR = /usr/src/linux/include

KERNEL_ACFILE = $(KERNEL_INCLUDEDIR)/linux/autoconf.h
KERNEL_MODVERSIONSFILE = $(KERNEL_INCLUDEDIR)/linux/modversions.h
MODULE_INSTALLDIR = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb/


#############################################################################
# Don't change the following lines!
#############################################################################
# Tools
CC = gcc
LD = ld

# Setup defines
DEFINES = -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB

# Detect module versioning support
ifneq ($(strip $(shell grep 'define CONFIG_MODVERSIONS 1' $(KERNEL_ACFILE))),)
    DEFINES += -DMODVERSIONS -include $(KERNEL_MODVERSIONSFILE)
endif

# Detect SMP support
ifneq ($(strip $(shell grep 'define CONFIG_SMP 1' $(KERNEL_ACFILE))),)
    DEFINES += -D__SMP__ -DSMP
endif

# Setup compiler flags
CFLAGS  = -O2 -fomit-frame-pointer
CFLAGS += -I$(KERNEL_INCLUDEDIR)

# Setup compiler warnings
WARNINGS   = -Wall -Wstrict-prototypes

# Setup linker flags. ('-r' stands for '--relocat(e)able')
LDFLAGS    = --strip-debug -r

# Targets, don't change!
modules: default

modules_install: install

default: w9968cf.o w9968cf-vpp.o

install:
    install -d $(MODULE_INSTALLDIR)
    install -m 0644 -c w9968cf.o $(MODULE_INSTALLDIR)
    install -m 0644 -c w9968cf-vpp.o $(MODULE_INSTALLDIR)
    /sbin/depmod -ae

uninstall:
    rm -f $(MODULE_INSTALLDIR)/w9968cf.o
    rm -f $(MODULE_INSTALLDIR)/w9968cf-vpp.o
    /sbin/depmod -aq

# Rules
w9968cf.o:    w9968cf.c w9968cf.h w9968cf_externaldef.h w9968cf_decoder.h
        $(CC) $(CFLAGS) $(WARNINGS) $(DEFINES) -o w9968cf.o -c w9968cf.c

w9968cf_decoder.o:    w9968cf_decoder.c w9968cf_decoder.h
            $(CC) $(CFLAGS) $(WARNINGS) $(DEFINES) -o w9968cf_decoder.o -c w9968cf_decoder.c

w9968cf_vppfuncs.o:    w9968cf_vppfuncs.c w9968cf_vppfuncs.h
            $(CC) $(CFLAGS) $(WARNINGS) $(DEFINES) -o w9968cf_vppfuncs.o -c w9968cf_vppfuncs.c

w9968cf_vppcore.o:    w9968cf_vppcore.c w9968cf_decoder.h w9968cf_vppfuncs.h w9968cf_vpp.h
            $(CC) $(CFLAGS) $(WARNINGS) $(DEFINES) -o w9968cf_vppcore.o -c w9968cf_vppcore.c

w9968cf-vpp.o:    w9968cf_vppcore.o w9968cf_decoder.o w9968cf_vppfuncs.o
        $(LD) $(LDFLAGS) -o w9968cf-vpp.o w9968cf_vppcore.o w9968cf_decoder.o w9968cf_vppfuncs.o

endif  # End kernel version test


##############################################################################
# COMMON TARGETS
##############################################################################
clean:
    rm -rf *.o *.ko *.mod.* .[a-z]* core *.i Modules.symvers

help:
    @echo 'List of available targets. Type:'
    @echo ' "make" to build the modules'
    @echo ' "make install" to install the built modules in $(MODULE_INSTALLDIR)'
    @echo ' "make uninstall" to uninstall the installed modules'
    @echo ' "make clean" to remove all generated files in the current directory'
    @echo ' "make tar" to create and place an archive of the current directory in $(TARFILE)'
    @echo ' "make help" to print the list of available targets'

##############################################################################

TARFILE=../w9968cf-$(DRIVER_VERSION).tar.gz
DIR=../
FILE=w9968cf-$(DRIVER_VERSION)

tar:
    tar -choz --verbose -C $(DIR) --file=$(TARFILE) $(FILE)

hmm

Dernière modification par Sax (Le 19/02/2007, à 22:36)

Hors ligne

#9 Le 20/02/2007, à 22:01

Sax

Re : Installation drivers ov511, petit pb

up

svp big_smile

Hors ligne