Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#20 linux/autoconf.h not found

open
nobody
5
2013-12-24
2013-12-24
TuniLame
No

Discussion

  • TuniLame
    TuniLame
    2013-12-24

    Problem:

    I have an error compiling the qc-usb-0.6.6 on my raspberry pi (raspbian; linux 3.6.11+): it says "fatal error: linux/autoconf.h: file not found" for every time there is an include of that file.

    After a Google search, I found that it was because the file autoconf.h is located under generated/autoconf.h.

    Solution:

    I replaced all the occurrences of linux/autoconf.h on qc-driver.c, quickcam.h etc... by:

    #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) 
    #include <linux/autoconf.h> 
    #else 
    #include <generated/autoconf.h> 
    #endif
    

    Same thing for videodev.h

    Source: http://www.answeredubuntu.com/65073/missing_linux_autoconf_h