我正在尝试在开发环境中使用该ffmpeg
库。cygwin
我从这里下载了共享版本(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
. 有没有办法将 a 转换dll
为dll.a
or .a
?
2. 我哪里错了?
如果需要源代码,请告诉我。