Skip to content

Giflib mirror plus cmakelist to build on windows

Notifications You must be signed in to change notification settings

ThioJoe/giflib-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giflib For Windows

Mirror of source code for Giflib, plus a CMakeLists.txt file to build on Windows using MSVC (Visual Studio) or Mingw

Release Binaries

You can also download the pre-compiled binaries for the utilities or giflib.dll on the Releases page.

The utility binaries are:

  • gif2rgb.exe
  • gifbg.exe
  • gifbuild.exe
  • gifclrmp.exe
  • gifcolor.exe
  • gifecho.exe
  • giffilter.exe
  • giffix.exe
  • gifhisto.exe
  • gifinto.exe
  • gifsponge.exe
  • giftext.exe
  • gifwedge.exe
  • giflib.dll (dynamic build only)

How to build on Windows

  1. Create a build directory within the src folder.

  2. From within the build directory, 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 exe files don't require the dll, 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 ..
    
  3. Still within the build directory, build using this command:

    cmake --build . --config Release
    
  4. 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.

License

See the license file here

About

Giflib mirror plus cmakelist to build on windows

Resources

Stars

Watchers

Forks

Sponsor this project