-
-
Notifications
You must be signed in to change notification settings - Fork 87
Build and install
hipersayanX edited this page Apr 28, 2022
·
15 revisions
These are the minimum requirements to build the driver:
- gcc
- make
- linux-headers >= 4.4.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 dkms_install
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 dkms_uninstall
If you are just packaging akvcam, just use normal install/uninstall
commands, and run DKMS manually:
sudo dkms install akvcam/${VERSION}
Replace ${VERSION} with the actual driver version.
- 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.
- DESTDIR: Prefix directory for for install. Default to empty string.
- PREFIX: Install directory for driver sources. Default to ${DESTDIR}/usr/src.
- INSTALLDIR: Driver sources directory. Default to ${PREFIX}/akvcam-${VERSION}.
You can open the driver source code as a normal Qt project, to do so just open the CMakeLists.txt 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.