[rrd-users] Compiling RRDTool 1.6.0 and RRDs.pm for Windows
Tobias Oetiker
tobi at oetiker.ch
Thu Aug 18 16:19:26 CEST 2016
Hi Joe,
please make a PR from your findings, so that I can add these to the
1.6.1 release ... note that extra files to be included in the
tarbal just have to be added in the Makefile.am EXTRA_DIST line
that at the moment only includes 2 files from the win32 directory
I have unfortunately to data not found anyone willing to finance
good windows rrdtool packaging and stuff ... so all I do is
integrate PRs I get from people who work on it ...
cheers
tobi
Today Joe Kane wrote:
> It looks like the tarball distribution for both the 1.5.x and 1.6.x releases
> of RRDTOOL is missing several files from the WIN32 directory. According to
> the release notes, For 1.5.x and 1.6x the win32 build process was reworked,
> and apparently has been configured with VS2013. I hadn't previously tried
> to build these branches (and I have VS2008).
>
> For the error that you have noted, the compiler is complaining because files
> referenced in the MAkefile.MSC(like *.def files, *.rc files etc for the dlls
> and resources) are just missing from the win32 directory, as are the VS
> project/solution (GUI build) files. When I took a look at the 1.6.x
> repository on GIT, those files are present.
>
> So I grabbed the relevant files from GIT /win32/ and tried to build for
> 1.6.x. The Gui build based VS files (rrd.sln etc) are written by VS2013
> and VS2008 won't load them (not backward compatible). So I tried to build
> right from the Makefile.msc again. It gets past this initial error (d"on't
> know how to make rddtool-4.def"), but I had to make some some tweaks for
> VS2008 versus VS2013 (Rc.exe in 2008 doesn't support the /nologo flag, this
> was added after vs2008).
>
> I have run into compiler errors though and haven't sorted through them
> all. Some are clearly related to VS2013 assumption. For example, VS2008 is
> not 'C99' compliant so doesn't include STDINT.h, (which is referenced in one
> of the source files in 1.6.x). I know that VS2013 is C99 compliant and so
> has STDINT.h., but VS2008 does not. I sorted this one out by sourcing
> STDINT.h.
>
> There are other uglier compile errors for coercion pointer issues (compiler
> wants an explicit cast) and syntax error issues in rrd_client.c . These may
> be due to other setting/compiler differences between 2008 and 2013 but
> probably of out my hack and slash paygrade.
>
> I went back to my last successful build (1.4.8) on win32, and it mostly
> built without too much issue (one small rrd_config.h touch, I think) on
> VS2008. It also didn't have a build structured like above, so had less
> extra VS support file dependences. The 1.4.x tarballs all include the full
> complement of win32 files.
>
> So, I think for one, the tarball dist needs to be looked at. I will
> probably keep plodding through the compile attempt, but maybe others more
> versed can take a look and comment relative to a successful win32 build.
>
>
>
> Sent: Monday, June 13, 2016 at 12:33 PM
> From: "Colin Franco" <colin at digitalphoenix.co.zw>
> To: 'sholden' <sholden at asc.edu>, rrd-users at lists.oetiker.ch
> Subject: Re: [rrd-users] Compiling RRDTool 1.6.0 and RRDs.pm for Windows
> Perhaps my mail was unclear. At the point when I get that error I am also
> using C++. It is comforting to know that at least one other person has
> reached the same wall as me.
>
> Regards,
>
> Colin
>
> -----Original Message-----
> From: rrd-users
> [mailto:rrd-users-bounces+colin=digitalphoenix.co.zw at lists.oetiker.ch] On
> Behalf Of sholden
> Sent: Monday, June 13, 2016 3:58 PM
> To: rrd-users at lists.oetiker.ch
> Subject: Re: [rrd-users] Compiling RRDTool 1.6.0 and RRDs.pm for Windows
>
> Colin, thanks for asking. I am also trying to compile the RRDTool 1.6.0 for
> Windows and have gotten stuck at the error “don't know how to make
> './win32/librrd-4.def'”. Any help from those answering this question is
> appreciated (although I am trying to use C++ instead of PERL).
>
>
>
> --
> View this message in context:http://rrd-mailinglists.937164.n2.nabble.com/Compiling-RRDTool-1-6-0-and-RR
> Ds-pm-for-Windows-tp7583374p7583375.html
> Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch tobi at oetiker.ch +41 62 775 9902
More information about the rrd-users
mailing list