Compiling RRDtool 1.1.x on Win32 (WinXP/Win2K with Visual C++):
---------------------------------------------------------------
-4/1/02 Jake Brutlag (jakeb@corp.webtv.net)
+5/14/02 Jake Brutlag (jakeb@corp.webtv.net)
These notes share some insight I gained compiling 1.1.x with
MS Visual C++ 6.0 (using project files). This information may or
the include path.
(4) Fonts are located in the %windir%\fonts, so the default font
is c:\winnt\fonts\cour.ttf.
+(5) libart requires a custom build step to generate art_config.h; this
+is done manually via the commands:
+cl -I..\..\confignt gen_art_config.c
+gen_art_config.exe > art_config.h
Currently, to compile rrd.lib and rrdtool.exe using
the MSVC++ project files, first start MSVC++ 6.0. Open the rrdtool
/* Define if you have the <math.h> header file. */
#define HAVE_MATH_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_STAT_H 1
+
#define rrd_realloc(a,b) realloc((a), (b))
#define snprintf _snprintf
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /W3 /GX /I "..\..\confignt" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "LIBART_COMPILATION" /YX /FD /c
-# SUBTRACT CPP /O<none>
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# End Source File
# Begin Source File
+SOURCE=.\gen_art_config.c
+
+!IF "$(CFG)" == "libart - Win32 Release"
+
+# PROP Ignore_Default_Tool 1
+# Begin Custom Build
+InputPath=.\gen_art_config.c
+
+"art_config.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ cl -I..\..\confignt gen_art_config.c
+ gen_art_config.exe > art_config.h
+
+# End Custom Build
+
+!ELSEIF "$(CFG)" == "libart - Win32 Debug"
+
+# PROP Ignore_Default_Tool 1
+# Begin Custom Build
+InputPath=.\gen_art_config.c
+
+"art_config.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ cl -I..\..\confignt gen_art_config.c
+ gen_art_config.exe > art_config.h
+
+# End Custom Build
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
SOURCE=".\libart-features.c"
# End Source File
# End Group
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /I "..\libraries\libpng-1.2.0" /I "..\libraries\zlib-1.1.4" /I "..\libraries\libart_lgpl-2.3.7" /I "..\libraries\freetype-2.0.5\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_CTYPE_DISABLE_MACROS" /FD /c
-# SUBTRACT CPP /O<none> /X /YX
+# SUBTRACT CPP /X /YX
# ADD BASE RSC /l 0x100c
# ADD RSC /l 0x100c
BSC32=bscmake.exe
# End Source File
# Begin Source File
+SOURCE=.\rrd_afm.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\rrd_afm_data.c
+# End Source File
+# Begin Source File
+
SOURCE=.\rrd_create.c
# End Source File
# Begin Source File
SOURCE=.\rrd_update.c
# End Source File
+# Begin Source File
+
+SOURCE=.\rrd_xport.c
+# End Source File
# End Target
# End Project
int HandleInputLine(int argc, char **argv, FILE* out)
{
+#if defined(HAVE_OPENDIR) && defined (HAVE_READDIR)
DIR *curdir; /* to read current dir with ls */
struct dirent *dent;
+#endif
+#if defined(HAVE_SYS_STAT_H)
struct stat st;
+#endif
optind=0; /* reset gnu getopt */
opterr=0; /* no error messages */
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /I "..\libraries\libpng-1.2.0" /I "..\libraries\zlib-1.1.4" /I "..\libraries\libart_lgpl-2.3.7" /I "..\libraries\freetype-2.0.5\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_CTYPE_DISABLE_MACROS" /FD /c
-# SUBTRACT CPP /O<none> /YX
+# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x100c /d "NDEBUG"
# ADD RSC /l 0x100c /d "NDEBUG"
BSC32=bscmake.exe