dbirch997 / cantera

Automatically exported from code.google.com/p/cantera
1 stars 0 forks source link

Compiling with scons on windows 7 32bit #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.scons help or scons build
2.
3.

What is the expected output? What do you see instead?
expected output as on ubuntu, but I get:
KeyError: 'F77'
  File "...\SConstruct", line 560:
  env['F77']),

What version of the product are you using? On what operating system?
latest svn r1417

Please provide any additional information below.
Windows 7 32bit, scons 2.1.0 (had the scons-python2.7 error, but installing 
from zip by python setup.py install made it work)

Original issue reported on code.google.com by Termope...@gmail.com on 17 Apr 2012 at 11:51

GoogleCodeExporter commented 9 years ago
Sorry, I needed to install the mentioned Windows SDK, then it seems to 
function. How can I remove the issue from the forum again?

Original comment by Termope...@gmail.com on 17 Apr 2012 at 12:05

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 17 Apr 2012 at 1:26

GoogleCodeExporter commented 9 years ago
It needs the erf function, that appearently not exist in the Windows compiler, 
so you need also to install Boost I guess. Do you need to compile the whole of 
Boost (more than 20K files), or could you maybe help in what packages are 
needed from the installer at http://www.boostpro.com/download/

regards
Rasmus

Original comment by Termope...@gmail.com on 18 Apr 2012 at 12:00

GoogleCodeExporter commented 9 years ago
Finnaly figured out why scons couldn't find the 
boot/math/special_functions/erf.hpp, the boost_inc_dir should be:

boost_inc_dir = "C:/Program Files/boost/boost_1_47"

NOT

boost_inc_dir = "C:\Program Files\boost\boost_1_47"
as is elsewhere common windows terminology...

Original comment by Termope...@gmail.com on 18 Apr 2012 at 12:51

GoogleCodeExporter commented 9 years ago
now it compiled most of it, but ended with a:

running build_ext
building '_spam' extension
error: Unable to find vcvarsall.bat

Any ideas??

Original comment by Termope...@gmail.com on 18 Apr 2012 at 12:57

GoogleCodeExporter commented 9 years ago
I don't know why the file is not there in my install of Microsoft Windows SDK. 
Anyhow found the file at:

http://social.msdn.microsoft.com/Forums/ar-SA/vcgeneral/thread/342185bd-f35d-481
c-8429-4fc97239a78f

and now it compiled to the end and works...

Original comment by Termope...@gmail.com on 18 Apr 2012 at 1:49

GoogleCodeExporter commented 9 years ago
I'm experiencing the same issue building the Python extension with 32-bit 
Python 2.7 and the Windows SDK. However, these combos seem to work:
- 64-bit python, Windows SDK
- 32-bit python, Visual Studio 2008

Original comment by yarmond on 18 Apr 2012 at 4:42

GoogleCodeExporter commented 9 years ago
a quick hack could be to check if vcvarsall.bat exist, and if not copy it from 
somewhere provided in the trunk...

Also I think to avoid confusion of Windows users maybe to split the "[sudo] 
scons install" into to two or just "scons install" and then a comment for nix 
users to run this command as root.

Original comment by Termope...@gmail.com on 18 Apr 2012 at 5:18

GoogleCodeExporter commented 9 years ago
Most of these problems should be addressed as of r1421.

Original comment by yarmond on 19 Apr 2012 at 5:42

GoogleCodeExporter commented 9 years ago
Thanks for the work, seems to work fine now. Then tried the msi build function, 
it fails here with a AttributeError: 'SConsEnviroment' object has no attribute 
'WiX'
Line 1287: msi_target = end.WiX('cantera.msi, 

Do I need to install Wix from http://wix.codeplex.com/ ??

Original comment by Termope...@gmail.com on 19 Apr 2012 at 7:01

GoogleCodeExporter commented 9 years ago
Yes, you need WiX installed to build the MSI.

Original comment by yarmond on 19 Apr 2012 at 7:30

GoogleCodeExporter commented 9 years ago
WiX dependency is now mentioned in the docs in r1427. Are there any remaining 
issues here?

Original comment by yarmond on 26 Apr 2012 at 9:21

GoogleCodeExporter commented 9 years ago
As my small SSD laptop is dual booting (Ubuntu and Win7) and mainly running 
Ubuntu I have space issues with Win7 partition... So I decided that for now the 
easiest solution is to just let my colleague putty/ssh into my Ubuntu Server 
and use my latest compiled cantera from there...

Instead of me needing to download and install Windows SDK, Boost, Sundials 
(gave up on finding out how to compile on Windows, as no installer), and then 
also WiX. That is simply to much work for me. So my final step on windows was 
to compile with no sundials, which seems to work fine now :)

Regards
Termo

Original comment by Termope...@gmail.com on 27 Apr 2012 at 7:55

GoogleCodeExporter commented 9 years ago
Setting up a software development environment on Windows does require 
installing a lot of software. When Cantera 2.0 is released, there will be 
binary installers available, so you won't need to install all of these build 
dependencies.

Original comment by yarmond on 27 Apr 2012 at 2:55