Building SUNDIALS on Windows: Difference between revisions

From ASCEND
Jump to navigation Jump to search
Restored page from Google Cache, uploaded by John Pye
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
The following instructions should work with the latest version of SUNDIALS. As of writing, that was version 2.4.0.
The following instructions should work with the latest version of SUNDIALS. As of writing, that was version 2.4.0.


 
# Download sundials-''(version)''.tar.gz from http://www.llnl.gov/casc/sundials/
 
# Download sundials-''(version)''.tar.gz from [http://www.llnl.gov/casc/sundials/]
# Move the file to your MSYS home directory and unzip it using <tt>tar zxf sundials-''(version)''.tar.gz</tt>
# Move the file to your MSYS home directory and unzip it using <tt>tar zxf sundials-''(version)''.tar.gz</tt>
# <tt>cd sundials-(version)</tt>
# <tt>cd sundials-(version)</tt>
Line 16: Line 14:
The result of the above process should be some static library files in c:/MinGW/lib. Static libraries are good in this particular case, as ASCEND will ultimately create its own <tt>ida.dll</tt> containing statically linked IDA code, which means that we don't need to worry about copying any other SUNDIALS-related files at install-time.
The result of the above process should be some static library files in c:/MinGW/lib. Static libraries are good in this particular case, as ASCEND will ultimately create its own <tt>ida.dll</tt> containing statically linked IDA code, which means that we don't need to worry about copying any other SUNDIALS-related files at install-time.


See also [[Building ASCEND]] and [[IDA]].
See also [[Building ASCEND]] and [[IDA]] and [[Setting up a MinGW-w64 build environment]].
 
 
 
 
 
[[Category:Development]]


PAGEENDslkfjsldkfjskldfjskljfsghwuewrweorswnmbrwewemwr
[[Category:Development]]

Latest revision as of 12:01, 13 August 2013

In order to use the IDA integrator with ASCEND, you will need to build the SUNDIALS package. On Windows, this can be achieved if you follow these instructions. We'll assume you're compiling ASCEND with MinGW and SCons as described in Building ASCEND, and that you've already installed MinGW and MSYS as directed.

The following instructions should work with the latest version of SUNDIALS. As of writing, that was version 2.4.0.

  1. Download sundials-(version).tar.gz from http://www.llnl.gov/casc/sundials/
  2. Move the file to your MSYS home directory and unzip it using tar zxf sundials-(version).tar.gz
  3. cd sundials-(version)
  4. ./configure --prefix=/mingw
  5. make -j2
  6. make install

This process assumes you have write access to the MinGW directory hierarchy. You'll only be building the serial version of IDA, but that's OK as that's all that ASCEND has attempted to support up to now.

The result of the above process should be some static library files in c:/MinGW/lib. Static libraries are good in this particular case, as ASCEND will ultimately create its own ida.dll containing statically linked IDA code, which means that we don't need to worry about copying any other SUNDIALS-related files at install-time.

See also Building ASCEND and IDA and Setting up a MinGW-w64 build environment.