Updated/added MVSC++ 6.0 project files for compilation of
[rrdtool.git] / NT-BUILD-TIPS.txt
index 882ee95..0354f50 100644 (file)
@@ -1,3 +1,33 @@
+Compiling RRDtool 1.1.x on Win32 (WinXP/Win2K with Visual C++):
+---------------------------------------------------------------
+4/1/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
+may not be accurate at the time you are reading this.
+
+(1) freetype and rrdtool cannot use precompiled headers (which are
+enabled by default for MSVC++ projects).  MSVC++ 6.0 does not
+support precompiled headers if #include directives contain MACROS.
+(2) Compile Release build with Default optimization, not the
+Maximize Speed optimization. I encountered some strange errors
+(related to argument processing for complex commands like graph--
+perhaps the getopt stuff is too blame) with Maximize Speed.
+(3) libart relies upon config.h (ostensibly generated by the
+configure script-- but of course not on Win32 platforms). ..\..\confignt
+(which contains a static Win32 version of config.h) should be on
+the include path.
+(4) Fonts are located in the %windir%\fonts, so the default font
+is c:\winnt\fonts\cour.ttf.
+
+Currently, to compile rrd.lib and rrdtool.exe using
+the MSVC++ project files, first start MSVC++ 6.0. Open the rrdtool
+workspace (rrdtool.dsw in the src directory). The active project/
+configuration should be rrdtool-Win32 Release. Select Rebuild All
+from the Build menu. The static link library (rrd.lib) will
+be generated in src\release directory and executable will be generated
+in the src\toolrelease directory.
+
 Compiling RRDtool on NT ... work in progress
 ---------------------------------------------------------------
                          by Tamas Kovacshazy (khazy@mit.bme.hu)