下载 opencv 源码:Releases - OpenCV
官方安装文档:https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html
详细的安装过程可以参考文章: 在 Linux 系统中编译安装 OpenCV - 知乎
安装依赖项:
sudo apt-get install -y libcurl4 build-essential pkg-config cmake
sudo apt-get install -y libavcodec-dev libavformat-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
sudo apt-get install -y libswscale-dev libpng-dev libjpeg-dev libcanberra-gtk-module libcanberra-gtk3-module
sudo apt-get install -y libopenblas-dev libeigen3-dev libtbb-dev libgtk-3-dev
mkdir build && cd build
cmake ../
cmake --build .
下载 fftw 源码:FFTW Download Page
mkdir build
cd build
../configure --prefix=/root/c++/lib/fftw-3.3.10/build
make
make install
下载 openvino 源码:storage.openvinotoolkit.org
官方安装文档:Install OpenVINO™ Runtime on Linux from an Archive File — OpenVINO™ documentation
tar -xf l_openvino_toolkit_ubuntu20_2023.3.0.13775.ceeafaf64f3_x86_64.tgz
mv l_openvino_toolkit_ubuntu20_2023.3.0.13775.ceeafaf64f3_x86_64 openvino
cd openvino
sudo -E ./install_dependencies/install_openvino_dependencies.sh