Skip to content

Instantly share code, notes, and snippets.

@DevStefIt
Last active February 8, 2025 17:05
Show Gist options
  • Save DevStefIt/4cf6542bfaa8eaf9d2165dba08222f77 to your computer and use it in GitHub Desktop.
Save DevStefIt/4cf6542bfaa8eaf9d2165dba08222f77 to your computer and use it in GitHub Desktop.
Statically compiling libvpx on Windows
# Make sure you opened the x64 Native Tools Command Prompt for VS 2022 and then opened MSYS2 shell command
echo Getting libvpx...
git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
cd ../build
mkdir libvpx
cd libvpx
../../sources/libvpx/configure --target=x86_64-win64-vs17 --enable-static --enable-static-msvcrt --disable-examples --disable-tools --disable-docs --disable-unit-tests --prefix="../../installed/libvpx"
make
make install
mv ../../installed/libvpx/lib/x64/vpxmt.lib ../../installed/libvpx/lib/x64/vpx.lib
cd ../../sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment