From d067fd215b2fd7fde4d58299a806426b0f269246 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 2 Jul 2010 12:53:49 +0000 Subject: [PATCH] updated build tips for updated win32 port by Chris Larsen git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2099 a5681a0c-68f1-0310-ab6d-d61299d08faa --- WIN32-BUILD-TIPS.txt | 62 ++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 34 deletions(-) diff --git a/WIN32-BUILD-TIPS.txt b/WIN32-BUILD-TIPS.txt index b3fae96..c80acc8 100644 --- a/WIN32-BUILD-TIPS.txt +++ b/WIN32-BUILD-TIPS.txt @@ -1,52 +1,42 @@ Compiling RRDtool on Win32 with Microsoft Visual C++: --------------------------------------------------------------- +2010-06-04 Chris Larsen clarsen@euphoriaaudio.com 2008-03-12 Stefan Ludewig stefan.ludewig@exitgames.com Here are step by step instructions for building rrdlib.lib and rrdtool.exe version 1.3.5 and newer with Microsoft Visual Studio 2008 (9.0.x). -(1) Download and extract libraries rrdtool depends on: +(1) Create a folder named "contrib" in the directory where this text file is located. - - cairo: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.0-1_win32.zip - and http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_1.8.0-1_win32.zip +(2) Download the following libraries that rrdtool depends on into this folder: - - glib: http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib_2.18.3-1_win32.zip - and http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib-dev_2.18.3-1_win32.zip + - cairo: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-3_win32.zip + and http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_1.8.10-3_win32.zip - - libpng: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.2.32-1_win32.zip - and http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng-dev_1.2.32-1_win32.zip + - glib: http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.24/glib_2.24.1-1_win32.zip + and http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.24/glib-dev_2.24.1-1_win32.zip - - libxml2: http://downloads.sourceforge.net/gnuwin32/libxml2-2.4.12-bin.zip?modtime=1009062000&big_mirror=1 - and http://downloads.sourceforge.net/gnuwin32/libxml2-2.4.12-1-lib.zip?modtime=1024783200&big_mirror=1 + - libpng: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.4.0-1_win32.zip + and http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng-dev_1.4.0-1_win32.zip - - pango: http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.22/pango_1.22.2-1_win32.zip - and http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.22/pango-dev_1.22.2-1_win32.zip + - libxml2: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2_2.7.7-1_win32.zip + and http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-dev_2.7.7-1_win32.zip - - zlib: http://www.zlib.net/zlib123-dll.zip + - pango: http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.28/pango_1.28.0-1_win32.zip + and http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.28/pango-dev_1.28.0-1_win32.zip -(2) Create a folder named "contrib" next to your rrdtool-folder. + - zlib: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib_1.2.4-2_win32.zip + and http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev_1.2.4-2_win32.zip + + - fontconfig: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_2.8.0-2_win32.zip + + - freetype: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype_2.3.12-1_win32.zip + + - expat: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat_2.0.1-1_win32.zip -(3) Copy the following folders and files from the downloaded archieves into - the contrib-folder, you just created: - - a) The folder "bin" from cairo_1.8.0-1_win32 and the folders "lib" and - "include" from cairo-dev_1.8.0-1_win32 into contrib/cairo. - - b) The folder "bin" from glib_2.18.3-1_win32 and the folders "lib" and - "include" from glib-dev_2.18.3-1_win32 into contrib/glib - - c) The folder "bin" from libpng_1.2.32-1_win32 and the folders "lib" and - "include" from libpng-dev_1.2.32-1_win32 into contrib/libpng - - d) The file "libxml2.dll" from libxml2-2.4.12-bin/bin and the file - "libxml2.lib" from libxml2-2.4.12-1-lib\lib into contrib/libxml2/lib and - the folder "include" from from libxml2-2.4.12-1-lib into contrib/libxml2 - - e) The folder "bin" from pango_1.22.2-1_win32 and the folders "lib" and - "include" from pango-dev_1.22.2-1_win32 into contrib/pango - - f) The folders "lib" and "include" and the file "zlib1.dll" into - contrib/zlib +(3) Extract all of the .zip files into the contrib folder. Do not extract each library into it's own + directory. We want all of the files merged into a structure consisting of "bin, include, lib..." + etc folders. (4) Open the Visual Studio 2008 Solution "rrd.sln" in the win32 folder of your rrdtool-folder and build either the project rrdlib (for the @@ -56,6 +46,10 @@ version 1.3.5 and newer with Microsoft Visual Studio 2008 (9.0.x). executable. These DLLs must be available on all hosts where rrdtool will run. +6/10/10 Chris +Updated project to include latest files and libraries. +Builds static or dynamic rrdlib + 5/1/05 Tobi to help windows deal with the reentrant versions of many unix calls link with win32comp.c -- 2.30.2