x264编译-yasm开启时make错误,common/x86/const-a.o No such file
2017-12-20 19:35
337 查看
由于项目需要,需要在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则编译成功):
网上相关问题的解决方案都不太可行。其实很简单,想到原来配置x265时教程中的类似问题:
但是我找不到x264中类似的文件,所以想着要不把“common/x86/” 中的文件名改下好了。
即.o文件它找不到,因为文件夹中全是.obj文件,跟着报错一个一个改再make就不会出错了:
测试了一下有无yasm编码1080p的视频速度,没有yasm的情况下编码的是2帧/s,有yasm的情况下编码速度为13.26帧/s(全部都是默认参数的情况下)
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则编译成功):
网上相关问题的解决方案都不太可行。其实很简单,想到原来配置x265时教程中的类似问题:
但是我找不到x264中类似的文件,所以想着要不把“common/x86/” 中的文件名改下好了。
即.o文件它找不到,因为文件夹中全是.obj文件,跟着报错一个一个改再make就不会出错了:
测试了一下有无yasm编码1080p的视频速度,没有yasm的情况下编码的是2帧/s,有yasm的情况下编码速度为13.26帧/s(全部都是默认参数的情况下)
相关文章推荐
- cocos2d-x-2.2中编译cocos2d-win32.vc2010 C1083 pthread.h No such file or director错误的解决办法
- codeblocks进行C++开发 向工程中添加Class 发生编译错误:"No such file or directory" 解决方案
- coc 4000 os2d-x-2.2中编译cocos2d-win32.vc2010.sln出现:C1083 pthread.h No such file or director错误的解决办法
- make otapackage错误:OSError [Error 2]No such file or directory
- 编译Linux内核时出现错误gcc: error: elf_i386: No such file or directory
- sublime text 3+mingw编译代码时错误提示:g++:error:No Such FIle or directory(已解决)
- 引用原因.NET下编译C++代码时出现fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory错误的解决方法.
- 64位linux下编译32位程序的错误“error: gnu/stubs-32.h: No such file or directory”
- NDK编译:error: iostream: No such file or directory错误解决办法
- Qt编译错误提示: QDialog; No such file or directory
- .NET下编译C++代码时出现fatal error C1083: 无法打开包括文件:“xuhk_JNIHelloWorld.h”: No such file or directory错误的解决方法。
- 使用NDK 编译C/C++程序遇到 crtbegin_so.o: No such file or directory 等错误
- 内核编译时提示错误error: sys/types.h: No such file or directory
- 编译Busybox时,出现错误fatal error: curses.h: No such file or directory
- C语言编译错误 fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
- 问题:编译kirlog时出现错误openssl-0.9.8i/libssl.so.0.9.8': No such file
- 编译boost python模块遇到的错误:../../libraries/boost_1_44_0/boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory
- Cocos2dx3.0 疑难解答系列 (二) 编译android时,报 CocoStudio.h no such file or directory等类似错误
- Mac 环境下ffmpeg编译出现 errno.h: No such file or directory 错误问题
- VS2012与VS2015同时安装用VS2012创建MFC程序时弹出编译错误”fatal error C1083: 无法打开包括文件:“mprapidef.h”: No such file or directory”的解决办法