Skip to content

A playground(template) for using C/C++ with OpenCV and Bazel.

License

Notifications You must be signed in to change notification settings

yingshaoxo/opencv_bazel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A playground(template) for using C/C++ with OpenCV and Bazel.

Bazel Installation

https://docs.bazel.build/versions/master/install-ubuntu.html#ubuntu

OpenCV Installation

git clone https://github.com/Itseez/opencv.git

cd opencv/

mkdir build install

cd build

apt install libgtk2.0-dev pkg-config

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..

make install

Build

bazel build main:hello-world

Run

./bazel-bin/main/hello-world yingshaoxo.jpg

Test

bazel test test:hello-test

About

A playground(template) for using C/C++ with OpenCV and Bazel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published