version.h missing in linux kernel source
while trying to compile NVIDIA graphics driver from source on opensuse tumbleweed, i could'n do that because of missing version.h.
In fact this is an old issue, i had the same problem a couple of years ago. and I wonder, why this is still the case. thanks for any reply |
Example kernel 4.1.7 :
/usr/src/<linux>/include/generated/uapi/linux/version.h .... 2 lines : #define LINUX_VERSION_CODE 262407 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) - |
have you installed kernel headers?
|
Quote:
i installed: 1- kernel-devel, 2- kernel-default-devel of opensuse and there is no package called : kernel-header or the like is there any other packages to install? thanks again |
Re #4.
The Debian / Ubuntu name for 'kernel-devel' is "kernel-header". Suse : 'kernel-devel' will do. |
Quote:
could this be a suse specific issue? |
thanks again, tipping: find . -name version.h, from /usr/src/linux
i got: ./include/uapi/linux/dvb/version.h ./include/xen/interface/version.h the NVIDIA software looks nevertheless for /usr/src/linux/include/linux/version.h copying or linking one of those into the desired place leads to many other "not founds" so that i think the right version.h is not yet there. thank you in advance |
it looks like the kernel headers structure is not supported by that driver? Can you check the documentation?
|
I guess you can just make a copy of include/uapi/linux/dvb/version.h to include/linux/version.h
http://stackoverflow.com/questions/1...source-project - |
All times are GMT -5. The time now is 08:22 PM. |