Skip to content
Snippets Groups Projects
Commit 6c45c5a9 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

removed visionutils and opencv via apt

parent edfed01f
No related branches found
No related tags found
1 merge request!1removed visionutils and opencv via apt
Pipeline #13421 passed
...@@ -453,30 +453,14 @@ if [ $INSTALL_VISION == "undefined" ]; then ...@@ -453,30 +453,14 @@ if [ $INSTALL_VISION == "undefined" ]; then
fi fi
if [ $INSTALL_VISION == "y" ]; then if [ $INSTALL_VISION == "y" ]; then
func_echo "Installing plugin vision dependencies..." func_echo "Installing OpenCV (required by vision plugin)..."
# opencv # opencv
cd $DEPS_PATH if [ "$UID" -eq 0 -o "$EUID" -eq 0 ]; then
wget https://github.com/opencv/opencv/archive/3.3.0.zip -O temp.zip apt install -y libopencv-dev
unzip temp.zip else
rm temp.zip sudo apt install -y libopencv-dev
cd opencv-3.3.0 fi
git clone --depth 1 -b 3.3.0 https://github.com/opencv/opencv_contrib.git
mkdir build
cd build
sed -i 's/char\* str = PyString_AsString(obj)/const char\* str = PyString_AsString(obj)/g' ../modules/python/src2/cv2.cpp
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D CMAKE_CXX_FLAGS="-fPIC -std=c++14" -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules -D WITH_FFMPEG=OFF ..
make -j$CORES
func_make_install
# vision_utils
cd $DEPS_PATH
git clone https://gitlab.iri.upc.edu/labrobotica/algorithms/vision_utils.git
cd vision_utils
mkdir -pv build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES
func_make_install
func_echo "Cloning plugin vision..." func_echo "Cloning plugin vision..."
cd $WOLF_PATH cd $WOLF_PATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment