LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   unable to build gspca from Alien Bob Slackbuilds package (http://www.linuxquestions.org/questions/slackware-14/unable-to-build-gspca-from-alien-bob-slackbuilds-package-744469/)

adityavpratap 08-02-2009 03:22 AM

unable to build gspca from Alien Bob Slackbuilds package
 
Hi,
I am trying to build gspca, to get video running in Kopete on my Slackware install (kernel 2.6.30). As instructed at Alien Bob's site, I did the following

Quote:

lftp -c "open http://www.slackware.com/~alien/slackbuilds/gspcav1/; mirror build"

Then -

Quote:

cd build/
sh gscav1.Slackbuild
as root.

Here is the output of the last command -
Quote:

++
|| gspcav1-20071224
++
Extracting the source archive(s) for gspcav1...
gspcav1-20071224/
gspcav1-20071224/decoder/
gspcav1-20071224/decoder/gspcadecoder.c
gspcav1-20071224/decoder/gspcadecoder.h
gspcav1-20071224/decoder/gspcadecoder-OSX.c
gspcav1-20071224/decoder/gspcadecoder-OSX.h
gspcav1-20071224/Makefile
gspcav1-20071224/Vimicro/
gspcav1-20071224/Vimicro/vc032x_sensor.h
gspcav1-20071224/Vimicro/zc3xx.h
gspcav1-20071224/Vimicro/cs2102.h
gspcav1-20071224/Vimicro/vc032x.h
gspcav1-20071224/Vimicro/pas106b.h
gspcav1-20071224/Vimicro/icm105a.h
gspcav1-20071224/Vimicro/hv7131b.h
gspcav1-20071224/Vimicro/hv7131c.h
gspcav1-20071224/Vimicro/pb0330.h
gspcav1-20071224/Vimicro/ov7630c.h
gspcav1-20071224/Vimicro/mc501cb.h
gspcav1-20071224/Vimicro/tas5130c_vf0250.h
gspcav1-20071224/Vimicro/ov7620.h
gspcav1-20071224/Vimicro/tas5130c.h
gspcav1-20071224/Vimicro/hdcs2020.h
gspcav1-20071224/Etoms/
gspcav1-20071224/Etoms/et61xx51.h
gspcav1-20071224/Sonix/
gspcav1-20071224/Sonix/sn9cxxx.h
gspcav1-20071224/Sonix/sonix.h
gspcav1-20071224/utils/
gspcav1-20071224/utils/spcagamma.h
gspcav1-20071224/utils/spcausb.h
gspcav1-20071224/utils/spcaCompat.h
gspcav1-20071224/Conexant/
gspcav1-20071224/Conexant/cx11646.h
gspcav1-20071224/Conexant/cxlib.h
gspcav1-20071224/Pixart/
gspcav1-20071224/Pixart/pac207-OSX.h
gspcav1-20071224/Pixart/pac7311.h
gspcav1-20071224/Pixart/pac207.h
gspcav1-20071224/changelog
gspcav1-20071224/license
gspcav1-20071224/gspca_core.c
gspcav1-20071224/Transvision/
gspcav1-20071224/Transvision/tv8532.h
gspcav1-20071224/Makefile.kld
gspcav1-20071224/gspca.h
gspcav1-20071224/Sunplus/
gspcav1-20071224/Sunplus/spca501.dat
gspcav1-20071224/Sunplus/spca505.dat
gspcav1-20071224/Sunplus/spca508.dat
gspcav1-20071224/Sunplus/spca561-OSX.h
gspcav1-20071224/Sunplus/spca506.h
gspcav1-20071224/Sunplus/spca561.h
gspcav1-20071224/Sunplus/spca501_init.h
gspcav1-20071224/Sunplus/spca508_init-OSX.h
gspcav1-20071224/Sunplus/spca508_init.h
gspcav1-20071224/Sunplus/spca501_init-OSX.h
gspcav1-20071224/Sunplus/spca505_init.h
gspcav1-20071224/Sunplus-jpeg/
gspcav1-20071224/Sunplus-jpeg/spca500.dat
gspcav1-20071224/Sunplus-jpeg/jpeg_qtables.h
gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h
gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.dat
gspcav1-20071224/Sunplus-jpeg/spca500_init.h
gspcav1-20071224/gspca_build
gspcav1-20071224/READ_AND_INSTALL
gspcav1-20071224/Mars-Semi/
gspcav1-20071224/Mars-Semi/mr97311.h
gspcav1-20071224/cutlog.py
gspcav1.SlackBuild: line 164: [: 30-smp: integer expression expected
patching file Makefile
Building ...
make -C /lib/modules/2.6.30-smp/build SUBDIRS=/tmp/build/tmp-gspcav1/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC [M] /tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.o
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
In file included from /tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:845:
/tmp/build/tmp-gspcav1/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/tmp/build/tmp-gspcav1/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c: At top level:
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c: In function ‘gspca_attach_bridge’:
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:2802: error: implicit declaration of function ‘info’
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/tmp/build/tmp-gspcav1/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/tmp/build/tmp-gspcav1/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [default] Error 2
install: cannot stat `gspca.ko': No such file or directory
gspcav1.SlackBuild FAILED at line 183!

Where am I going wrong?

Eagerly awaiting your response,

Bruce Hill 08-02-2009 03:55 AM

It looks as if you left some gspca out of your kernel.

Alien Bob 08-02-2009 03:59 PM

The gspcav1 driver written by Michel Xhaard is no longer maintained and does not compile on 2.6.29 or newer kernels. Nobody cared to write a patch because the gspca driver is now part of the kernel.
If your particular webcam is not supported by the gspca driver in the 2.6.30 kernel then you are out of luck.

Eric

adityavpratap 08-03-2009 09:05 AM

The webcam works fine on Skype and Cheese. It is only with Kopete, that I am having problems. I heard the Skype is about close down, so I was looking for alternatives.

Alien Bob 08-03-2009 01:31 PM

If it works in Skype then there is no driver issue - you have proven that your Slackware supports that webcam. This is an application issue, with Kopete. You could possibly have selected the wrong type of video4linux device or something like that.

Eric

adityavpratap 08-04-2009 12:01 AM

Ok!


All times are GMT -5. The time now is 12:41 AM.