cd openvino
git submodule update --init --recursive
```
-2. Install build dependencies using the `install_dependencies.sh` script in the
+2. Install build dependencies using the `install_build_dependencies.sh` script in the
project root folder.
```sh
- chmod +x install_dependencies.sh
+ chmod +x install_build_dependencies.sh
```
```sh
- ./install_dependencies.sh
+ ./install_build_dependencies.sh
```
3. By default, the build enables the Inference Engine GPU plugin to infer models
on your IntelĀ® Processor Graphics. This requires you to
sudo -E apt update
sudo -E apt-get install -y \
build-essential \
- cmake \
curl \
wget \
libssl-dev \
automake \
libtool \
autoconf \
+ shellcheck \
+ python \
libcairo2-dev \
libpango1.0-dev \
libglib2.0-dev \
sudo -E yum install -y rh-python36
source scl_source enable rh-python36
- wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
- tar xf cmake-3.12.3.tar.gz
- cd cmake-3.12.3
- ./configure
- make -j16
- sudo -E make install
-
echo
echo "FFmpeg is required for processing audio and video streams with OpenCV. Please select your preferred method for installing FFmpeg:"
echo
sudo -E apt update
sudo -E apt-get install -y \
build-essential \
- cmake \
curl \
wget \
libssl-dev \
fi
else
echo "Unknown OS, please install build dependencies manually"
-fi
\ No newline at end of file
+fi
+
+# cmake 3.13 or higher is required to build OpenVINO
+current_cmake_version=$(cmake --version | sed -ne 's/[^0-9]*\(\([0-9]\.\)\{0,4\}[0-9][^.]\).*/\1/p')
+required_cmake_ver=3.13
+if [ ! "$(printf '%s\n' "$required_cmake_ver" "$current_cmake_version" | sort -V | head -n1)" = "$required_cmake_ver" ]; then
+ wget "https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4.tar.gz"
+ tar xf cmake-3.18.4.tar.gz
+ (cd cmake-3.18.4 && ./bootstrap --parallel="$(nproc --all)" && make --jobs="$(nproc --all)" && sudo make install)
+ rm -rf cmake-3.18.4 cmake-3.18.4.tar.gz
+fi