【发布时间】: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