<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">Thanks Arni for providing a way forward and as always, some careful analysis.</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">
<br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">I have both options (msys, and normal commandline) on multiple computers option 1 worked fine following the instructions (and it also worked well for one of my post-docs who succeeded quickly on his first ever try).  And that was on windows 8 and windows 7.</div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">As far as normal users, from my point of view the simplicity of Arni's IDE would detract if it came in too many flavors (and I see getting the IDE out as a high priority for a number of users up and down the hall here).</div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">Cheers,</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">
Jim</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 5:07 PM, Arni Magnusson <span dir="ltr"><<a href="mailto:arnima@hafro.is" target="_blank">arnima@hafro.is</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here are some thoughts about ADMB and GCC for Windows in the long term, not necessarily related to the ongoing release. Essentially, the core team needs to decide between two options:<br>
<br>
1. To build ADMB with MinGW from scratch, the user only needs a GCC compiler, for example the c:/gnu/gcc472 that comes with ADMB-IDE. This is pretty much how things are now.<br>
<br>
2. To build ADMB with MinGW from scratch, the user needs the MSYS Linux emulator, a system that provides a Bash shell and behaves like Linux. This is how things were at some point.<br>
<br>
As far as I can tell, the pros and cons of Option 1 (MSYS) are the following.<br>
<br>
<br>
Pros:<br>
<br>
We can then use the same makefile tree for Windows and Linux. This should result in a makefile tree that is easier to understand and maintain.<br>
<br>
<br>
Cons:<br>
<br>
MSYS intertwines the GCC compiler (170 MB) with lots of other stuff (another 170 for a total of 340 MB), like Perl and its own package manager. So it would probably not be a good idea to include the entire MSYS system inside the ADMB-IDE installer, right?<br>

<br>
So if we take Option 2, users who already have c:/gnu/gcc472 (created by ADMB-IDE) would need to install MSYS as well, just to build ADMB, even though they already have g++ on their machine. They would now have (at least) 2 installed C++ compilers, maybe 2 installed Perl interpreters, etc. Some potential for confusion and software conflicts.<br>

<br>
One option would be to offer ADMB-IDE-mini, which would include Emacs but not GCC, intended for users who have MSYS installed. With 64 bits and zips, this would mean a lot of confusing IDE distros.<br>
<br>
Another option would be to offer only ADMB-IDE-mini. Then ADMB-IDE would no longer be plug-and-play, but rather assume that GCC is already installed and configured. This would be a big step backwards for ADMB beginners who have little experience with compilers or modifying their PATH. It's hard to enough to get an introductory workshop up and running as it is.<br>

<br>
<br>
Conclusion:<br>
<br>
These are big pros and cons. Option 1 is nice for users (ADMB can be built with a minimal g++ compiler, no need for anything else), while Option 2 is nice for the core team (simpler makefiles).<br>
<br>
One possible solution would be to embrace MSYS and include it inside the ADMB-IDE installer, along with Perl, the MSYS package manager, and the kitchen sink. Disk space is cheap - and maybe it's safe to remove everything from c:/mingw/var/cache before building the ADMB-IDE installer?<br>

<br>
The current ADMB-IDE installer (admb-ide-101-win32.exe) is "only" 74 MB, so I'm by no means convinced that including MSYS inside it is the way to go. Maybe it's best to keep the installer minimal, and just let the fraction of users who want to build ADMB from scratch have both c:/gnu/gcc472 and c:/mingw on their computer. Or stay with Option 1 and just make small improvements to the current makefiles to provide Option 2 as well.<br>

<br>
<br>
Let's continue to explore this, after the current version release is finished.<br>
<br>
<br>
Arni<br>
<br>
<br>
<br>
On Mon, 22 Apr 2013, Chris Grandin wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
If you download MinGW and check off all the check boxes on the install (include MSYS and developer tools), and include c:\MinGW\bin;c:\MinGW\msys\1.<u></u>0\bin in your PATH, then you can just open the MinGW shell and run the linux compile commands as written in the README file to build the source.  This is how I did it from the start and it worked great.  This method also avoids having to maintain utilities/minGW parts of the project (MinGW parts of the README could just say "Open a MinGW MSYS shell and follow linux commands").  No external utilities that we need to keep track of are required when you do it this way.<br>

<br>
I have reverted to revision 767, before all the changes happened because minGW will not compile the source correctly now. It will compile and run the samples but will not link to the contrib libaries properly.  Note there are no tests for contrib linking so it appears A-OK on the testing machines.<br>

<br>
I'd be happy to write up this method up on the webpage if we can revert to a working copy!<br>
<br>
Chris<br>
<br>
<br>
<br>
On Mon, 22 Apr 2013, Johnoel Ancheta wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Arni,<br>
<br>
We should press on and get this release out.  I'm going to need some help with documentation.<br>
<br>
Johnoel<br>
</blockquote>
<br>
</blockquote>
______________________________<u></u>_________________<br>
Developers mailing list<br>
<a href="mailto:Developers@admb-project.org" target="_blank">Developers@admb-project.org</a><br>
<a href="http://lists.admb-project.org/mailman/listinfo/developers" target="_blank">http://lists.admb-project.org/<u></u>mailman/listinfo/developers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><p><font face="trebuchet ms, sans-serif"><a name="SafeHtmlFilter_SafeHtmlFilter_SafeHtmlFilter_SafeHtmlFilter_SafeHtmlFilter__MailAutoSig">James
Ianelli<br></a>NMFS/NOAA Building 4<br>7600 Sand Pt Way NE<br>Seattle WA 98115</font></p><p></p>

<p><font face="trebuchet ms, sans-serif"> 206 526 6510</font></p><p></p></div>
</div>