源码编译安装openvino

寿亦
2023-12-01


参考博客
交叉编译方式

1、原地升级cmake

方法一:
下载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

不知道为啥,最后很慢,放弃了用了方法一

2、编译opencv4.5.3

参考教程

3、下载openvino

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

4、配置usb规则

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
 类似资料: