Bonsoir à tous,
en esperant que tout le monde se porte bien.
Voici un MakeFile destiné à linux :
--------------------------------------------------------------------------
KERNEL_VERSION := `uname -r`
KERNEL_DIR := /lib/modules/$(KERNEL_VERSION)/build
INSTALL_MOD_DIR := usb/media
PWD := $(shell pwd)
obj-m := uvcvideo.o
uvcvideo-objs := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o uvc_status.o uvc_isight.o
all:
@echo "-------------------------------- WARNING ---------------------------------------"
@echo " The USB Video Class driver has moved to http://linuxtv.org/."
@echo " Using the Berlios SVN repository is now deprecated."
@echo " Please check http://linux-uvc.berlios.de/ for download instructions."
@echo " If you really want to compile this historical version, run 'make uvcvideo'."
@echo "--------------------------------------------------------------------------------"
uvcvideo:
@echo "Building USB Video Class driver..."
@sh svn-version.sh > version.h 2>/dev/null
@(make -C $(KERNEL_DIR) M=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules)
install:
@echo "Installing USB Video Class driver..."
@(make -C $(KERNEL_DIR) M=$(PWD) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) modules_install)
clean:
-rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers version.h modules.order
-rm -rf .tmp_versions
--------------------------------------------------------------------------
Comme vous avez pu le remarquer ce makefile installe des drivers pour camera.
Le truc c'est que le noyau sur lequel je veux installer cette camera ne possede pas de compileur donc je passe par Cygwin pour compiler ça (arm-unknow-linux-gcc).
Or le Make file ne correspond pas à Cygwin.
J'ai fait le changement suivante :
KERNEL_DIR := /home/driver
INSTALL_MOD_DIR := /home/driver/usb/media
(Pour pouvoir les récuperer par la suite) :
seul probleme quand je lance make : OK
mais quand je lance make install il me met des erreurs.
Je n'arrive pas à comprendre c'est quoi l'erreur si quelqu'un pourra m'aidé ?
En vous remerciant d'avance
Partager