An open API service indexing awesome lists of open source software.

https://github.com/threeal/libopencv4-deb

Debian package build workspace for the OpenCV 4 libraries
https://github.com/threeal/libopencv4-deb

debian debian-packages opencv opencv-library

Last synced: about 1 month ago
JSON representation

Debian package build workspace for the OpenCV 4 libraries

Awesome Lists containing this project

README

          

# Lib OpenCV 4 Deb

This repository contains CMake with CPack build project for the OpenCV 4 library.
It was created to accomodate the library packaging using the debian packaging system.

## Usage

### Updating the Source Code

- Initialize and update the `opencv` submodule.
```bash
$ git submodule init
$ git submodule update
```
- Move to the `opencv` directory, pull the latest update, and checkout to the latest release tag.
```bash
$ cd opencv
$ git pull
$ git checkout
```
- Change some variables value as follow:
- Change the value of `CPACK_DEBIAN_PACKAGE_VERSION` variable to match with the source code
release version.
- Increase the value of `CPACK_DEBIAN_PACKAGE_RELEASE` variable if there is changes related to
the debian packaging with the same source code release version. else reset it to `1`.

### Building the Library

- Create a `build` directory and move to it.
```bash
$ mkdir build
$ cd build
```
- Configure the Makefile rules with the following options.
```bash
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
```
- Build the library.
```bash
$ make
```
> Note: you could speed up the build process with specifying the job count parameter using `-jn` where `n` is number of the jobs. _(example: `$ make -j4`)_
- Create debian package using cpack.
```bash
$ cpack
```