From 9e2b9e768c3594675d5f7afbbc638f502d73a45e Mon Sep 17 00:00:00 2001 From: Hashaam Zafar Date: Tue, 4 Jun 2024 07:29:38 +0500 Subject: [PATCH] Experimenting with manual installation --- docker/build.sh | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/docker/build.sh b/docker/build.sh index 7b3985fe..217049aa 100644 --- a/docker/build.sh +++ b/docker/build.sh @@ -7,7 +7,40 @@ sudo apt update # Manual installation (debugging) sudo apt install pip -y sudo apt update -sudo apt install libopencv-dev python3-opencv + + + +### Installing Opencv --START +#!/bin/bash + +# Install prerequisites +sudo apt update +sudo apt install -y cmake g++ wget unzip + +# Download and unpack OpenCV sources +wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.3.zip +unzip opencv.zip + +# Create build directory +mkdir -p build && cd build + +# Configure and build OpenCV +cmake ../opencv-4.5.3 +make -j$(nproc) + +# Install OpenCV +sudo make install + +# Clean up +cd .. +rm -rf build opencv.zip opencv-4.5.3 + +### Installing Opencv --END + + + + +#sudo apt install libopencv-dev python3-opencv # sudo apt install ros-foxy-cv-bridge # fetch repo