<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi All,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Since Kish buoyed my hopes on this, I hacked away, with some
    modest success.<br>
    At least on the "cbc-only" tarball (didn't try an entire coin
    build), this works under linux<br>
    <br>
    &nbsp;./configure CC=i686-pc-mingw32-gcc CXX=i686-pc-mingw32-g++
    AR=i686-pc-mingw32-ar RANLIB=i686-pc-mingw32-ranlib CFLAGS='-O3
    -static-libgcc' CXXFLAGS='-O3 -static-libgcc -static-libstdc++'
    --host=i386<br>
    <br>
    make<br>
    make install<br>
    <br>
    Quick tests under wine work OK.<br>
    <br>
    Notes:<br>
    1) No success with the canned script <i>mingw32-configure</i> : I
    think it gets the archiver (ar) wrong (at least)<br>
    2) Unsure what flavours are best. i586? i386?<br>
    3) Unsure if -static-libgcc -static-libstdc++ are a good idea. At
    least for me, this enables a static cbc to be called under wine
    without a dll<br>
    headache. Others probably have much better ideas.<br>
    4) Clearly won't have the MVS support Ted likes, but others like
    myself may not care especially for that, and may like at least a
    documented working case.<br>
    5) Didn't see any issues re wide characters. Don't know what
    happened there.<br>
    <br>
    Cheers,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; James.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Kish Shen wrote:<br>
    </div>
    <blockquote cite="mid:5112CCE7.6060906@cisco.com" type="cite">
      <pre wrap="">Sorry for the late response to this....

I have been cross-compile CBC/CLP for Windows on Linux using MinGW (and 
MinGW-W64 for 64 bit windows) for several years now.

We use CBC/CLP in our ECLiPSe platform, for an interface to MIP solvers. 
On Windows, ECLiPSe itself is also cross-compiled with the same MinGW 
compiler, so we do not have to worry about compatibility issues with 
Visual Studio.

ECLiPSe itself is written in C, and aside from being able to load .dll 
files compiled with MinGW, we have had no problems loading thirdparty 
.dll files (which I assume are not compiled with MinGW), and we were 
even able to load a .lib file (for MySQL), after some hacking. However, 
I suspect loading C++ files compiled with Visual Studio might be a 
problem, as you cannot even load a C++ file compiled with a different 
version of gcc from the host program.

Regards,

Kish


On 30/01/2013 21:40, <a class="moz-txt-link-abbreviated" href="mailto:James.Gunning@csiro.au">James.Gunning@csiro.au</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Bo,Ted, All,
     Thanks for the info. As you say, it looks rather nontrivial (and your compatibity criteria is a harder
target than my modest efforts in other contexts). As Ted says, looks like a deal of hard work.
I just thought it might be useful, if like, me you like simple ways of building for multiple targets...
Regards,
     James.

________________________________________
From: Bo Jensen [<a class="moz-txt-link-abbreviated" href="mailto:jensen.bo@gmail.com">jensen.bo@gmail.com</a>]
Sent: Thursday, January 31, 2013 6:08 AM
To: Ted Ralphs
Cc: Gunning, James (CESRE, Clayton North); <a class="moz-txt-link-abbreviated" href="mailto:cbc@list.coin-or.org">cbc@list.coin-or.org</a>
Subject: Re: [Cbc] Pre-built CBC binaries for trunk?, Also cross-compiling

I did some experiments cross compiling with mingw some years ago, I don't remember the exact details other than it failed on lack of some parts like wchar_t and other features I needed. My conclusion was it was not worth the trouble.

<a class="moz-txt-link-freetext" href="http://www.mingw.org/wiki/wide_characters">http://www.mingw.org/wiki/wide_characters</a>

On Wed, Jan 30, 2013 at 7:58 PM, Ted Ralphs &lt;<a class="moz-txt-link-abbreviated" href="mailto:ted@lehigh.edu">ted@lehigh.edu</a><a class="moz-txt-link-rfc2396E" href="mailto:ted@lehigh.edu">&lt;mailto:ted@lehigh.edu&gt;</a>&gt; wrote:
Here are (some of) the additional details I was referring to:

  <a class="moz-txt-link-freetext" href="http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs">http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs</a>

Last time I tried, it seemed onerous to get all of this working in a completely automatic way, but it would be great.

Cheers,

Ted


On Wed, Jan 30, 2013 at 12:36 PM, Ted Ralphs &lt;<a class="moz-txt-link-abbreviated" href="mailto:ted@lehigh.edu">ted@lehigh.edu</a><a class="moz-txt-link-rfc2396E" href="mailto:ted@lehigh.edu">&lt;mailto:ted@lehigh.edu&gt;</a>&gt; wrote:
I have played with cross-compilation, but it was never exactly clear to me how to build libraries that are compatible with Visual Studio using MinGW. There seem to be some additional steps involved besides just straight compiling with the autotools. If this is indeed a viable option and you can advise, that would be great!

Ted


