Results 1 to 4 of 4

Thread: kernel source's version.h

  1. #1

    Default kernel source's version.h

    On a v11.2 box, I'm installing a development app, Nvidia's CUDA driver, and due to its required kernel sources and headers and devel packages, well, I went ahead installed every single one available using zypper.

    Still this app specifically looks for the version.h file in /usr/src/linux/include/linux, which is a shame, because I seems to have all the header files inside there, except that one.

    I know that because I have a v11.3 as well and that file is in there.

    I've been googling this, but am left wondering why that one file might actually be missing. I don't know if I should be asking a question like that, as in why? But I thought I'd try.

  2. #2
    Join Date
    Sep 2008

    Default Re: kernel source's version.h

    If you are building a module, it should not be looking fro version.h in /usr/src/linux/include/linux or /usr/include/linux directory.
    It should be taken from /lib/modules/`uname -r`/build/include/linux/version.h
    So, when compiling, you should use the following switch:
    -I/lib/modules/`uname -r`/build/include
    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  3. #3

    Default Re: kernel source's version.h

    Great answer syampillai, that cleared it up for me. Many thanks.

  4. #4

    Default Re: kernel source's version.h

    Hey there,

    If you are interested, you might find the OpenSuse CUDA guide I wrote helpful, it is mentioned in this thread:
    NVIDIA CUDA and openSUSE 11.3

    I recently updated it for the newer CUDA SDK and OpenSuse 11.3 64-bit


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts