首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用MSVC工具编译FFmpeg需要帮助

使用MSVC工具编译FFmpeg需要帮助
EN

Stack Overflow用户
提问于 2018-01-30 11:11:56
回答 1查看 5K关注 0票数 1

我需要使用MSVC 2017编译器在Windows 10上编译FFmpeg。我跟随了一些导游:

我安装了当前稳定版本的MSYS,固定的link.exe和路径环境的使用,安装了make diffutils gcc pkg-config并下载了c99-to-c89,nasm和intypes.h。

我认为我的环境现在已经正确设置了,我从MSVC命令提示符中运行了MSYS,并且所有东西都可以访问。

代码语言:javascript
复制
$ which cl
/c/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/HostX64/x64/cl

$ which link
/c/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/HostX64/x64/link

$ which yasm
/home/Antoine/bin/yasm

$ which c99conv
/home/Antoine/bin/c99conv

$ which c99wrap
/home/Antoine/bin/c99wrap

现在我配置构建

代码语言:javascript
复制
$ ./configure --toolchain=msvc
install prefix            /usr/local
source path               .
C compiler                cl
C library                 msvcrt
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
standalone assembly       yes
x86 assembler             nasm
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AESNI enabled             yes
AVX enabled               yes
AVX2 enabled              yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             no
EBP available             no
debug symbols             yes
strip symbols             no
optimize for size         no
optimizations             yes
static                    yes
shared                    no
postprocessing support    no
network support           yes
threading support         w32threads
safe bitstream reader     yes
texi2html enabled         no
perl enabled              no
pod2man enabled           no
makeinfo enabled          no
makeinfo supports HTML    no

External libraries:
schannel                 xlib

External libraries providing hardware acceleration:
cuda                     cuvid                    d3d11va                  dxva2                    nvenc

Libraries:
avcodec                  avdevice                 avfilter                 avformat                 avutil                   swresample               swscale

Programs:
ffmpeg                   ffprobe

[...]
Hundreds of modules, library, etc.
[...]

License: LGPL version 2.1 or later
Creating configuration files ...
config.h is unchanged
config.asm is unchanged
libavutil/avconfig.h is unchanged
libavcodec/bsf_list.c is unchanged
libavformat/protocol_list.c is unchanged

但是当我运行make时,它很快就停止了

代码语言:javascript
复制
$ make
Makefile:47: la cible « qt-faststart » ne correspond pas au motif de cible
Makefile:47: la cible « trasher » ne correspond pas au motif de cible
Makefile:47: la cible « uncoded_frame » ne correspond pas au motif de cible
Makefile:91: ffbuild/library.mak: No such file or directory
make: *** Aucune règle pour fabriquer la cible « ffbuild/library.mak ». Arrêt.

对不起,法语的措辞,我不知道如何告诉MSVC打印其输出英文。基本上,这个错误意味着:

代码语言:javascript
复制
Makefile:47: target « qt-faststart » doesn't match the target pattern
make: *** No rule to make target « ffbuild/library.mak ». Stopped.

边注:

代码语言:javascript
复制
$ tree ffbuild
ffbuild
├── config.fate
├── config.log
├── config.mak
└── config.sh

没错,library.mak没有生成到ffbuild中,但是我不知道为什么,配置脚本没有输出任何错误消息.

有人能帮我找出我做错了什么吗?

编辑:

make distclean帮不上忙

代码语言:javascript
复制
$ make distclean
Makefile:47: la cible « qt-faststart » ne correspond pas au motif de cible
Makefile:47: la cible « trasher » ne correspond pas au motif de cible
Makefile:47: la cible « uncoded_frame » ne correspond pas au motif de cible
Makefile:91: ffbuild/library.mak: No such file or directory
make: *** Aucune règle pour fabriquer la cible « ffbuild/library.mak ». Arrêt.
EN

回答 1

Stack Overflow用户

发布于 2018-01-30 18:16:19

在从FFmpeg重新下载源代码作为压缩包后,我终于成功地在github上编译了github。我以前从ffmpeg.org下载了源代码,但是存档(.tar.bz2)可能已经损坏,并且/或提取在某个时候失败了。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48519993

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档