Hi,
I am using the SPC9000NC and modified it to long exposure mode. I was
following the SC mod as well as the M. Meijer / P Baitz improvements
(http://www.freewebtown.com/baitzobservatory/library/lxmod.html and
links therein) to use only the USB cable with it ad not an additional
RS232. Anyways in order to do this modification it is required to do
little changes in the latest snapshot.
in pwc-ioctl.h the typdef _u16 .... line has to be commented out and in
pwc-if.c the type_id 720 has to be changed to 740 on line 1530 for the
SPC900NC.
I am using Mandriva 2008. With this distribution pwc 10.0.10 came with.
I used the software manager to download dkms-pwc-10.0.12 .
I saw that under /usr/src/linux-2.6.22.18-desktop-1mdv still the old
10.0.10 version is used. As I installed the 10.0.12 using the software
manager, I am not sure now which one of the two is actually in use. The
software manager doe snot see the 10.0.10 at all .... seems it is built
in in the kernel?
The new was found at /usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/ . So I
edited the two files in question (pwc-ioctl.h and pwc-if.c) in the new
pwc driver folder and
wanted to recompile (make, make install and wanted to copy pwc.ko from
usb modules folder into ./pwc - subdirectory, as suggested in above
mentioned webpage ). First linux/config.h was not found, as I found
online, I just had to commented them out in pwc.h and
pwc-uncompressed.c. Still I get a lot of error messages (see below). I
looked around but could not find any helpful advice.
Hopefully there is an easy solution. Thanks a lot
Thomas
errors:
"
make -C /lib/modules/2.6.22.18-desktop-1mdv/source
SUBDIRS=/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0 modules
make[1]: Entering directory `/usr/src/linux-2.6.22.18-desktop-1mdv'
CC [M] /usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.o
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:166: error: variable
‘pwc_template’ has initializer but incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:167: error: unknown field
‘owner’ specified in initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:167: warning: excess
elements in struct initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:167: warning: (near
initialization for ‘pwc_template’)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:168: error: unknown field
‘name’ specified in initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:168: warning: excess
elements in struct initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:168: warning: (near
initialization for ‘pwc_template’)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:169: error: unknown field
‘type’ specified in initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:169: warning: excess
elements in struct initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:169: warning: (near
initialization for ‘pwc_template’)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:170: error: unknown field
‘hardware’ specified in initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:170: warning: excess
elements in struct initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:170: warning: (near
initialization for ‘pwc_template’)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:171: error: unknown field
‘release’ specified in initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:171: error:
‘video_device_release’ undeclared here (not in a function)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:171: warning: excess
elements in struct initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:171: warning: (near
initialization for ‘pwc_template’)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:172: error: unknown field
‘fops’ specified in initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:172: warning: excess
elements in struct initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:172: warning: (near
initialization for ‘pwc_template’)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:173: error: unknown field
‘minor’ specified in initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:173: warning: excess
elements in struct initializer
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:173: warning: (near
initialization for ‘pwc_template’)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function ‘pwc_isoc_init’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:921: warning: assignment
from incompatible pointer type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function ‘cd_to_pwc’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1019: warning: implicit
declaration of function ‘to_video_device’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1019: warning:
initialization makes pointer from integer without a cast
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1020: warning: implicit
declaration of function ‘video_get_drvdata’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1020: warning: return makes
pointer from integer without a cast
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function
‘pwc_create_sysfs_files’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1062: warning:
initialization makes pointer from integer without a cast
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1064: warning: implicit
declaration of function ‘video_device_create_file’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function
‘pwc_remove_sysfs_files’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1070: warning:
initialization makes pointer from integer without a cast
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1072: warning: implicit
declaration of function ‘video_device_remove_file’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function ‘pwc_video_open’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1112: warning: implicit
declaration of function ‘video_devdata’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1112: warning:
initialization makes pointer from integer without a cast
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1117: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function
‘pwc_video_close’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1231: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function ‘pwc_video_read’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1292: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function ‘pwc_video_poll’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1359: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function
‘pwc_video_ioctl’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1375: warning: implicit
declaration of function ‘video_usercopy’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function ‘pwc_video_mmap’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1388: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function ‘usb_pwc_probe’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1722: warning: implicit
declaration of function ‘video_device_alloc’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1722: warning: assignment
makes pointer from integer without a cast
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1729: error: invalid
application of ‘sizeof’ to incomplete type ‘struct video_device’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1729: error: invalid
application of ‘sizeof’ to incomplete type ‘struct video_device’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1729: error: invalid
application of ‘sizeof’ to incomplete type ‘struct video_device’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1730: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1731: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1732: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1733: warning: implicit
declaration of function ‘video_set_drvdata’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1756: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1757: warning: implicit
declaration of function ‘video_register_device’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1757: error:
‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1757: error: (Each
undeclared identifier is reported only once
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1757: error: for each
function it appears in.)
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1760: warning: implicit
declaration of function ‘video_device_release’
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1765: error: dereferencing
pointer to incomplete type
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c: In function
‘usb_pwc_disconnect’:
/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.c:1819: warning: implicit
declaration of function ‘video_unregister_device’
make[2]: *** [/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0/pwc-if.o] Error 1
make[1]: *** [_module_/usr/src/pwc-10.0.12-0.rc1.3mdv2008.0] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22.18-desktop-1mdv'
make: *** [all] Error 2
"
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|