Difference between revisions of "Libgd"
From PLplotWiki
(→Instructions for Windows) |
|||
Line 13: | Line 13: | ||
== Instructions for Windows == | == Instructions for Windows == | ||
− | * Download [http://www.libgd.org/releases/gd-latest-win32.zip gd 2. | + | * Download [http://www.libgd.org/releases/gd-latest-win32.zip gd 2.34 library as zip] |
* Unzip gd-latest-win32.zip into a folder of your choice | * Unzip gd-latest-win32.zip into a folder of your choice | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Set CMake paths === | === Set CMake paths === |
Revision as of 11:56, 22 December 2008
Contents
Description
gd is a graphics library. It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. This is particularly useful in World Wide Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers.
Instructions for Mac OS X
N/A
Instructions for Linux
N/A
Instructions for Windows
- Download gd 2.34 library as zip
- Unzip gd-latest-win32.zip into a folder of your choice
Set CMake paths
- set environment variables (for MinGW and Visual C++) and add bin directory to PATH
set LIBGDDIR=c:\libraries\libgd set PATH=%LIBGDDIR%\bin;%PATH% set CMAKE_INCLUDE_PATH=%LIBGDDIR%\include;%CMAKE_INCLUDE_PATH% set CMAKE_LIBRARY_PATH=%LIBGDDIR%\lib;%CMAKE_LIBRARY_PATH%
CMake is now able to find the libgd library and headers.