X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=NT-BUILD-TIPS.txt;h=0545116f56437dd390225facfee4e8c02c5da314;hb=110ae8b7e4893e9c641a8fcf9e787e2a0d4988ea;hp=882ee953769366cc589717f08afa7a4aebecb6df;hpb=5837606887a6d81e8b1f7588525cb1c8783fb62b;p=rrdtool.git diff --git a/NT-BUILD-TIPS.txt b/NT-BUILD-TIPS.txt index 882ee95..0545116 100644 --- a/NT-BUILD-TIPS.txt +++ b/NT-BUILD-TIPS.txt @@ -1,3 +1,38 @@ +Compiling RRDtool 1.1.x on Win32 (WinXP/Win2K with Visual C++): +--------------------------------------------------------------- +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 +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. (6/19/02) At Kerry Calvert's suggestion +this setting was moved to confignt\config.h. +(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 +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) @@ -28,7 +63,7 @@ Is a library missing? But it does not stop with an error... 4. nmake test (You must have Visual C++ on the machine!) -After these steps it generates the test files (gifs and rrds), +After these steps it generates the test files (svgs and rrds), and they seem to be good. The real problem in the shared perl modul is the following: