Difference between revisions of "Install 3rd party libraries"

From PLplotWiki
Jump to: navigation, search
(QHull Library)
(QHull Library)
Line 5: Line 5:
 
* Download [http://www.qhull.org/download/qhull-2003.1.zip QHull for windows]
 
* Download [http://www.qhull.org/download/qhull-2003.1.zip QHull for windows]
 
* Unzip qhull package in a suitable place
 
* Unzip qhull package in a suitable place
* Copy the custom CMakeLists.txt into the new directory (qhull-2003.1)
+
* Copy the custom [[Text:CMakeLists.txt]] into the new directory (qhull-2003.1)
 
* Cd into the new directory
 
* Cd into the new directory
 
* Than (e.g. for MSVC):
 
* Than (e.g. for MSVC):

Revision as of 12:54, 23 November 2006

In opposition to Linux, where installing development files for certain 3rd party libraries is only a matter of seconds (depending on the distribution), in Windows much more work needs to be done. In the following we provide instructions how to install 3rd party libraries with the corresponding development files so that the plplot library can use them.

QHull Library

The QHull library is needed for better grid calculation of 3d plots.

  • Download QHull for windows
  • Unzip qhull package in a suitable place
  • Copy the custom Text:CMakeLists.txt into the new directory (qhull-2003.1)
  • Cd into the new directory
  • Than (e.g. for MSVC):
mkdir build
cd build
cmake -G "NMake Makefiles" -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=local ..
nmake install
  • a static library will be built and the library and the include files will copied into local\lib and local\include respectively - it's not possible to build a shared library
  • set environment variables
set QHULLDIR=path-to\qhull-2003.1\build\local
set CMAKE_INCLUDE_PATH=%QHULLDIR%\include
set CMAKE_LIBRARY_PATH=%QHULLDIR%\lib

CMake is now able to find the qhull library and headers.

AGG Library

CD Library

GD Libary

Download the gd library for Windows from http://www.boutell.com/gd/ . The latest version is 2.0.33 (Windows dll). Unzip the archive to a suitable place. The package provides a dll and an import library for the MinGW compiler. To obtain an import library for the MSVC compiler run the makemsvcimport.bat batch file in a CLI with the correct environment settings for MSVC.

In order to let cmake find the gd library files you need to set environment variables (best in batch file - see above), e.g.

set GDLIBDIR=C:\DevZone\gdwin32
set CMAKE_INCLUDE_PATH=%GDLIBDIR%;%CMAKE_INCLUDE_PATH%
set CMAKE_LIBRARY_PATH=%GDLIBDIR%;%CMAKE_LIBRARY_PATH%

CMake should than be able to find the gd library and headers and the gd driver (png, gif, jpeg) will be automatically compiled into the library.

Freetype Library