糖醋鱼的小破站

🐠生成长记

目录
Manjaro 安装 opencv
/      

Manjaro 安装 opencv

Manjaro 安装 opencv

安装相应的包

首先查询源是否有自己需要的包

1.png

# 安装基础构建工具组和自己需要的安装包
sudo pacman -Syu base-devel opencv opencv-samples opencv-docs hdf5 vtk~~~~

查询数据库检查例程安装路径

sudo pacman -Ql opencv-samples

.....
opencv-samples /usr/share/opencv/samples/

编译测试

cd /usr/share/opencv/samples/cpp

g++ -ggdb `pkg-config --cflags --libs opencv4 ` opencv_version.cpp -o /tmp/opencv_version && /tmp/opencv_version

# 输出结果:
/tmp/opencv_version        
Welcome to OpenCV 4.2.0

标题:Manjaro 安装 opencv
作者:expoli
地址:https://expoli.tech/articles/2020/01/12/1578816866429.html

评论
取消