| Version 5 (modified by , 6 years ago) ( diff ) |
|---|
Clone following git repository using command line like this:
git clone https://github.com/microsoft/vcpkg cd vcpkg bootstrap-vcpkg.bat
Determine for which platform you want to build. To see existing platforms - check subfolder triplets.
Detailed information can be found from here: https://vcpkg.readthedocs.io/en/latest/users/triplets/
If you wish to build only release build, no debug - then copy x64-windows.cmake to x64-windows-rel.cmake, and add there following text:
set(VCPKG_TARGET_ARCHITECTURE x64) set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_LIBRARY_LINKAGE dynamic) set(VCPKG_BUILD_TYPE release)
Edit ports\ffmpeg\CONTROL file
and change this line:
Default-Features: avresample, avcodec, avformat, avdevice, avfilter, postproc, swresample, swscale
to something you want to build, for example - I wanted to build only ffmpeg with with scaling / resizing support, so I've changed this line to:
Default-Features: ffmpeg, swresample, swscale
After that build ffmpeg using command line like this:
vcpkg install ffmpeg
- Builds debug and release versions
vcpkg install ffmpeg:x64-windows-rel
- Builds release only version
You can use also --dry-run to determine that you're making right thing:
>vcpkg install ffmpeg:x64-windows-rel --dry-run
Computing installation plan...
The following packages will be built and installed:
ffmpeg[avcodec,avfilter,avformat,core,ffmpeg,swresample,swscale]:x64-windows-rel


