https://ffmpeg.zeranoe.com/builds/readme/win64/static/ffmpeg-git-1aeb88b-win64-static-readme.txt
./configure --disable-debug --enable-static --enable-runtime-cpudetect --enable-memalign-hack --disable-avformat --disable-avfilter --disable-pthreads --disable-runtime-cpudetect --enable-w32threads --disable-ffprobe --enable-version3 --disable-everything --enable-decoder=h264 --disable-ffmpeg --disable-swscale --cross-prefix=x86_64-w64-mingw32- --target-os=mingw32 --arch=x86_64
把相应的exe文件改名为
x86_64-w64-mingw32-gcc.exe
x86_64-w64-mingw32-ar.exe
x86_64-w64-mingw32-ranlib.exe
make
编译windows的player时要把
directx的包含目录和库目录要放在vc目录的最前面
注意:不能链接libmsvcrt.a,否则跑不起来
网友评论