Changes between Version 2 and Version 3 of CompilationGuide/vcpkg


Ignore:
Timestamp:
Nov 7, 2020, 9:37:44 AM (6 years ago)
Author:
Tarmo Pikaro
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/vcpkg

    v2 v3  
     1Clone following git repository using command line like this:
    12
    23{{{
    … …  
    45cd vcpkg
    56bootstrap-vcpkg.bat
    6 set VCPKG_DEFAULT_TRIPLET=x64-windows
     7}}}
     8
     9Determine for which platform you want to build. To see existing platforms - check subfolder {{{triplets}}}.
     10
     11Detailed information can be found from here: https://vcpkg.readthedocs.io/en/latest/users/triplets/
     12
     13If you wish to build only release build, no debug - then copy x64-windows.cmake to x64-windows-rel.cmake, and add there following
     14text:
     15
     16{{{
     17set(VCPKG_TARGET_ARCHITECTURE x64)
     18set(VCPKG_CRT_LINKAGE dynamic)
     19set(VCPKG_LIBRARY_LINKAGE dynamic)
     20set(VCPKG_BUILD_TYPE release)
     21}}}
     22
     23Edit ports\ffmpeg\CONTROL file
     24and change this line:
     25{{{
     26Default-Features: avresample, avcodec, avformat, avdevice, avfilter, postproc, swresample, swscale
     27}}}
     28
     29to 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:
     30
     31{{{
     32Default-Features: ffmpeg, swresample, swscale
    733}}}
    834
    935
    10 You can use one of following command for example:
    11 
     36After that build ffmpeg using command line like this:
    1237
    1338{{{
    1439vcpkg install ffmpeg
     40       - Builds debug and release versions
     41vcpkg install ffmpeg:x64-windows-rel
     42       - Builds release only version
     43}}}
     44
     45You can use also {{--dry-run}} to determine that you're making right thing:
     46
     47{{{
     48>vcpkg install ffmpeg:x64-windows-rel --dry-run
     49Computing installation plan...
     50The following packages will be built and installed:
     51    ffmpeg[avcodec,avfilter,avformat,core,ffmpeg,swresample,swscale]:x64-windows-rel
    1552}}}
    1653
    1754
    18 If you want to build only release build, adjust vcpkg configuration according to instructions in here: https://stackoverflow.com/a/52781832/2338477
    19 
    20 and build using command line like this for example:
    21 
    22 
    23 {{{
    24 vcpkg install ffmpeg[ffmpeg,avresample,avcodec,avformat,avdevice,avfilter,swresample,swscale]:x64-windows-rel
    25 vcpkg install ffmpeg[ffmpeg]:x64-windows-rel
    26 
    27 }}}
    28 
    29 
    30 [ffmpeg] will build ffmpeg executable.
    31 
    32 
    33 
    34 
    35 
    36