Kvalme / uvc

Linux kernel UVC for Quanta Computer, Inc. ACER HD User Facing
3 stars 3 forks source link

again gcc-error #4

Open judgeace opened 1 month ago

judgeace commented 1 month ago

hi kvalme.

i got the cam working, but after an recent update it does not work. it says that gcc is the wrong version, but for me it looks like the same version.

here is the error

make -C /lib/modules/6.5.0-28-generic/build M=/home/cornelia/uvc modules make[1]: Verzeichnis „/usr/src/linux-headers-6.5.0-28-generic“ wird betreten warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 CC [M] /home/cornelia/uvc/uvc_driver.o /home/cornelia/uvc/uvc_driver.c:2462:11: error: request for member ‘bInterfaceClass’ in something not a structure or union 2462 | .bInterfaceClass = USB_CLASS_VIDEO, | ^ make[3]: [scripts/Makefile.build:251: /home/cornelia/uvc/uvc_driver.o] Fehler 1 make[2]: [/usr/src/linux-headers-6.5.0-28-generic/Makefile:2039: /home/cornelia/uvc] Fehler 2 make[1]: [Makefile:234: __sub-make] Fehler 2 make[1]: Verzeichnis „/usr/src/linux-headers-6.5.0-28-generic“ wird verlassen make: [Makefile:10: all] Fehler 2

how can i installl the right gcc?

can you please help me?

andreas

judgeace commented 1 month ago

sorry, made a mistake in the uvc_driver file.

after a new try it worked again.

issue closed