My end goal is getting the GD library for Windows installed so I can install the GD package for Perl. Trouble is, I have no clue what to do; I have the precompiled (bgd.dll) package, Microsoft Visual C++ app, and a readme that says this:
The FAQ is of little help:
So... I don't think I need to compile anything, as bgd.dll is precompiled and all. But.... Now what? If I 'make' (nmake) the Makefile for the Perl lib and specify the path to bgd.dll it still fails because everything is missing:
A further make will die horribly.
Basically, I'm such a n00b at this that I don't even know where to start researching. Google searches haven't been very helpful as they're directed towards PHP (which comes with its own built-in GD library/modules.) So basically this devolves into showing me how to compile libraries for WIndows--I think.
Thanks in advance; I'll be happy to do my own research once I know where to look.
Welcome to the win32 binary distribution of the gd library! This
win32 distribution includes the dynamic link library bgd.dll, the
mingw32/cygwin import library libbgd.a, the export definitions file
bgd.def, the gd header files, the gd manual in the file index.html,
and a few simple win32 console applications that relate to gd.
If you are a PHP programmer, you may be in the wrong place. The
current release of PHP includes its own GD dll which works well
with that language. You do not need this version for PHP.
Need an import library for MSVC? Type "makemsvcimport.bat" to
build bgd.lib using your copy of MSVC. Similar syntax will
work for other compilers.
See the gd FAQ for more information about gd:
http://www.boutell.com/gd/faq.html
The FAQ is of little help:
CURRENTLY NOT INTENDED FOR PHP, SEE ABOVE. A compiled DLL of gd with all features enabled is now available from the gd home page. To avoid conflicts the DLL is named bgd.dll. This is of course intended for programmers, but opens up the field to those who found compiling gd from scratch under Windows to be very challenging. bgd.dll includes png, jpeg, and freetype support as "standard equipment." A similar precompiled library for Linux is planned for the immediate future.
So... I don't think I need to compile anything, as bgd.dll is precompiled and all. But.... Now what? If I 'make' (nmake) the Makefile for the Perl lib and specify the path to bgd.dll it still fails because everything is missing:
>perl Makefile.PL
NOTICE: This module requires libgd 2.0.28 or higher.
If you are using Math::Trig 1.01 or lower, it has a bug that
causes a "prerequisite not found" warning to be issued. You may
safely ignore this warning.
Type perl Makefile.PL -h for command-line option summary
'gdlib-config' is not recognized as an internal or external command,
operable program or batch file.
Where is libgd installed? [/usr/lib] D:\App Installers\Perl\gdwin32
Please choose the features that match how libgd was built:
Build JPEG support? [y]
Build PNG support? [y]
Build FreeType support? [y]
Build GIF support? [y]
Build support for animated GIFs? [y]
If you experience compile problems, please check the @INC, @LIBPATH and @LIBS
arrays defined in Makefile.PL and manually adjust, if necessary.
Note (probably harmless): No library found for Installers/Perl/gdwin32/lib
Note (probably harmless): No library found for -lgd
Note (probably harmless): No library found for -lpng
Note (probably harmless): No library found for -lz
Note (probably harmless): No library found for -lfreetype
Note (probably harmless): No library found for -ljpeg
Writing Makefile for GD
A further make will die horribly.
Basically, I'm such a n00b at this that I don't even know where to start researching. Google searches haven't been very helpful as they're directed towards PHP (which comes with its own built-in GD library/modules.) So basically this devolves into showing me how to compile libraries for WIndows--I think.
Thanks in advance; I'll be happy to do my own research once I know where to look.