On Wed, Jan 30, 2013 at 1:54 AM, &lt;<a class="moz-txt-link-abbreviated" href="mailto:James.Gunning@csiro.au">James.Gunning@csiro.au</a><a class="moz-txt-link-rfc2396E" href="mailto:James.Gunning@csiro.au">&lt;mailto:James.Gunning@csiro.au&gt;</a>&gt; wrote:
Hi All,
       While we're on the topic, which interests me, has anyone succeeded in building the
windows versions by mingw cross-compiling?
On Fedora linux, at least, these cross compilers (&amp; packages) come with names like
i686-pc-mingw-g++
and they have been very useful to me in building windows libs etc (in other codes) without the Visual Studio dramas etc.
Perhaps of interest to anyone wanting to assemble scripts for automatic nightly builds, or the like....
Best wishes all,
         James.

________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:cbc-bounces@list.coin-or.org">cbc-bounces@list.coin-or.org</a><a class="moz-txt-link-rfc2396E" href="mailto:cbc-bounces@list.coin-or.org">&lt;mailto:cbc-bounces@list.coin-or.org&gt;</a> [<a class="moz-txt-link-abbreviated" href="mailto:cbc-bounces@list.coin-or.org">cbc-bounces@list.coin-or.org</a><a class="moz-txt-link-rfc2396E" href="mailto:cbc-bounces@list.coin-or.org">&lt;mailto:cbc-bounces@list.coin-or.org&gt;</a>] On Behalf Of Stuart Mitchell [<a class="moz-txt-link-abbreviated" href="mailto:stu@stuartmitchell.com">stu@stuartmitchell.com</a><a class="moz-txt-link-rfc2396E" href="mailto:stu@stuartmitchell.com">&lt;mailto:stu@stuartmitchell.com&gt;</a>]
Sent: Tuesday, January 29, 2013 8:30 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:cbc@list.coin-or.org">cbc@list.coin-or.org</a><a class="moz-txt-link-rfc2396E" href="mailto:cbc@list.coin-or.org">&lt;mailto:cbc@list.coin-or.org&gt;</a>
Subject: Re: [Cbc] Pre-built CBC binaries for trunk?

Would be nice to have up to date osx versions as well.


On Tue, Jan 29, 2013 at 6:11 AM, Watson, Jean-paul &lt;<a class="moz-txt-link-abbreviated" href="mailto:jwatson@sandia.gov">jwatson@sandia.gov</a><a class="moz-txt-link-rfc2396E" href="mailto:jwatson@sandia.gov">&lt;mailto:jwatson@sandia.gov&gt;</a>&lt;<a class="moz-txt-link-freetext" href="mailto:jwatson@sandia.gov">mailto:jwatson@sandia.gov</a><a class="moz-txt-link-rfc2396E" href="mailto:jwatson@sandia.gov">&lt;mailto:jwatson@sandia.gov&gt;</a>&gt;&gt; wrote:
Not being one who wants to deal with Visual Studio and Windows builds, are there pre-built CBC binaries (nightly) for trunk available? The binaries at <a class="moz-txt-link-abbreviated" href="http://www.coin-or.org/download/binary/Cbc">www.coin-or.org/download/binary/Cbc</a><a class="moz-txt-link-rfc2396E" href="http://www.coin-or.org/download/binary/Cbc">&lt;http://www.coin-or.org/download/binary/Cbc&gt;</a><a class="moz-txt-link-rfc2396E" href="http://www.coin-or.org/download/binary/Cbc">&lt;http://www.coin-or.org/download/binary/Cbc&gt;</a> are strictly released / tagged versions.

Thanks!

Jean-Paul



--
Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru
<a class="moz-txt-link-abbreviated" href="http://www.stuartmitchell.com">www.stuartmitchell.com</a><a class="moz-txt-link-rfc2396E" href="http://www.stuartmitchell.com">&lt;http://www.stuartmitchell.com&gt;</a><a class="moz-txt-link-rfc2396E" href="http://www.stuartmitchell.com">&lt;http://www.stuartmitchell.com&gt;</a>

_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><a class="moz-txt-link-rfc2396E" href="mailto:Cbc@list.coin-or.org">&lt;mailto:Cbc@list.coin-or.org&gt;</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>



--
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280&lt;tel:%28610%29%20628-1280&gt;
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted<a class="moz-txt-link-rfc2396E" href="http://coral.ie.lehigh.edu/~ted">&lt;http://coral.ie.lehigh.edu/~ted&gt;</a>



--
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280&lt;tel:%28610%29%20628-1280&gt;
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted<a class="moz-txt-link-rfc2396E" href="http://coral.ie.lehigh.edu/~ted">&lt;http://coral.ie.lehigh.edu/~ted&gt;</a>

_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><a class="moz-txt-link-rfc2396E" href="mailto:Cbc@list.coin-or.org">&lt;mailto:Cbc@list.coin-or.org&gt;</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>



_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>

</pre>
      </blockquote>
      <pre wrap="">
_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>