Skip to content

error: ‘V4L2_FL_USE_FH_PRIO’ undeclared. while building for latest version of Raspberry Pi kernel  #36

@xor007

Description

@xor007

Hello,

While building for latest raspberry pi kernel, I got the following error:

pi@pi2 ~/libfreekinect/librekinect-master $ make 
make -C /lib/modules/4.1.8+/build M=/home/pi/libfreekinect/librekinect-master modules
make[1]: Entering directory '/usr/src/linux'
  CC [M]  /home/pi/libfreekinect/librekinect-master/gspca.o
/home/pi/libfreekinect/librekinect-master/gspca.c: In function ‘gspca_dev_probe2’:
/home/pi/libfreekinect/librekinect-master/gspca.c:2070:2: error: ‘V4L2_FL_USE_FH_PRIO’ undeclared (first use in this function)
/home/pi/libfreekinect/librekinect-master/gspca.c:2070:2: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:264: recipe for target '/home/pi/libfreekinect/librekinect-master/gspca.o' failed
make[2]: *** [/home/pi/libfreekinect/librekinect-master/gspca.o] Error 1
Makefile:1384: recipe for target '_module_/home/pi/libfreekinect/librekinect-master' failed
make[1]: *** [_module_/home/pi/libfreekinect/librekinect-master] Error 2
make[1]: Leaving directory '/usr/src/linux'
Makefile:24: recipe for target 'default' failed
make: *** [default] Error 2

If I comment out the offending line in gscpa.c it builds and inserts, but not sure yet it will work...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions