Debian does not install what's needed by default, so the compiler and header packages must be added.
This will install build tools and the kernel headers for your currently running kernel. Open a terminal and as root or with sudo, run
Code: Select all
apt-get install module-assistant
m-a prepare
Make sure the path to the source folder has no spaces. Building in a folder called "My Build Projects" will cause a error, for example.
Make sure to read any README or INSTALL instructions that come with the source.
The general rule is to build the driver as the regular user, then install it as root or with sudo. Example:
Code: Select all
make
sudo make install