<div dir="ltr"><div><div><div><div><div>Hi Tony,<br><br></div>Thanks for sharing this information. Today, I was also finally able to build the whole OS stack with the 64-bit MinGW cross-compiler that comes bundled with the 64-bit version of CYGWIN. I&#39;ll see if I can repeat your steps in that environment. I want to be able to do the builds in CYGWIN so I can do unattended remote builds and generate installers automatically. <br>

<br></div>By the way, I saw the same failure in the Cgl unit test as you. It is triggered because the objective function value gets slightly smaller after adding a cut in one of the tests, which technically should not happen, but it&#39;s most likely just an issue with numerics. We probably just need to relax the requirements of that test a little.<br>

<br></div>Improved handling of dependencies is definitely on the TODO list---it&#39;s needed also for building Python extensions. Thanks again!<br><br></div>Cheers,<br><br>Ted <br><br><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Thu, Oct 31, 2013 at 1:49 AM, Tony Kelman <span dir="ltr">&lt;<a href="mailto:kelman@berkeley.edu" target="_blank">kelman@berkeley.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:&#39;Calibri&#39;">
<div>A few people have asked about building Bonmin or other COIN-OR projects as 
Windows dll’s using MinGW compilers and running the standard configure scripts 
in MSYS. Shared libraries are currently disabled by BuildTools configure when 
using MinGW compilers, but I’ve been looking into how much would need to change 
to make it possible. I’m happy to report I’ve succeeded, and anyone interested 
can have a look at what I needed to do (and try to reproduce my steps) in this 
shell script: <a title="https://gist.github.com/7244436" href="https://gist.github.com/7244436" target="_blank">https://gist.github.com/7244436</a></div>
<div> </div>
<div>This builds and passes all unit tests using TDM-GCC MinGW-64, and all but 
one on standard 32-bit MinGW. There’s a failed assertion during Cgl’s unit tests 
on 32-bit in CglZeroHalf that I may want to look into in more detail. I can post 
the binaries for people to try out if there’s interest.</div>
<div> </div>
<div>I needed to make a few little changes to configure scripts and some of the 
Makefiles, and configure and link with several additional flags. The most 
important difference is that Windows dll’s do not allow undefined references, so 
the dependencies have to be explicitly specified and built in a specific order. 
The baseline Makefiles from configure don’t include all of this information or 
respect the dependency ordering as strictly as they would need to for this to be 
further automated.</div>
<div> </div>
<div>I’d be happy to discuss with Stefan or others how the build system could be 
improved to make this process simpler. Improved handling of dependencies has 
been requested on other platforms as well, for example in <a href="https://projects.coin-or.org/BuildTools/ticket/105" target="_blank">https://projects.coin-or.org/BuildTools/ticket/105</a>.</div><span class="HOEnZb"><font color="#888888">
<div> </div>
<div>-Tony</div>
<div> </div></font></span></div></div></div>
<br>_______________________________________________<br>
Bonmin mailing list<br>
<a href="mailto:Bonmin@list.coin-or.org">Bonmin@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/bonmin" target="_blank">http://list.coin-or.org/mailman/listinfo/bonmin</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Dr. Ted Ralphs<br>Associate Professor, Lehigh University<br>(610) 628-1280<br>ted &#39;at&#39; lehigh &#39;dot&#39; edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>


</div>