Hi Aadi,
'C:/local/boost_1_55_0/lib64-msvc-10.0/' looks like the right path
Ahhh, that makes more sense.
So basically mixing compilers is
bad idea. It can be done, but generally it's not recommended.
Here's my general install order:
1. Install python directly (not under cygwin) - I use Anaconda (
http://continuum.io/downloads) as it comes packaged with matplotlib/numpy. You can also use the 64 bit install directly from
python.org, and use Christopher Gothke's page (
http://www.lfd.uci.edu/~gohlke/pythonlibs/) to get all your libraries (i.e. numpy)
2. Download Sundials src (2.4.0 or 2.5.0)
3. Download CMake GUI (
http://www.cmake.org/)
4. Use CMake to build Sundials using Visual Studio as your compiler. This (
http://sundials.wikidot.com/installation-cmake-vs) page is a bit old, but has very good instructions on how to do so. You can generally substitute VS2010 for VS2008 in those instructions. You may or may not need to change the idasRoberts_FSA_dns settings to compile as C++ (I think it was resolved in 2.5.0)
5. Download Pre-Compiled Boost from (
http://boost.teeks99.com/). Extract to whatever folder you want. (It seems like you got this step)
6. Download SCons source.
7. Open up the Visual Studio command line (it's nice and helpful, it sets all your paths etc for you)
8. Navigate to the SCons directory
9. python setup.py install (Make sure you added your Python install to your path, IIRC, Anaconda does this for you)
10. Download Cantera src and extract
11. You're almost there, now is mostly build settings in your cantera.conf file.
My cantera.conf looks like this:
msvc_version = '10' #9 for 2008, 10 for 2010, 11 for 2012
prefix = 'C:\\Program Files\\Cantera' #or wherever
f90_interface = 'n'
use_sundials = 'y'
sundials_include = 'C:\\Program Files\\Path\\To\\Sundials\\include'
sundials_libdir = 'C:\\Program Files\\Path\\To\\Sundials\\lib'
env_vars = 'all' #important, lets SCons get all your path variables etc.
build_thread_safe = True #optional, but you have the boost libraries so why not!
boost_inc_dir = 'C:\\Program Files\\Path\\To\\Boost\\boost_1_55_0'
boost_lib_dir = 'C:\\Program Files\\Path\\To\\Boost\\boost_1_55_0\\lib64-msvc-10.0'
12. in the VS Command prompt, cd to the Cantera/src directory (where your .conf lives), now you should be able to call python scons [build/test/install] (each one in series)
13. If you run into a problem building the python interface with an error something like "missing vcvarsall.bat"
This is because Python is built with VS2008, and by default it looks for VS2008's version of vcvarsall.bat.
Three solutions:
1. If you have VS2008, use the VS2008 command prompt to build cantera
2. If you don't have VS2008, you
can create an environment variable "VS90COMNTOOLS", and give it exactly the same path that the pre-existant environment variable "VS100COMNTOOLS" has. This redirects python to the 2010 files. This is
not guaranteed to be a perfect fix, but I have not noticed many issues with it.
3. Get the VS2008 x64 windows SDK (
http://www.microsoft.com/en-us/download/details.aspx?id=3138) and figure out how to use it (you probably just need to create that environment variable, but I'm not 100% on this)
That should do it.
Now you can complicate this process further if you have a license of Intel's MKL library. Basically you need to figure out how to stick MKL into CMake, and then set the appropriate options in the cantera.conf. I would not recommend anything other than MKL on Windows however. Speaking from personal experience, MKL is
the only BLAS/LAPACK library on Windows that I've found that does not have to be compiled under Cygwin (which as you likely know, invites a whole world of fun)
Best,
Nick