-
-
Notifications
You must be signed in to change notification settings - Fork 88
Build and install
hipersayanX edited this page Nov 19, 2020
·
15 revisions
These are the minimum requirements to build the driver:
- gcc
- make
- linux-headers >= 3.16.0
Additional tools that may be useful for development:
You can build and install akvcam with the following commands:
cd akvcam/src
make
sudo make install USE_DKMS=1
after that, the driver may work without problems. You can check the driver is installed with:
ls /lib/modules/$(uname -r)/extra/akvcam.ko*
And you can uninstall the driver with:
sudo make uninstall USE_DKMS=1
If you are just packaging akvcam, remove the USE_DKMS=1
flag, and run DKMS manually:
sudo dkms install akvcam/${VERSION}
Replace ${VERSION} with the actual driver version.
- KERNEL_DIR: The path where kernel source are located. Default to /lib/modules/$(shell uname -r)/build.
- DESTDIR: The install prefix of the driver, used with make install. Default to /.
- USE_SPARSE=1: Use sparse to check for errors in source files when building.
- SPARSE_MODE: Mode 1 only check errors when the source file is modified, mode 2 check errors every time the driver is built. Default to 2.
- USE_DKMS: Run DKMS after install/before uninstall.
You can open the driver source code as a normal Qt project, to do so just open the akvcam.pro file with Qt Creator and that's it. Qt Creator offers a lot of nice and modern features to improve driver development like static code parsing, error, warning and source tracking, and a lot more.