方法一:
下载3.19.0中的CMake-3.19.0.zip,解压
cd CMake-3.19.0
sudo ./bootstrap
sudo make -j4
sudo make install
cmake --version
方法二:
sudo apt install python-pip
pip install scikit-build
sudo pip install --upgrade cmake==3.19.0
不知道为啥,最后很慢,放弃了用了方法一
git clone https://github.com/openvinotoolkit/openvino
git checkout 2021.4.2
git submodule update --init --recursive
cd openvino
./install_build_dependencies.sh
mkdir build && cd build
mkdir installed
cmake -D CMAKE_INSTALL_PREFIX=~/openvino/build/installed ..
make -j4
echo "source ~/openvino/scripts/setupvars/setupvars.sh
source ~/.bashrc
sudo usermod -a -G users "$(whoami)"
sudo cp ~/openvino/inference-engine/thirdparty/movidius/mvnc/src/97-myriad-usbboot.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo ldconfig