Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-08-23 Thread Peter
If I comment out the line, rrdtool graph is working: if (im->rrd_map){ //TODO: // check reason of error: // Unhandled exception at 0x77BBF636 (ntdll.dll) in rrdtool.exe: 0xC374: a Heap was damaged (parameters: 0x77BDD338).

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-08-23 Thread Peter
Hi Tobi, I've made many changes to get Master compiled in Visual Studio. But running with command graph throw an exception in grrd_graph.c: int im_free(image_desc_t *im) { ... if (im->rrd_map){ >>g_hash_table_destroy(im->rrd_map); Unhandled exception at 0x77BBF636 (ntdll.dll) in

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Tobias Oetiker
Hi Peter, the whole win32 build things are contributed ... not necessarily consistant I am afraid ... especially getting master to build well on win32 would be neat lg tobi Today Peter wrote: > Hi Tobi, > in master/win32 there is no Visual Studio used and the dll is librrd-4.dll . > In branch

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Tobias Oetiker
Hi Peter, Today Peter wrote: > Hi Tobi, > now it is not possible to compile master with Visual Studio 2013 C++. > There are incompatibilities > http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B ie: many > explicit casts needed, keyword template not allowed, ... > > And set up the projec

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Peter
Hi Tobi, now it is not possible to compile master with Visual Studio 2013 C++. There are incompatibilities http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B ie: many explicit casts needed, keyword template not allowed, ... And set up the project to Standard C lead to other errors Error

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Tobias Oetiker
Hi Peter, Today Peter wrote: > Hi Tobi, > I forked new and cloned the master > But > master/rrd_rpncalc.c: > * RRDtool 1.4.3 Copyright by Tobi Oetiker, 1997-2010 > > 1.4/rrd_rpncalc.c: > * RRDtool 1.4.8 Copyright by Tobi Oetiker, 1997-2013 it does. the dates in the headers in the master bran

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Peter
Hi Tobi, I forked new and cloned the master But master/rrd_rpncalc.c: * RRDtool 1.4.3 Copyright by Tobi Oetiker, 1997-2010 1.4/rrd_rpncalc.c: * RRDtool 1.4.8 Copyright by Tobi Oetiker, 1997-2013 Master doesn't contain the last version? Peter -- View this message in context: http://rrd

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Peter
Hi Tobi, in master/win32 there is no Visual Studio used and the dll is librrd-4.dll . In branch 1.4/win32 the VS projects exists and the dll is rrdlib.dll. In master/win32 a rrdcgi.exe is created - not in 1.4/win32. Master/win32 and 1.4/win32 is complete different. How merge together? Also the imp

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Peter
Hi Tobi, it seems that I have to do first pull from master over branch 1.4, but that is not possible because many conflicts between 1.4 and master. Has master the last changes or branch 1.4? If master, so I have to begin from master and copy the missing win32 files to folder win32. Peter -- Vie

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Tobias Oetiker
Hi Peter, just added a few comments to your pull request cheers tobi Today Peter wrote: > Hi Tobi, > I have made the pull request on github.com to branch 1.4. > I used 1.4 because master didn't contained the visual studio projects. > > But in 1.4 there was no def file to export the symbols in rr

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-07-13 Thread Peter
Hi Tobi, I have made the pull request on github.com to branch 1.4. I used 1.4 because master didn't contained the visual studio projects. But in 1.4 there was no def file to export the symbols in rrdlib. I'v added a modified def from master. I assumed the latest version 1.4.8 is in branch 1.4. Bu

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-06-15 Thread Tobias Oetiker
Hi Peter, would you like to make this a pull request on github.com ? cheers tobi Today Peter wrote: > Hi Tobi, > below are the patch files from the actual clone of branch 1.4. > An new error occured in rrd_restore.c > Error 3 error C2440: '=' : cannot convert from 'void *' to > 'stdioXml

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-06-15 Thread Peter
Hi Tobi, below are the patch files from the actual clone of branch 1.4. An new error occured in rrd_restore.c Error 3 error C2440: '=' : cannot convert from 'void *' to 'stdioXmlReaderContext *' at the line: sctx = malloc(sizeof(*sctx)); I added a type cast. Peter diff --git "a/C:\\Users

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-05-10 Thread Peter
Hi Tobi, to comment out is only valid for Platform Toolset VS2013 ( possible also 2012 which I doesn't have installed). In VS2013 there are many additional functions in math.h ( also round). This work for VS2010 and VS2013: #if _MSC_VER < 1800 __inline int round(double a){ int x = (a + 0.5); re

Re: [rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-05-10 Thread Tobias Oetiker
Hi Peter, would you like to create a patch ? I bet the other windows users would be happy! https://www.github.com/oetiker/rrdtool-1.x cheers tobi Today Peter wrote: > Hi, > > I compiled successfully rrdtool-1.4.8 with Visual Studio 2013 after solving > the following 3 issues. At first pay at

[rrd-developers] Compile rrdtool-1.4.8 in Visual Studio 2013

2014-05-10 Thread Peter
Hi, I compiled successfully rrdtool-1.4.8 with Visual Studio 2013 after solving the following 3 issues. At first pay attention to WIN32-BUILD-TIPS.txt and load / copy all libraries. There are 3 issues left: 1. == use a folder without spaces! Otherwise later come an post build event er