Changes between Version 50 and Version 51 of CompileOnWindows


Ignore:
Timestamp:
Mar 28, 2009, 11:09:52 AM (15 years ago)
Author:
cnielsen
Comment:

Fixed usage section

Legend:

Unmodified
Added
Removed
Modified
  • CompileOnWindows

    v50 v51  
    152152Now GRASS should be installed in c:\osgeo4w\apps\grass-6.4.0\
    153153
    154 '''Usage'''
     154=== Usage ===
    155155
    156 The startup '''grass64.bat''' file should be in C:\OSGeo4W\apps\grass\bin
    157 Open it and replace the contents with:
     156To start grass use the icon on the desktop.
     157
     158OR, if you want to be able to use the command line from within grass, you'll need a different start-up file.
     159
     1601. Open '''C:\OSGeo4W\apps\grass\bin\grass64''' and at line 24 add:
    158161{{{
    159 @echo off
    160 SET OSGEO4W_ROOT=C:\OSGeo4W
    161 PATH %OSGEO4W_ROOT%\bin;%PATH%
    162 for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f"
    163 
    164 rem #########################################################################
    165 rem #
    166 rem #           GRASS Initialization
    167 rem #
    168 rem #########################################################################
    169 
    170 set WINGISBASE=%OSGEO4W_ROOT%/apps/grass/grass-6.4xxx (change to the appropriate grass version)
    171 "%WINGISBASE%"\etc\init.bat %*
     162# Set the PYTHONPATH
     163PYTHONPATH="$GISBASE/etc/python:$PYTHONPATH"
    172164}}}
    173165
    174 If you want to be able to use the console from within grass, you'll need a different startup file:
    175 Create '''C:\OSGeo4W\apps\grass\bin\grass64''' with the following contents:
     1662. To start grass, type in MSYS console:
    176167{{{
    177 #! /bin/sh
    178 #############################################################################
    179 #
    180 # MODULE:       GRASS Initialization
    181 # AUTHOR(S):    Justin Hickey - Thailand - jhickey@hpcc.nectec.or.th
    182 # PURPOSE:      The source file for this shell script is in
    183 #               lib/init/grass.src and is the grass startup script. It
    184 #               requires a source file because the definition of GISBASE
    185 #               is not known until compile time and is substituted from the
    186 #               Makefile. Any command line options are passed to Init.sh.
    187 # COPYRIGHT:    (C) 2000-2005 by the GRASS Development Team
    188 #
    189 #               This program is free software under the GNU General Public
    190 #               License (>=v2). Read the file COPYING that comes with GRASS
    191 #               for details.
    192 #
    193 #############################################################################
    194 
    195 trap "echo 'User break!' ; exit" 2 3 9 15
    196 
    197 # Set the GISBASE variable
    198 GISBASE=/c/OSGeo4W/apps/grass/grass-6.4xxx (change to the appropriate grass version)
    199 export GISBASE
    200 
    201 # Set the PATH variable
    202 PATH="/osgeo4w/apps/tcl-tk/bin:$PATH"
    203 export PATH
    204 
    205 # Set the PYTHONPATH
    206 PYTHONPATH="$GISBASE/etc/python:$PYTHONPATH"
    207 
    208 exec "$GISBASE/etc/Init.sh" "$@"
     168/osgeo4w/apps/grass/bin/grass64
    209169}}}
    210 
     170Or to use the new wxpython GUI:
     171{{{
     172/osgeo4w/apps/grass/bin/grass64 -wxpython
     173}}}
    211174
    212175=== TODO ===