MulletRobZ Posted January 25, 2004 Share Posted January 25, 2004 (edited) Greetigns. This time, I'm trying to get my QuickCam Pro USB to work in Slackware 9.0. Unfortunately, the kernel sources, which are supposed to be in /usr/src/linux/include are in /usr/include. Because of this weird setup, I can't use the make option from the driver downloaded here: http://nw802.sourceforge.net . How do I set up make so it reads /usr/include for the kernel modules and not the default without symlinking the directories? Edit: Just had to change a couple of paths in MakeFile, but here is what I get when I type make after making those changes: gcc -O3 -D__KERNEL__ -DMODULE -Wall -DMODVERSIONS -funroll-loops -frerun-cse-after-loop -funroll-all-loops -fomit-frame-pointer -nostdinc -I /usr/include -I `dirname \`gcc -print-libgcc-file-name\``/include/ -include /usr/include/linux/modversions.h -c -o usbvideo.o usbvideo.c gcc -O3 -D__KERNEL__ -DMODULE -Wall -DMODVERSIONS -funroll-loops -frerun-cse-after-loop -funroll-all-loops -fomit-frame-pointer -nostdinc -I /usr/include -I `dirname \`gcc -print-libgcc-file-name\``/include/ -include /usr/include/linux/modversions.h -c -o nw8xx_jpgl.o nw8xx_jpgl.c nw8xx_jpgl.c: In function `jpgl_processFrame': nw8xx_jpgl.c:468: warning: too many arguments for format gcc -O3 -D__KERNEL__ -DMODULE -Wall -DMODVERSIONS -funroll-loops -frerun-cse-after-loop -funroll-all-loops -fomit-frame-pointer -nostdinc -I /usr/include -I `dirname \`gcc -print-libgcc-file-name\``/include/ -include /usr/include/linux/modversions.h -c -o nw802_core.o nw802.c nw802.c: In function `nw8xx_procfs_write': nw802.c:684: warning: unsigned int format, different type arg (arg 3) nw802.c:684: warning: unsigned int format, different type arg (arg 4) nw802.c:684: warning: unsigned int format, different type arg (arg 3) nw802.c:684: warning: unsigned int format, different type arg (arg 4) ld -r -o nw802.o nw802_core.o nw8xx_jpgl.o gcc -O3 -D__KERNEL__ -DMODULE -Wall -DMODVERSIONS -funroll-loops -frerun-cse-after-loop -funroll-all-loops -fomit-frame-pointer `pkg-config gtk+-2.0 --cflags --libs` -o nw8xx_regedit nw8xx_regedit.c nw8xx_regedit.c:1: parse error before "NW802_MODEL" In file included from /usr/include/bits/types.h:29, from /usr/include/sys/types.h:30, from nw8xx_regedit.c:4: /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/include/stddef.h:213: syntax error before "typedef" nw8xx_regedit.c: In function `readReg': nw8xx_regedit.c:67: warning: implicit declaration of function `perror' nw8xx_regedit.c:72: warning: implicit declaration of function `snprintf' nw8xx_regedit.c:73: warning: implicit declaration of function `write' nw8xx_regedit.c:74: warning: implicit declaration of function `read' nw8xx_regedit.c:76: warning: implicit declaration of function `sscanf' nw8xx_regedit.c:79: warning: implicit declaration of function `close' nw8xx_regedit.c: In function `create_gui': nw8xx_regedit.c:357: warning: passing arg 4 of `g_signal_connect_data' makes pointer from integer without a cast make: *** [nw8xx_regedit] Error 1 I checked the lines associated to this, but I would like to know what would be causing these other problems. Or do I have to type something after "define NW802_MODEL" in nw8xx-regedit.c and if so, what? The vendor ID is 0x46d and the product ID is 0xd001. Edited January 25, 2004 by Webgraph Link to comment Share on other sites More sharing options...
MulletRobZ Posted January 25, 2004 Author Share Posted January 25, 2004 Would somebody be able to post their nw8xx_regedit.c and nw802.c files for a QuickCam Pro USB, please? Link to comment Share on other sites More sharing options...
Dessimat0r Posted January 25, 2004 Share Posted January 25, 2004 Download source, extract kernel source to /usr/src, directory should now be something like /usr/src/linux-2.5.1. Now, ln -s /usr/src/linux-2.5.1 /usr/src/linux, go into /usr/src/linux, compile as normal. Link to comment Share on other sites More sharing options...
MulletRobZ Posted January 26, 2004 Author Share Posted January 26, 2004 I was able to modify the Makefile so when I type "make", it uses the files in /usr/include/linux, so that's not the problem. It's concerning the two files, nw8xx_regedit.c and nw802.c. Have you configured such a camera before? It's that in the FAQ, I was supposed to modify the first file before I can type make, but something in it is not compiling correctly. Link to comment Share on other sites More sharing options...
Recommended Posts