Changes

Jump to navigation Jump to search
no edit summary
=Download preparation = Installation ==First: Download these packages, do not unpack them yet.# (.exe): wxPython: http://www.lfd.uci.edu/~gohlke/pythonlibs/#wxpython# (.exe): scons: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scons# (.zip): minfx: http://download.gna.org/minfx/# (.zip): bmrblib: http://download.gna.org/bmrblib/
take amd64 versions if you have a computer with 64 bit.
 
= Install python and necessary packages =
 
I recommend to install a python distribution which is packed with several packages already.
 
== Winpython ==
You could consider winpython, which includes Ipython, numpy, scipy. matplotlib etc.:<br>
[https://code.google.com/p/winpython Homepage]
 
To fix a current DLL error in Winpython 64 bit, you need to install
[http://www.lfd.uci.edu/~gohlke/pythonlibs/ Microsoft Visual C++ 2008 Redistributable Package (x64)].
[http://www.microsoft.com/en-us/download/details.aspx?id=15336 Download here]
 
Run the downloaded winpython exe file, and extract for example to: '''C:\WinPython27'''.<br>
Open '''WinPython Control Panel''' in ex. '''C:\WinPython27\WinPython-64bit-2.7.4.1'''<br>
Drag the 4 above mentioned packakes, into the window, and install the packages.<br>
For a command window, use the '''WinPython Command Prompt''' found in '''C:\WinPython27\WinPython-64bit-2.7.4.1''', which fixes path issues for finding python.
 
= Install Visual Studio Express 2012 =
[http://msdn.microsoft.com/en-us/library/vstudio/hs24szh9.aspx See versions of VS 2012 here].<br>
For 64 bit compiling, you will need, '''Visual Studio Professional''', since it has: 64-bit x64 compiler.<br>
From http://www.microsoft.com/visualstudio/eng/downloads, download and install: [http://go.microsoft.com/?linkid=9810223 Visual Studio Professional 2012 90-day trial].<br>
Skip all extra packages install. After install, just exit any program, which opened after install.
 
== Bugfix scons for 32bit building - ONLY do this if you have winpython 32 bit. ==
Due to a bug, versions of scons '''<=2.3''' should alter a line in:<br>
'''C:\WinPython27\WinPython-32bit-2.7.4.1\python-2.7.4\Lib\site-packages\scons-2.3.0\SCons\Tool\MSCommonvc.py'''
 
Line '''364''':
if not req_target_platform and target_platform in ('amd64','x86_64'):
Should be:
if target_platform in ('amd64','x86_64'):
 
= Install Subversion checkout of relax =
Install a subversion client. For example: http://tortoisesvn.net/
 
Right click in winpython folder: '''C:\WinPython27\WinPython-64bit-2.7.4.1''', and select '''SVN Checkout'''. Write the path:
svn://svn.gna.org/svn/relax/trunk
svn://svn.gna.org/svn/relax/branches/relax_disp
 
= Build relax =
Open the '''WinPython Command Prompt''' <br>
Navigate to the SVN checked out relax folder
 
cd ..\relax
scons
(Scons will automatically find CL.exe, and setup compilation for 64 bit.)
 
== Modify relax.bat ==
Copy relax.bat to relaxgui.bat
 
Modify relax.bat:
32x: %~dp0\..\python-2.7.4\python "%~dp0\relax.py" %*
64x: %~dp0\..\python-2.7.4.amd64\python "%~dp0\relax.py" %*
 
Modify relaxgui.bat:
32x: %~dp0\..\python-2.7.4\python "%~dp0\relax.py" -g %*
64x: %~dp0\..\python-2.7.4.amd64\python "%~dp0\relax.py" -g %*
 
 
== See also ==
[[Category:Installation]]
Trusted, Bureaucrats
1,382

edits

Navigation menu