Nearly installed web cam

Hello all,

Webcams are my big problem, thats the area i know almoast nothing ( as if am an expert on linux :slight_smile: ).
Heres my problem

First, I have a tv card, installed and ok working, second I have a MSI StarCam clip.
The two dont like each other. When I plug in the cam they fight an the cam wins showing a strange picture on KdeTV app. So I dont plug it in at boot to watch TV.
How to make my Realteck tv card default to /dev/video0 so that wont hapen?

Second, the webcam has a custom driver here MSI StarCam 370i and MSI StarCam Clip linux driver usb 0c45 60c0 witch says it works form my webcam ( same ID as it shows ). When I start to insall it is stops like this

/home/slk/bin/msicam # ./gspca_build 

 REMOVE the old module if present
ERROR: Module msicam does not exist in /proc/modules

 CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
        .gspca.o.cmd .gspca* *.o *.ko *.mod.* core *.i \
        *.symvers *.err                                 

 COMPILE gspca Please Wait ....!!

 INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/msicam.ko
install -c -m 0644 msicam.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `msicam.ko': No such file or directory                   
make: *** [install] Error 1                                                   

 LOAD gspca in memory 
FATAL: Module msicam not found.

 PRINT COMPILATION MESSAGES if ERRORS look kgspca.err 
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/slk/bin/msicam CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.27.7-9-obj/x86_64/default'      
make -C ../../../linux-2.6.27.7-9 O=/usr/src/linux-2.6.27.7-9-obj/x86_64/default/. modules
  CC [M]  /home/slk/bin/msicam/gspca_core.o                                               
/home/slk/bin/msicam/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
In file included from /home/slk/bin/msicam/gspca_core.c:256:                              
/home/slk/bin/msicam/Sonix/proc.h: In function ‘sn9cxxx_proc_init’:                       
/home/slk/bin/msicam/Sonix/proc.h:52: error: ‘proc_root’ undeclared (first use in this function)
/home/slk/bin/msicam/Sonix/proc.h:52: error: (Each undeclared identifier is reported only once  
/home/slk/bin/msicam/Sonix/proc.h:52: error: for each function it appears in.)                  
/home/slk/bin/msicam/Sonix/proc.h: In function ‘sn9cxxx_proc_unload’:                           
/home/slk/bin/msicam/Sonix/proc.h:76: error: ‘proc_root’ undeclared (first use in this function)
/home/slk/bin/msicam/Sonix/proc.h: In function ‘sn9cxxx_proc_write’:                            
/home/slk/bin/msicam/Sonix/proc.h:116: warning: cast to pointer from integer of different size  
/home/slk/bin/msicam/Sonix/proc.h:116: warning: comparison between pointer and integer          
In file included from /home/slk/bin/msicam/Sonix/sonix.h:79,                                    
                 from /home/slk/bin/msicam/gspca_core.c:257:                                    
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_stopN’:                              
/home/slk/bin/msicam/Sonix/sn9cxxx.h:531: warning: unused variable ‘regF1’                      
/home/slk/bin/msicam/Sonix/sn9cxxx.h:529: warning: unused variable ‘stophv7131’                 
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_start’:                              
/home/slk/bin/msicam/Sonix/sn9cxxx.h:570: warning: unused variable ‘err’                        
/home/slk/bin/msicam/Sonix/sn9cxxx.h:563: warning: unused variable ‘regD4’                      
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_getexposure’:                        
/home/slk/bin/msicam/Sonix/sn9cxxx.h:683: warning: unused variable ‘lexpo’                      
/home/slk/bin/msicam/Sonix/sn9cxxx.h:683: warning: unused variable ‘mexpo’                      
/home/slk/bin/msicam/Sonix/sn9cxxx.h:683: warning: unused variable ‘hexpo’                      
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_setexposure’:                        
/home/slk/bin/msicam/Sonix/sn9cxxx.h:706: warning: unused variable ‘expotimes’                  
/home/slk/bin/msicam/Sonix/sn9cxxx.h:705: warning: unused variable ‘data’                       
/home/slk/bin/msicam/Sonix/sn9cxxx.h:704: warning: unused variable ‘gainMo’                     
/home/slk/bin/msicam/Sonix/sn9cxxx.h:703: warning: unused variable ‘expoMo10’                   
/home/slk/bin/msicam/Sonix/sn9cxxx.h:702: warning: unused variable ‘expoMof’                    
/home/slk/bin/msicam/Sonix/sn9cxxx.h:700: warning: unused variable ‘sensorgo’                   
/home/slk/bin/msicam/Sonix/sn9cxxx.h:699: warning: unused variable ‘doit’                       
/home/slk/bin/msicam/Sonix/sn9cxxx.h:698: warning: unused variable ‘Expodoit’                   
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_setbrightness’:                      
/home/slk/bin/msicam/Sonix/sn9cxxx.h:726: warning: unused variable ‘expotimesret’               
/home/slk/bin/msicam/Sonix/sn9cxxx.h:726: warning: unused variable ‘expo’                       
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_setcolors’:
/home/slk/bin/msicam/Sonix/sn9cxxx.h:839: warning: unused variable ‘blue’
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_setAutobright’:
/home/slk/bin/msicam/Sonix/sn9cxxx.h:856: warning: unused variable ‘expotimesret’
/home/slk/bin/msicam/Sonix/sn9cxxx.h: In function ‘sn9cxxx_setgain’:
/home/slk/bin/msicam/Sonix/sn9cxxx.h:930: warning: unused variable ‘g3’
/home/slk/bin/msicam/Sonix/sn9cxxx.h:929: warning: unused variable ‘g2’
/home/slk/bin/msicam/Sonix/sn9cxxx.h:928: warning: unused variable ‘g1’
/home/slk/bin/msicam/Sonix/sn9cxxx.h:927: warning: unused variable ‘sensorgo’
/home/slk/bin/msicam/Sonix/sn9cxxx.h:926: warning: unused variable ‘doit’
/home/slk/bin/msicam/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/slk/bin/msicam/gspca_core.c:1820: error: implicit declaration of function ‘video_usercopy’
/home/slk/bin/msicam/gspca_core.c: At top level:
/home/slk/bin/msicam/gspca_core.c:1961: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function)
/home/slk/bin/msicam/gspca_core.c:1966: error: unknown field ‘owner’ specified in initializer
/home/slk/bin/msicam/gspca_core.c:1966: warning: initialization from incompatible pointer type
/home/slk/bin/msicam/gspca_core.c:1968: error: unknown field ‘type’ specified in initializer
/home/slk/bin/msicam/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/slk/bin/msicam/gspca_core.c:2126: error: implicit declaration of function ‘video_device_create_file’
/home/slk/bin/msicam/gspca_core.c:2137: error: implicit declaration of function ‘video_device_remove_file’
/home/slk/bin/msicam/gspca_core.c: In function ‘spcaDetectCamera’:
/home/slk/bin/msicam/gspca_core.c:2178: warning: unused variable ‘fw’
/home/slk/bin/msicam/gspca_core.c: In function ‘spca5xx_probe’:
/home/slk/bin/msicam/gspca_core.c:2263: error: incompatible types in assignment
make[4]: *** [/home/slk/bin/msicam/gspca_core.o] Error 1
make[3]: *** [_module_/home/slk/bin/msicam] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27.7-9-obj/x86_64/default'
make: *** [default] Error 2

The minute I plug it in phonon finds it and it shows in kmix

I dont know what this code is and cant find gspcagui directory like it says in the readme

About 6 months ( yes I nave this problem for a year now :’( ) i found some rpm thats in Kubuntu spcxx1 (thats not right) witch worked but i couldnt configure sound.

Any toughts on this?

If you boot with it plugged in, it becomes /dev/video0

The tv tuner becomes /dev/video1

They are not fighting that the order they are recognised.

If it is plugged in but you want to watch tv you only need to tell the tv app to use /dev/video1

Ok, but how ? I use Kdetv

Thanks for the quick answer