由于项目需要,需要在PC端,几种硬件板上均配置x264,x265,现在PC端还差x264没有配置。
1. 下载x264的源码:
http://download.videolan.org/pub/videolan/x264/snapshots/
下载最新的、稳定的并解压即可;
2. 根据教程安装mingw:
https://yq.aliyun.com/articles/31077
3. yasm的问题:
根据2中的教程,在./configure --enable-shared时会出现如下错误(--disable-asm则编译成功):
1. 下载x264的源码:
http://download.videolan.org/pub/videolan/x264/snapshots/
下载最新的、稳定的并解压即可;
2. 根据教程安装mingw:
https://yq.aliyun.com/articles/31077
3. yasm的问题:
根据2中的教程,在./configure --enable-shared时会出现如下错误(--disable-asm则编译成功):
![](https://i-blog.csdnimg.cn/blog_migrate/a7c29550010c9988fc85eea39f5a8e18.png)
网上相关问题的解决方案都不太可行。其实很简单,想到原来配置x265时教程中的类似问题:
![](https://i-blog.csdnimg.cn/blog_migrate/8df8b220990df88f3740deb58cf49c38.png)
![](https://i-blog.csdnimg.cn/blog_migrate/567af57c1c6bd7ef1a10c7bd72bb88ed.png)