2022-02-04 15:56:12 +00:00
|
|
|
# use vcpkg to build the ffmpeg.
|
2023-05-21 12:33:59 +00:00
|
|
|
|
|
|
|
Steps:
|
|
|
|
1. folow the instructions https://trac.ffmpeg.org/wiki/CompilationGuide/vcpkg
|
|
|
|
2. run command
|
2022-02-05 05:00:17 +00:00
|
|
|
```
|
|
|
|
vcpkg.exe install ffmpeg[core,avcodec,avdevice,avfilter,avformat,speex,avresample,mp3lame,opus,sdl2,swresample,vorbis]:x64-windows-rel
|
|
|
|
```
|
2023-05-21 12:33:59 +00:00
|
|
|
3. copy dll and libs in vcpkg\installed\x64-windows-rel to goldendict's winlibs\lib\msvc
|
2022-02-04 15:56:12 +00:00
|
|
|
|
|
|
|
**pros**: can be compiled with speex.
|
|
|
|
|
2023-05-21 12:33:59 +00:00
|
|
|
# alternative Method
|
2022-02-04 15:56:12 +00:00
|
|
|
just download the ffmpeg from official website: https://github.com/BtbN/FFmpeg-Builds/releases
|
2023-05-21 12:33:59 +00:00
|
|
|
then replace the dlls and libs in the winlibs\lib\msvc
|
2022-02-04 15:56:12 +00:00
|
|
|
|
2023-05-21 12:33:59 +00:00
|
|
|
**cons**: seems lack libspeex or I just download the wrong package.
|
2022-02-04 15:56:12 +00:00
|
|
|
|
|
|
|
**pros**: easy to manage.
|
|
|
|
|
|
|
|
|
2023-05-21 12:33:59 +00:00
|
|
|
# I have tried the following methods with no luck
|
|
|
|
|
|
|
|
## use the scripts provided by the following url
|
2022-02-04 15:56:12 +00:00
|
|
|
|
|
|
|
https://github.com/Microsoft/FFmpegInterop/issues/67
|
|
|
|
|
|
|
|
https://github.com/Microsoft/FFmpegInterop
|
|
|
|
|
|
|
|
|
|
|
|
did not know how to link with libspeex.
|
|
|
|
|
2023-05-21 12:33:59 +00:00
|
|
|
## conan
|
2022-02-04 15:56:12 +00:00
|
|
|
|
|
|
|
conan seems has not included libspeex option up to now.
|
|
|
|
|
|
|
|
|
2023-05-21 12:33:59 +00:00
|
|
|
# links worth checking
|
2022-02-04 15:56:12 +00:00
|
|
|
https://stackoverflow.com/a/44556505/968188
|
|
|
|
|
2023-05-21 12:33:59 +00:00
|
|
|
# notes(deprecated)
|
2022-02-04 15:56:12 +00:00
|
|
|
|
|
|
|
winlib/scripts/ffmpeg-configure-mingw32.sh is the script provided by goldendict .
|
2023-05-21 12:33:59 +00:00
|
|
|
though I have compiled it wiht mingw32 ,I do not know how to compile it for visual studio .
|