UBUNTU22安装VX
时间: 2023-11-11 12:00:56 浏览: 118
好的,安装 VX 需要先安装 VX 的依赖库和编译工具,具体步骤如下:
1. 安装依赖库:
```
sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libtiff5-dev libjasper-dev libopenexr-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libatlas-base-dev gfortran python3-dev python3-numpy libtbb2 libtbb-dev libdc1394-22-dev
```
2. 下载 VX 源码:
```
git clone https://github.com/opencv/opencv.git
cd opencv
git checkout 4.5.3
```
3. 编译 VX:
```
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j8
sudo make install
```
4. 验证 VX 是否安装成功:
```
pkg-config --modversion opencv4
```
如果输出版本号,则说明 VX 安装成功。
阅读全文