- Get the latest source code release from libwebp repo.
- Extract the archive to a new folder.
- Launch
Command Prompt
withNative Tools Command Prompt
which is come from C BuildTools (Get it from "Tools for Visual Studio" section here). - Change the
Current Directory
to the directory, which you created at Step 2, using this command:
cd /d "F:\Path\To\Directory"
- Start compiling the source with nmake:
nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output
- Depend on which
Native Tools Command Prompt
(x86 or x64), the compiled binaries will match the architecture with theCommand Prompt
's environment. - You may need to manually add some directory to
PATH
environment so that the build tool can find the external tools. - see build_libwebp_dll.md for more details on building the
libwebp
DLLs