2023-12-20 07:17:05 +00:00
|
|
|
# Use vcpkg to build ffmpeg(on Windows).
|
2023-05-21 12:33:59 +00:00
|
|
|
|
|
|
|
Steps:
|
2023-07-13 13:17:30 +00:00
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
1. follow the instructions at https://trac.ffmpeg.org/wiki/CompilationGuide/vcpkg
|
2023-07-13 13:17:30 +00:00
|
|
|
|
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
2. run the 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-07-13 13:17:30 +00:00
|
|
|
|
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
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
**Pros**: Can be compiled with speex.
|
2022-02-04 15:56:12 +00:00
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
# Alternative method
|
|
|
|
simply download ffmpeg from the official website: https://github.com/BtbN/FFmpeg-Builds/releases
|
|
|
|
Then replace the dlls and libs in the winlibs\lib\msvc.
|
2022-02-04 15:56:12 +00:00
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
**Cons**: Seems to be missing libspeex or I just downloaded the wrong package.
|
2022-02-04 15:56:12 +00:00
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
**Pros**: Easy to manage.
|
2022-02-04 15:56:12 +00:00
|
|
|
|
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
## conan
|
2022-02-04 15:56:12 +00:00
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
conan does not seem to have the libspeex option yet.
|
2022-02-04 15:56:12 +00:00
|
|
|
|
|
|
|
|
2023-07-14 06:44:33 +00:00
|
|
|
## Links worth checking
|
2022-02-04 15:56:12 +00:00
|
|
|
https://stackoverflow.com/a/44556505/968188
|