OpenWrt Forum Archive

Topic: Compile of qc-usb failed

The content of this topic has been archived on 10 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
I try to compile qc-usb driver for my Logitech Quickcam Express webcam without success.
I use OpenWRT Kamikaze (from SVN) to compile it as an out of tree driver.
It fails with:
include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:17,
                  from include/linux/smp.h:18,
                  from include/linux/sched.h:63,
                  from include/linux/mm.h:4,
                  from include/linux/poll.h:11,
                  from include/linux/videodev2.h:18,
                  from include/linux/videodev.h:8,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/quickcam.h:95,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/qc-driver.c:47:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a
function)
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not
in a function)
In file included from include/linux/smp.h:18,
                  from include/linux/sched.h:63,
                  from include/linux/mm.h:4,
                  from include/linux/poll.h:11,
                  from include/linux/videodev2.h:18,
                  from include/linux/videodev.h:8,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/quickcam.h:95,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/qc-driver.c:47:
include/asm/smp.h:76:26: mach_apicdef.h: No such file or directory
In file included from include/linux/sched.h:69,
                  from include/linux/mm.h:4,
                  from include/linux/poll.h:11,
                  from include/linux/videodev2.h:18,
                  from include/linux/videodev.h:8,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/quickcam.h:95,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/qc-driver.c:47:
In file included from include/linux/irq.h:21,
                  from include/asm/hardirq.h:5,
                  from include/linux/hardirq.h:6,
                  from include/linux/interrupt.h:10,
                  from include/linux/usb.h:15,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/quickcam.h:99,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/qc-driver.c:47:
include/asm/irq.h:15:25: irq_vectors.h: No such file or directory
In file included from include/asm/hardirq.h:5,
                  from include/linux/hardirq.h:6,
                  from include/linux/interrupt.h:10,
                  from include/linux/usb.h:15,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/quickcam.h:99,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/qc-driver.c:47:
include/linux/irq.h:84: error: `NR_IRQS' undeclared here (not in a function)
In file included from include/linux/irq.h:93,
                  from include/asm/hardirq.h:5,
                  from include/linux/hardirq.h:6,
                  from include/linux/interrupt.h:10,
                  from include/linux/usb.h:15,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/quickcam.h:99,
                  from
/opt/openwrt/trunk/build_mipsel/linux-2.6-brcm/qc-usb-0.6.5/qc-driver.c:47:
include/asm/hw_irq.h:29: error: `NR_IRQ_VECTORS' undeclared here (not in
a function)
In file included from include/asm/hardirq.h:5,
                  from include/linux/hardirq.h:6,

qc-usb can be found at qc-usb http://qce-ga.sourceforge.net/
Thanks for help.
-jec

Almost done...

I'll create a ticket with a patch if I cleaned it up a bit...

Added ticket #1193 with patches. The second patch you only need if you're are compiling for x86-2.6.

I've not tested the module on the router...

Thanks a lot. Will try ASAP.
Have you added it to SVN?

I've no write access to the SVN repository. The ticket is there and the OpenWrt package maintainers will add it to SVN repository soon.

Compile and testing of qc-usb webcam successful under OpenWRT with my ASUS WL-500g Deluxe.
Thanks a lot!

The discussion might have continued from here.