Skip to content

Instantly share code, notes, and snippets.

@abidanBrito
Last active May 10, 2024 00:13
Show Gist options
  • Save abidanBrito/24a8924b49fb7273da2ccdf6c94eb84a to your computer and use it in GitHub Desktop.
Save abidanBrito/24a8924b49fb7273da2ccdf6c94eb84a to your computer and use it in GitHub Desktop.
# Install minimal prerequisites (Ubuntu 18.04 as reference)
sudo apt update && sudo apt install -y cmake g++ wget unzip
# Download and unpack sources
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
unzip opencv.zip
# Create build directory
mkdir -p build && cd build
# Configure
cmake ../opencv-4.x
# Build
cmake --build .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment