【问题标题】:ffmpeg compilation issue on Windows phone 8.1Windows phone 8.1 上的 ffmpeg 编译问题
【发布时间】:2017-02-24 15:59:42
【问题描述】:

看看Build ffmpeg for windows phone 8 我能够使用以下步骤在 Windows phone 8 上编译 ffmpeg:

我的配置

操作系统:Windows 8.1 VS:Ultimate 2013 Update 3(如果 armasm 失败,msvcdis110.dll 缺少从 dllsearch 下载它) Mingw(确保“link”和“cl”命令指向 MS“link”和“cl” ) FFmpeg 2.1.5

遵循此处列出的先决条件:https://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows

-) 下载 c99toc89:https://github.com/libav/c99-to-c89/downloads/。确保 c99toc89 中的所有文件都在 Mingw PATH 中(复制到 /bin)

-) FFMPEG 需要标准化为 C99 一部分的 stdint.h 和 inttypes.h 标头。不幸的是,Visual Studio 不包含这些文件。幸运的是,有一个项目可以解决这个问题。下载最新版本并解压到 Visual Studio 包含 (C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include)。

-) 启动 cmd 和“c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat x86_arm”,然后启动 msys

-) 配置:

./configure --toolchain=msvc \
--disable-programs \
--disable-network \
--disable-protocols \
--extra-cflags="-D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE -D_M_ARM -D_WINAPI_FAMILY=WINAPIFAMILY_APP" \
--enable-cross-compile \
--target-os=win32 \
--arch=arm \
--as=armasm \
--cpu=armv7 \
--disable-yasm \
--extra-ldflags="-MACHINE:ARM" \
--disable-dxva2 \
--disable-asm \
--disable-doc

我能够获得 .a 静态库,但无法使用它生成应用程序。我在链接 kernel32.lib 和 libcmt.lib 未命中时遇到问题。

有人吗?

【问题讨论】:

  • 你有想过这个吗?我想知道 vcvarsall x86_arm 是否会取代我以前使用的 vcvarsphoneall。

标签: ffmpeg windows-phone windows-phone-8.1


【解决方案1】:

如果您收到错误 *.lib 丢失错误,您可以运行导出命令,例如 libcmt.lib 在我系统的以下路径中

export PATH=$PATH:"/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/lib"

这对我有用。

【讨论】:

    猜你喜欢
    • 2015-08-14
    • 1970-01-01
    • 2015-04-07
    • 1970-01-01
    • 1970-01-01
    • 2015-11-13
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多