[Developers] Everything needed to build ADMB in Windows; one small bug (Johnoel please fix)

Jon Schnute schnutej-dfo at shaw.ca
Sat Jan 11 11:41:39 PST 2014


Thanks for your reply, Johnoel. I'm pretty sure we're working with different
versions of the Gnu (mingw) software. My comments apply only to the toolkits
(ADMBtools) posted at http://code.google.com/p/pbs-admb/downloads/list.
Previously, I was working with ADMB release 1483, but I've now tried the
latest release 1502 (of trunk).  In both cases, I now see that the attempt
to use the command:

 

make  CXXFLAGS=-m32 LDFLAGS=-m32 shared

 

fails for a bunch of complicated reasons when I use ADMBtools64.
Fortunately, ADMBtools64 gives 64-bit code by default, so that a simple
"make" command works fine. Similarly, ADMBtools32 works fine with "make". So
I'll just stick with the two distinct toolkits that I already have, and I
won't attempt to use the options for CXXXFLAGS and LDLFLAGS.

 

Because new Windows computers typically have a 64-bit operating system with
at least 4GB of RAM, it seems likely that 32-bit versions of ADMB will soon
become irrelevant to current technology.

 

I think that an official collection of ADMBtools for Windows will greatly
assist new users of ADMB on the Windows platform. For that reason, I hope
that you and other developers will look seriously at the collections we've
built here in Nanaimo. I enclose two PDF files that describe precisely the
sources for all this software.

 

Can you please give me the authority to post the toolkits, ADMB binary
libraries, and relevant documentation on the ADMB Project website?
(Obviously, I'll have to learn something about building web pages in that
context.) 

 

Thanks,

 

Jon

 

PS - And let's not forget that Wade Cooper managed to find the first
collection of official Gnu tools that can build ADMB 11.1 in 64-bit.
ADMBtools64 comes from his suggestions.

 

PPS - Current USB external drives cost about $70 per terabyte. A Windows
user can store everything needed (including the Gnu tools) to build and run
ADMB in about 1 gigabyte at a cost of roughly 7 cents or less.

 

From: Johnoel Ancheta [mailto:johnoel at hawaii.edu] 
Sent: January-10-14 6:49 PM
To: Jon Schnute
Cc: developers at admb-project.org; Grandin, Chris; Haigh, Rowan; Cooper, Wade
Subject: Re: Everything needed to build ADMB in Windows; one small bug
(Johnoel please fix)

 

Seems to work at least for me.

 

Can you try with the current trunk revision?

 

If it still fails, provide steps and output for me to see. 

 

On Fri, Jan 10, 2014 at 1:19 PM, Jon Schnute <schnutej-dfo at shaw.ca> wrote:

Before Christmas, I put together everything needed to build and run ADMB in
Windows (32-bit or 64-bit). I posted all the files on the web site for the R
package PBSadmb. See:

 

http://code.google.com/p/pbs-admb/downloads/list

 

The two big toolkits (ADMBtools32 and ADMBtools64, in 7z compression which
is much better than zip) each have size less than 150 MB, not that big in
the scheme of things. They do, however, take some time to download.

 

Each toolkit includes a PDF file that explains precisely where all the
software came from. I intend to write an installation guide, but the
procedure is quite simple:

1. Decide between 32- and 64-bit; 

2. download two files (ADMBtools32 and ADMBlib32, or ADMBtools64 and
ADMBlib64); 

3. uncompress each one to a suitable path;

4. tweak the system path accordingly.

 

***** Johnoel please fix the bug below:

 

By default, ADMBtools64 makes a 64-bit version, but the same tools would
make a 32-bit version if the make file supported the following command
suggested by Johnoel:

 

make  CXXFLAGS=-m32 LDFLAGS=-m32 shared

 

In fact, this does produce 32-bit ADMB libraries, but the script "admb.cmd"
fails to include the parameter "-m32" in the compile and link steps. As a
result, ADMB won't build 32-bit examples correctly, even though a 32-bit
binary ADMB library is available.

 

Once this bug is fixed, I'll drop ADMBtools32 and write an installation
guide that tells users how to use ADMB on Windows with these files. That
will put an end to the need for users to assemble the "mingw" files needed
to build and use ADMB.

 

I hope you all had great holidays. Best wishes for 2014!

 

Jon

 

PS to Johnoel - If you give me the necessary permissions, I can put my files
on the ADMB Project page, where they should ideally be located. Chris is
really busy right now, or he would do it. 

 

From: Johnoel Ancheta [mailto:johnoel at hawaii.edu] 
Sent: December-13-13 1:56 PM
To: Jon Schnute
Subject: Re: How to build admb source with mingw 64 - finally!

 

GNUwin32 seems to be inactive, but the existing tools work very well.

 

Chris and I are working on the final target shared in 64 bit mode using
Rtools.  

 

Can I bug once again to try

 

C:\admb\> utilities\make  CXXFLAGS=-m64 LDFLAGS=-m64 shared

 

If it works for 3...

 

Johnoel

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140111/fa7bdf4b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ADMBtools32-01.pdf
Type: application/pdf
Size: 67760 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140111/fa7bdf4b/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ADMBtools64-01.pdf
Type: application/pdf
Size: 71429 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140111/fa7bdf4b/attachment-0003.pdf>


More information about the Developers mailing list