天天看点

appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

如果您看完我的博客,解决了您的问题,麻烦关注下我呗~不定期更新软件测试内容

一.解决opencv4nodejs can not found

1.安装cmake并配置环境变量

环境:Windows 64位

首先下载CMake官网下载地址:cmake官网

里面很多版本,根据自己需要版本进行下载。

【注意】选择好自己电脑是什么系统,以及是32位还是64位。

appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

下载完成后,双击进行安装。

1.欢迎界面。点【next】

2.同意协议。勾选,然后点【next】

3.按图中红框勾选,然后点【next】

appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

4.路径选择,然后点【next】。

安装路径根据自己需要自行修改。【建议】路径名是在英文路径下,不要包含中文和空格

5.开始安装。点【Install】

6.安装完成。点【Finish】

7.到此CMake3.8.2安装工作就以完成。 因为在安装过程中选择了自动添加环境,所以安装完后不用手动添加环境了,但是此时必须得重启电脑,变量才能使用,否则无法对Cmake安装进行测试。

2.安装git并配置环境变量

1.到Git官网下载Git,根据自己需要的来下载 Git官网

appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题
  1. 双击下载好的Git安装包,一直下一步就行(也可以自己手动配置)

    3.找到安装的文件夹

    appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

4.复制路径,找到系统的环境变量–将复制的路径加到path上面

5.打开cmd,输入 git --version 验证是否显示版本号,如果显示就是安装配置成功了

3.以管理员权限打开cmd,输入命令

npm install -g windows-build-tools

4.以管理员权限打开cmd,输入命令

npm install -g opencv4nodejs

(注意这一步需要翻v墙,不然会报错,很多人都是卡在了这一步,我无意中发现解决办法)

二.解决 mjpeg-comsumer cannot be found的问题

这个最简单,直接安装即可

安装:npm i -g mjpeg-consumer

三.解决ffmpeg cannot be found的问题

这里是CSDN下载链接: ffmpeg

下载后,解压到文件夹下,路径最好不要有中文,然后在系统环境变量path中配置到文件夹的bin路径,比如我解压到

d盘下的software,那么我的path路径配置就是

appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

再新开一个cmd窗口输入ffmpeg -version测试或者appium-doctor,就可以看到成功了

四.解决bundletool.jar cannot be found的问题

在https://github.com/google/bundletool/releases 下载bundletool.jar,

在你的安卓SDK下新建一个bundle-tool文件夹,然后将这个jar包改名成这个bundletool.jar

放在bundle-tool文件夹下

添加path路径,比如我的是

D:\android-sdk_r24.4.1-windows\android-sdk-windows\bundle-tool

修改环境变量中的PATHTEXT添加;.jar

如下图所示

appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

需要下载gstreamer,到csdn下载对应的版本https://download.csdn.net/download/weixin_47229609/14141863

找到gstreamer路径,我是在D盘,这个似乎不能选择安装路径,你把安装包放在哪个盘,他就会装在哪个盘里

配置Path系统环境变量

我是

D:\gstreamer\1.0\mingw_x86_64\bin

appium-doctor报错--xxxx cannot be found解决办法和文件下载地址一.解决opencv4nodejs can not found二.解决 mjpeg-comsumer cannot be found的问题三.解决ffmpeg cannot be found的问题四.解决bundletool.jar cannot be found的问题五.解决gst-launch-1.0.exe and gst-inspect-1.0.exe的问题

记住是这个有64的的bin文件,配置该路径到path中,

再检查一下appium-doctor

如果您看完我的博客,解决了您的问题,麻烦关注下我呗~不定期更新软件测试内容