一、安装 llvm opencv
参考:https://github.com/twistedfall/opencv-rust/issues/118
- 安装Chocolatey 以管理员身份启动powerShell执行:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
– 安装 Chocolatey 截图: - 将OpenCV和LLVM安装为
choco install llvm opencv
–安装截图:(确保网络通畅) - 添加以下环境变量:
OPENCV_LINK_LIBS
, OPENCV_LINK_PATHS
,OPENCV_INCLUDE_PATHS
二、llvm-config 安装
windows10下编译llvm-config 【参考】
- cmake下载,安装,并配置到PATH中。
- 下载llvm源码。–【10.0.0下载地址】
报错:cargo:warning=could not execute 'llvm-config' one or more times, if the LLVM_CONFIG_PATH environme
linux-CentOS 安装:
安装依赖:
安装shell文件:https://github.com/twistedfall/opencv-rust/tree/master/ci
待续。
解决参考:https://github.com/KyleMayes/clang-rs