summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 78452ae)
raw | patch | inline | side by side (parent: 78452ae)
author | jake <jake@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 May 2002 21:52:58 +0000 (21:52 +0000) | ||
committer | jake <jake@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 May 2002 21:52:58 +0000 (21:52 +0000) |
index d163d3f195a81acc0e44e606f75bac15ed02d606..9c35d449f336d1e3704148320e7a942540efd0c4 100644 (file)
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
index 261f0e613e107e0069a10d78654961ae5c1157cd..4e4c37c7d6087b1f6b94fbea364daa7fa0d6e605 100644 (file)
/* 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
diff --git a/program/libraries/libart_lgpl-2.3.7/libart.dsp b/program/libraries/libart_lgpl-2.3.7/libart.dsp
index 2ba7fb3f5669cd3dab95800ec16f3099475e9756..14633f1b957da71ff03f07c661e14d494658ee37 100644 (file)
# 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
diff --git a/program/src/rrd.dsp b/program/src/rrd.dsp
index afb073d13e301ac1e92fb2436fe7d6ef8f9b137a..c0a8ab302c42aa311acd7861f9e518dea18e679b 100644 (file)
--- a/program/src/rrd.dsp
+++ b/program/src/rrd.dsp
# 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
diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 729652603e6a42319d5b8c8b5efb9100463e8d82..c4243557e6dd3d1816781b1c84d54b9131647b2d 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/src/rrd_tool.c
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 */
index d3bb360383eecab3ee6af60347bb452af59e3a69..b64e04f651a645076619c067902fd40719d80864 100644 (file)
--- a/program/src/rrdtool.dsp
+++ b/program/src/rrdtool.dsp
# 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