[rrd-users] Compiling RRDTool 1.6.0 and RRDs.pm for Windows
Colin Franco
colin at digitalphoenix.co.zw
Thu Aug 18 21:18:33 CEST 2016
Hi Joe and Tobi,
Thank you for your in depth engagement and effective confirmation that despite any/many mistakes I made with my compile efforts the deck was stacked against my feeble c and perl skills. As a result of my efforts back in June I have VS2015 environment in place and, of course, some interest in achieving a successful compile against latest perl and VS releases.
What can I do to help?
Regards,
Colin
From: Joe Kane [mailto:jkane at mail.com]
Sent: Thursday, August 18, 2016 2:53 PM
To: Colin Franco
Cc: 'sholden'; rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] Compiling RRDTool 1.6.0 and RRDs.pm for Windows
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-RRDs-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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20160818/c33c6ade/attachment-0001.html>
More information about the rrd-users
mailing list