Skip to content

Instantly share code, notes, and snippets.

@abidanBrito
Created November 29, 2022 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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