【发布时间】:2013-01-28 12:43:49
【问题描述】:
我正在尝试在 cygwin 开发环境中使用 ffmpeg 库。我下载了shared build from here(64 位)。 bin 文件夹包含 dlls 但没有 .a 或 .dll.a 文件。链接,这样做是这样的:
$ gcc encoding_mp3.o -L/cygdrive/c/Users/Desktop/webserver/cygnus/lib/w32api -L/cygdrive/c/Users/Desktop/webserver/cygnus/ffmpeg/ffmpeg_shared/bin -lavcodec-54 -lm -luser32 -lpthread -o encoding_mp3
导致以下错误:
/cygdrive/c/Users/Desktop/webserver/cygnus/ffmpeg/ffmpeg_shared/bin/avcodec-54.dll: file not recognized: File format not recognized collect2: ld returned 1 exit status
我的问题:
1. 共享构建中的bin/ 文件夹仅包含avcodec-54.dll。有没有办法将dll 转换为dll.a 或.a?
2. 我哪里错了?
如果需要源代码,请告诉我。
【问题讨论】:
标签: dll linker ffmpeg cygwin shared-libraries