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

Jon Schnute schnutej-dfo at shaw.ca
Fri Jan 10 15:19:41 PST 2014

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:




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

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!




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


Can I bug once again to try


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


If it works for 3...




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20140110/4bf38c0a/attachment.html>

More information about the Developers mailing list