0

I have a Mightex camera and have been given the source code for the drivers by the company. They have been very helpful so far but was hoping to ask here and understand what's going on. This is the first time I have to manually install / compile drivers like this so please excuse my ignorance.

In the readme file it says I should do the following:

make
make install

and that should be it.

It doesn't say I should but I run it as root (ie use sudo)

When I run sudo make I get a bunch of warnings about variables not used etc (let me know if this is needed so I can post) Also, I then proceed to run sudo make install and get the following error:

/sbin/depmod -aeE
/sbin/depmod: option requires an argument -- 'E'

make: *** [install] Error 1

The man page of depmod says:

When combined with the -e option, this reports any symbol versions supplied by modules that do not match with the symbol versions provided by the kernel in its Module.symvers. This option is mutually incompatible with -F.

But not sure what to do with that information. I have a Module.symvers file but it's empty.

Any help would be much appreciated. I'm a bit at a loss here.

I'm running Ubuntu 14.04.

evan54
  • 745

1 Answers1

1

Generally, in order to compile a driver from source code, you need to install the prerequisites build-essential and linux-headers-generic. Then the usual procedure is:

cd ~/directory/with/sourcecode  <--for example, ~/Downloads/mightex
make

And if there are no errors:

sudo make install
sudo depmod -a

Warnings are often acceptable; errors are not.

It would be helpful to see the result of this sequence. If possible, paste the results here and give us the link: http://paste.ubuntu.com

It would also be helpful to try the source code ourselves. Is there a link where we can download it?

chili555
  • 61,330