【问题标题】:FFmpeg compile opus errorFFmpeg 编译 opus 错误
【发布时间】:2015-08-10 06:09:32
【问题描述】:

我正在按照本教程使用 Microsoft 的编译器静态构建 FFmpeg(不需要 DLL):http://cristobaldobranco.github.io/blog/2015/01/20/compiling-ffmpeg-with-windows-tools/

我在尝试编译时遇到了麻烦:

#pragma comment (lib, "libavformat.a")
#define __STDC_CONSTANT_MACROS

extern "C" {
    #include <libavformat/avformat.h>
}

int main() {
    av_register_all();
    return 0;
}

似乎能够找到头文件和库文件,但我收到关于 opus 的奇怪错误:

这是我的 MSYS 命令:

cd C:/Libs/ffmpeg
./configure --toolchain=msvc --arch=x86 --prefix=build/ --disable-network
make
make install

如何消除这些错误?

【问题讨论】:

    标签: c++ compilation ffmpeg


    【解决方案1】:

    Opus 使用了一些重采样功能,因此在链接 libavcodec.a(在 libavformat.a 中使用)时需要链接 libswresample.a。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-01
      • 2015-07-24
      • 2018-10-10
      • 2012-10-05
      • 2013-01-01
      • 2014-11-23
      • 2015-01-05
      相关资源
      最近更新 更多