Changes between Version 24 and Version 25 of Win32Build


Ignore:
Timestamp:
May 11, 2014 4:20:45 PM (10 years ago)
Author:
butler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Win32Build

    v24 v25  
    4949- One of the ways of getting the source code is using subversion. You can get subversion [http://subversion.tigris.org/ here] if you haven't already got it. If you want to do it a harder way then you can download the source code [https://sourceforge.net/projects/sansviewproject/files/ here]. 
    5050 
    51 - Using subversion copy this onto the command line. It will allow you to checkout the code and put it into the directory 'c:/sansviewproject' 
     51- Using subversion copy this onto the command line. It will allow you to checkout the code and put it into the directory 'c:/sasview' 
    5252{{{ 
    53 c:\>svn co https://sansviewproject.svn.sourceforge.net/svnroot/sansviewproject sansviewproject 
    54 }}} 
     53c:\>svn co https://svn.code.sf.net/p/sasview/code/trunk 
    5554 
    5655- An easier way to use subversion is by downloading [https://sourceforge.net/projects/tortoisesvn/files/ Tortoise SVN]. This is a GUI for subversion. 
     
    5857- Note: You may need to add proxy settings for Subversion to work. Instructions on how to do this are [https://docs.opends.org/wiki/page/ConfiguringSubversionToUseAProxyServer?version=2 here]. It can be achieved using Tortoise SVN a lot simpler by going to ''TortoiseSVN ‣ Settings ‣ Network''. 
    5958 
    60 == Build SansView == 
    61 - Now that the files are downloaded it's time to build. Go to where you downloaded sansview and look for the folder named 'trunk'. Inside this folder you should have a file called 'setup.py' which we shall use to build SansView. Use the code below on the command line in order to build SansView. 
     59== Build !SasView == 
     60- Now that the files are downloaded it's time to build. Go to where you downloaded !SasView and look for the folder named 'trunk'. Inside this folder you should have a file called 'setup.py' which we shall use to build !SasView. Use the code below on the command line in order to build !SasView. 
    6261 
    6362{{{ 
    64 c:\sansviewproject\trunk>python setup.py build 
     63c:\sasview\trunk>python setup.py build 
    6564}}} 
    6665 
    67 - Note: You may get an error saying "Error: Python was built with Visual Studio 2003; extensions must be built with a compiler that can generate compatible binaries". To solve this issue it will recommend using Cygwin and to compile with MinGW32. The best thing about this is that you don't have to actually use Cygwin. First go to the download page of MinGW and download the latest version. [https://sourceforge.net/projects/mingw/files/] (Making sure it's 32-bit compatible). Next make sure the PATH variable is set to the folder containing the MinGW32 GCC. (Usually found in 'C:\MinGW\bin'). Next enter the following into the command terminal. 
     66- Note: You may get an error saying "Error: Python was built with Visual Studio 2003; extensions must be built with a compiler that can generate compatible binaries". To solve this issue we recommend using Cygwin and to compile with MinGW32. The best thing about this is that you don't have to actually use Cygwin. First go to the download page of MinGW and download the latest version. [https://sourceforge.net/projects/mingw/files/] (Making sure it's 32-bit compatible). Next make sure the PATH variable is set to the folder containing the MinGW32 GCC. (Usually found in 'C:\MinGW\bin'). Next enter the following into the command terminal. 
    6867 
    6968{{{ 
    70 c:\sansviewproject\trunk>python setup.py build -mingw32 
     69c:\sasview\trunk>python setup.py build -mingw32 
    7170}}} 
    7271 
    73 == Install SansView == 
    74 - Installing is straight forward. Use a similar approach to building SansView by using the code below. 
     72== Install !SasView == 
     73- Installing is straight forward. Use a similar approach to building !SasView by using the code below. 
    7574 
    7675{{{ 
    77 c:\sansviewproject\trunk>python setup.py install --user 
     76c:\sasview\trunk>python setup.py install --user 
    7877}}} 
    7978 
    8079- Note: If you get an error message saying it is Unable to find vcvarsall.bat then see the solution on [http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat Stackoverflow] 
    81 == Run SansView == 
    82 - Use the following command to run SansView. (Make sure you are in the directory where sansview.py is located). 
     80== Run !SasView == 
     81- Use the following command to run !SasView. (Make sure you are in the directory where sasview.py is located). 
    8382 
    8483{{{ 
    85 c:\sansviewproject\trunk\sansview>python sansview.py 
     84c:\sasview\trunk\sansview>python sansview.py 
    8685}}} 
    8786 
    88 - Note: If you get a similar error to the one below then make sure the PATH's contain where to find the modules. This is usually the trunk folder in sansviewproject. 
     87- Note: If you get a similar error to the one below then make sure the PATH's contain where to find the modules. This is usually the trunk folder in C:\sasview. 
    8988 
    9089{{{ 
     
    10099- Read the instruction on how I did it below or follow this simple [https://confluence.aps.anl.gov/download/attachments/2523138/PyDev.pdf?version=1&modificationDate=1305235496000 guide] by Pete Jemian. 
    101100 
    102 - This section will explain how to set up SansView in Eclipse because it's the most commonly used open-source IDE. Get a copy and install it on your computer. [http://www.eclipse.org/downloads/] 
     101- This section will explain how to set up !SasView in Eclipse because it's the most commonly used open-source IDE. Get a copy and install it on your computer. [http://www.eclipse.org/downloads/] 
    103102 
    104103- Now you will need to download the !PyDev plugin for Eclipse in order to get the python to work. [https://sourceforge.net/projects/pydev/files/] 
     
    108107- Make sure that you are in !PyDev mode. You can see this in the top right corner of Eclipse. 
    109108 
    110 - Setup a new project. ''File ‣ New ‣ !PyDev Project''. Name it something sensible like SansView Project. Leave all options as default but make sure the option "Create 'src' folder and add it to the PYTHONPATH" is selected. 
     109- Setup a new project. ''File ‣ New ‣ !PyDev Project''. Name it something sensible like SasView Project. Leave all options as default but make sure the option "Create 'src' folder and add it to the PYTHONPATH" is selected. 
    111110 
    112111- Then, you have to go to ''File ‣ Import'', and choose the File System option: