Changes between Version 24 and Version 25 of Win32Build
- Timestamp:
- May 11, 2014 6:20:45 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Win32Build
v24 v25 49 49 - 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]. 50 50 51 - Using subversion copy this onto the command line. It will allow you to checkout the code and put it into the directory 'c:/sa nsviewproject'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' 52 52 {{{ 53 c:\>svn co https://sansviewproject.svn.sourceforge.net/svnroot/sansviewproject sansviewproject 54 }}} 53 c:\>svn co https://svn.code.sf.net/p/sasview/code/trunk 55 54 56 55 - An easier way to use subversion is by downloading [https://sourceforge.net/projects/tortoisesvn/files/ Tortoise SVN]. This is a GUI for subversion. … … 58 57 - 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''. 59 58 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. 62 61 63 62 {{{ 64 c:\sa nsviewproject\trunk>python setup.py build63 c:\sasview\trunk>python setup.py build 65 64 }}} 66 65 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 willrecommend 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. 68 67 69 68 {{{ 70 c:\sa nsviewproject\trunk>python setup.py build -mingw3269 c:\sasview\trunk>python setup.py build -mingw32 71 70 }}} 72 71 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. 75 74 76 75 {{{ 77 c:\sa nsviewproject\trunk>python setup.py install --user76 c:\sasview\trunk>python setup.py install --user 78 77 }}} 79 78 80 79 - 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). 83 82 84 83 {{{ 85 c:\sa nsviewproject\trunk\sansview>python sansview.py84 c:\sasview\trunk\sansview>python sansview.py 86 85 }}} 87 86 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. 89 88 90 89 {{{ … … 100 99 - 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. 101 100 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/] 103 102 104 103 - 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/] … … 108 107 - Make sure that you are in !PyDev mode. You can see this in the top right corner of Eclipse. 109 108 110 - Setup a new project. ''File ‣ New ‣ !PyDev Project''. Name it something sensible like Sa nsView 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. 111 110 112 111 - Then, you have to go to ''File ‣ Import'', and choose the File System option: