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
- Host: GitHub
- URL: https://github.com/threeal/libopencv4-deb
- Owner: threeal
- License: mit
- Created: 2020-05-09T09:56:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T13:03:16.000Z (almost 6 years ago)
- Last Synced: 2025-01-26T11:42:23.580Z (over 1 year ago)
- Topics: debian, debian-packages, opencv, opencv-library
- Language: CMake
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```