From: Peter R. <p.r...@sh...> - 2011-03-18 11:09:22
|
On 18/03/11 10:09, Michael T. wrote: >> OK. Got mpatrol to build with the static lib, as well as an example >> program. Many thanks. >> >> BTW: Irritatingly, the makefile does not have an 'install' target - >> copying has to be done manually - and there is no 'check' target to >> exercise the multitude of supplied test programs. Assuming I get on with >> mpatrol, would a patch to the mingw32 makefile be appropriate? >> >> P. > What version did you manage to build? > I tried to build the AUTOTOOLed version produced by Vincent, but got stuck and my posts on this list haven't > been answered, yet. > I also tried to build several other versions from the mpatrol svn repository with the mingw makefile, but always got stuck > only with libmatrol.a and several .o files. > I also tried the binary 1.4.8 version buid for mingw, managed to make it work, however the basic example .log file > was wrong and I found an explanation on the mpatrol mailing list archives - that one should use the same comipler for compiling mpatrol and his code. So downloading mpatrol binaries doesn't seem to be a good solution. > I tried to to compile with my old mingw installation as well as with a fresh automated (complete) installation, using gcc 4.5.2 with no success. > > I understand I am not posting any particular outputs. I tried to do it with the autotooled version which seemed to me the most *almost successful* attempt. > I also tried these steps http://old.nabble.com/Re%3A-Building-mpatrol-p30610701.html > with no success. It seems to me that those dependencies (mentioned by Keith) are already included in the latest automated installer, however I installed them anyway (Am I right that by installing those particular packages is meant simply copying them to appropriate directories?) modified the makefile and still got the undefined reference to libintl_.... > > I've been working for several years with libraries like gtk, gtkdatabox, goocanvas, most recently OpenCV. > I always managed to compile them and make them work with my MinGW installation, but I can't make the mpatrol library work. Perhaps I'm doing some silly mistake, I don't know. But as far as I'm concerned mpatrol is the best memory checker for windows available and I really need to make it work :). > > Please help, I can't seem to make this on my own. > > Michael > Hi Michael I just downloaded the latest version (v 1.5.1) from the SVN trunk and ignored the autotooled branch. Other than a few library dependencies (which may now have been added as defaults in MinGW), it worked first time! (So annoying when people say things like that, isn't it!) Unfortunately, the download version on the mpatrol site is 1.4.8 - same as the MinGW site - and has not been updated although docs are for v 1.5.1. (One issue that I have not had a chance to examine is that linking with against the DLL does not seem to generate a log file. But not yet wholly convinced that isn't my fault - haven't spent enough time on that.) I have added a complete install target to the makefile and was looking at adding a check target but my due to my limited knowledge of how to construct make recipes I didn't get very far, and then got diverted onto fire fighting something else. (<\flame-shield-on> The exercise confirmed why I don't use make. Awful syntax! <\flame-shield-off>) If you have any experience of writing make recipes and can advise how to implement the check target, I am happy to send you a zipped version of what I have off-list. It would be nice to update the version on the MinGW site. Peter |