Mirror of source code for Giflib, plus a CMakeLists.txt file to build on Windows using MSVC (Visual Studio) or Mingw
You can also download the pre-compiled binaries for the utilities or giflib.dll on the Releases page.
The utility binaries are:
gif2rgb.exegifbg.exegifbuild.exegifclrmp.exegifcolor.exegifecho.exegiffilter.exegiffix.exegifhisto.exegifinto.exegifsponge.exegiftext.exegifwedge.exegiflib.dll(dynamic build only)
-
Create a
builddirectory within thesrcfolder. -
From within the
builddirectory, run ONE of the following, depending on whether you're using MSVC (Visual Studio) or Mingw:Configure using the Visual Studio generator
cmake -G "Visual Studio 17 2022" -A x64 ..Or to build with static linking so the
exefiles don't require thedll, do this:cmake -G "Visual Studio 17 2022" -A x64 -DBUILD_SHARED_LIBS=OFF ..Or if using mingw instead of MSVC/Visual Studio, just do:
cmake .. -
Still within the
builddirectory, build using this command:cmake --build . --config Release -
Depending on if you used MSVC or Mingw, the EXE files and dll will end up in either the src/build/Debug folder, or just the src/build folder.
See the license file here