libgd/windows
Mike Frysinger bf36fa539b use https://libgd.org 2021-07-05 23:59:35 -04:00
..
msys AVIF support (#671) 2021-03-03 21:35:56 -05:00
Makefile.vc Fix #679: ssize_t used in gdft.c won't compile under MS compiler 2021-03-16 12:22:00 -04:00
Makefiletest.vc AVIF support (#671) 2021-03-03 21:35:56 -05:00
gentest.bat convert all files to native line encodings 2018-06-21 21:44:54 -04:00
libgd.rc use https://libgd.org 2021-07-05 23:59:35 -04:00
readme.md convert all files to native line encodings 2018-06-21 21:44:54 -04:00
run_tests.bat convert all files to native line encodings 2018-06-21 21:44:54 -04:00

readme.md

Building on Windows with Visual Studio 2015

  • Get the required dependencies from http://windows.php.net/downloads/php-sdk/deps/vc14/ and http://windows.php.net/downloads/pecl/deps/, respectively. Choose the x86 or x64 packages depending on your needs.

    • freetype
    • libiconv
    • libjpeg
    • libpng
    • libtiff
    • libwebp
    • libxpm
    • zlib
  • Unpack all dependency packages into the same folder.

  • Open the VS2015 x86 or x64 Native Tools Command Prompt.

  • Set the environment variable WITH_DEVEL to the path where you have unpacked the dependencies. WITH_DEVEL defaults to ..\deps.

  • If you want a debug build, do

set DEBUG=1
  • cd into the libgd source folder.

  • To build the libraries, do:

nmake /f windows\Makefile.vc
  • To build and run the tests, do:
nmake /f windows\Makefile.vc check
  • To build the executable programs, do:
nmake /f windows\Makefile.vc build_progs
  • After a successful build, you find the libraries and test executables in ..\gdbuild. You can change the build folder by setting the environment variable WITH_BUILD to the desired path.

  • Before rebuilding, you may have to run:

nmake /f windows\Makefile.vc clean