Help - Search - Members - Calendar
Full Version: missing header files
Linuxhelp > Support > Programming in Linux
so first of all I have kubuntu.I'm trying to compile a driver code for a sample mouse and keyboard, and the code refers to the two following header files:

#include <linux/config.h>
#include <linux/module.h>

and the rules.make file has the following rule:

KERNELDIR = /usr/src/linux-headers-
# The headers are taken from the kernel

and the make files has

install -d $(INSTALLDIR)
install -c usbsample.o $(INSTALLDIR)

when i run the make file in the command prompt, i get :
error :linux/config.h: No such file or directory
error :linux/module.h: No such file or directory

(you can get the whole thing from where the usb folder has the c code with the include statements talked about, and the rules.make can be found at the root folder)

thank you very much for your help.
hoping to hear from you all soon,

ps: if u're going to ask me to compile my kernel, would u please show me how! i'm still a newbie! thanks again
This should install the files you need to compile your drivers.
sudo aptitude install build-essential
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.