Bus 005 Device 004: ID 0c45:6270 Microdia U-CAM PC Camera NE878
and i was following the help here https://groups.google.com/group/microdi ... raft?pli=1 until it said compile and i ran away scarred

any tips on getting this web cam working?
The link is to a deb file and the error message indicates the wrong version of the deb - it is not made for your kernelphonicboom wrote:i got as far as this http://www.linux-projects.org/modules/m ... d=7&lid=54 and it said;
Error Dependency is not satisfiable: linux-image-generic
#!/bin/bash"Worked great. I wrote this script that will handle it. You can run it every time a kernel is upgraded:"
Code: Select all
sudo chmod 755 scriptname
Code: Select all
./scriptname
Did you upgrade your kernel? This works with linux mint 6 if you still have the -7 kernelalmsamim wrote:i did all these steps but can't get it work at all as i face some problems while compile
i'm using linux mint 6
Code: Select all
uname -r
2.6.27-7-genericphonicboom wrote:Did you upgrade your kernel? This works with linux mint 6 if you still have the -7 kernelalmsamim wrote:i did all these steps but can't get it work at all as i face some problems while compile
i'm using linux mint 6
if you now have the -9 kernel it will not work
type
in terminal to see what you have, if it is -7 I can help you.Code: Select all
uname -r
Code: Select all
**************************************************************************
* Building Video4Linux2 driver v1.48 for SN9C1xx PC Camera Controllers...*
* Official Linux 2.6.19 is the minimum version for this driver. *
* Read the documentation "sn9c102.txt" for more informations. *
* Type "make help" for a list of available targets. *
**************************************************************************
make -C /lib/modules/`uname -r`/build M=/home/abdullah/Desktop/sn9c1xx-1.48 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
CC [M] /home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.o
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1033: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1033: warning: its scope is only this definition or declaration, which is probably not what you want
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_show_reg’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1041: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1041: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1041: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1041: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1057: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_store_reg’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1066: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1066: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1066: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1066: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1090: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_show_val’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1099: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1099: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1099: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1099: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1122: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_store_val’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1132: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1132: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1132: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1132: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1161: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_show_i2c_reg’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1169: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1169: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1169: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1169: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1187: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_store_i2c_reg’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1196: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1196: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1196: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1196: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1220: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_show_i2c_val’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1229: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1229: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1229: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1229: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1257: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_store_i2c_val’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1267: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1267: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1267: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1267: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1302: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_store_green’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1313: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1313: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1313: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1313: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1333: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1334: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1341: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1342: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1351: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_store_blue’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1361: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1362: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1369: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_store_red’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1379: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1380: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1386: warning: ‘struct class_device’ declared inside parameter list
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_show_frame_header’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1391: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1391: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1391: warning: initialization from incompatible pointer type
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1391: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1405: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1407: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1409: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1411: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1413: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1414: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1415: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1416: error: expected ‘)’ before ‘(’ token
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_create_sysfs’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1422: error: ‘struct video_device’ has no member named ‘class_dev’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1425: error: implicit declaration of function ‘class_device_create_file’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1425: error: ‘class_device_attr_reg’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1425: error: (Each undeclared identifier is reported only once
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1425: error: for each function it appears in.)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1427: error: ‘class_device_attr_val’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1430: error: ‘class_device_attr_frame_header’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1435: error: ‘class_device_attr_i2c_reg’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1438: error: ‘class_device_attr_i2c_val’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1444: error: ‘class_device_attr_green’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1448: error: ‘class_device_attr_blue’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1451: error: ‘class_device_attr_red’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:1458: error: implicit declaration of function ‘class_device_remove_file’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_ioctl’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:3191: error: implicit declaration of function ‘v4l_print_ioctl’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: At top level:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:3207: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c: In function ‘sn9c102_usb_probe’:
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:3300: error: ‘struct video_device’ has no member named ‘owner’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:3301: error: ‘struct video_device’ has no member named ‘type’
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:3301: error: ‘VID_TYPE_CAPTURE’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:3301: error: ‘VID_TYPE_SCALES’ undeclared (first use in this function)
/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.c:3302: error: ‘struct video_device’ has no member named ‘hardware’
make[2]: *** [/home/abdullah/Desktop/sn9c1xx-1.48/sn9c102_core.o] Error 1
make[1]: *** [_module_/home/abdullah/Desktop/sn9c1xx-1.48] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2
I don't know what a -7 or -9 kernel is. My mint is updated regularly, as soon as updates are available, so I'm assuming I'd have the latest.tawan wrote:Did you upgrade your kernel? This works with linux mint 6 if you still have the -7 kernelalmsamim wrote:i did all these steps but can't get it work at all as i face some problems while compile
i'm using linux mint 6
if you now have the -9 kernel it will not work
typein terminal to see what you have, if it is -7 I can help you.Code: Select all
uname -r