• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Installing gdlib on Windows

eggrock

Supreme [H]ardness
Joined
Dec 1, 2003
Messages
4,102
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:

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.
 
Well, if you are using activestate perl you should probably startup the package manager. There is a package called gd which is an "Interface to Gd Graphics Library", I'm assuming thats what you need to interface with that dll you've downloaded. If you cant get it working give me whatever perl script you are using that requires this so I can give it a shot.
 
in windows, go to your php.ini file...and enter this into your extensions:

extension=ext/php_gd2.dll

make sure the file though is in the 'ext' folder
 
Fark_Maniac said:
in windows, go to your php.ini file...and enter this into your extensions:

extension=ext/php_gd2.dll

make sure the file though is in the 'ext' folder
The path should already be there.
Just uncomment it by removing the semicolon.
But, it seems he's not trying to use the built in gd library.
See if this helps: GD for Windows
 
fl70 said:
The path should already be there.
Just uncomment it by removing the semicolon.
But, it seems he's not trying to use the built in gd library.
See if this helps: GD for Windows
they are one in the same.
Go to the "homepage" at the sourceforge link...it goes to www.boutell.com/gd...the same one that is in the php setup files at php.net.

the version that comes bundled is 2.0.28

upgrading to the new version should be as easy as doing what I previously stated and putting the new .dll file in the extension folder, overwriting the old one.

just some easy googling for "php5 gd windows" produces this gem on the first few hits:
http://www.webmasterworld.com/forum88/4495.htm
 
Back
Top