Changes between Version 81 and Version 82 of CompileOnWindows


Ignore:
Timestamp:
May 31, 2009, 3:20:01 AM (15 years ago)
Author:
hamish
Comment:

mo' updates

Legend:

Unmodified
Added
Removed
Modified
  • CompileOnWindows

    v81 v82  
    125125When finished, you should have the ~~following~~ compilation log (c:\osgeo4w\usr\src\grass-6.4xxx\error.log):
    126126
    127 ('''UPDATE: Makefile fixed to avoid building r.li if Msys detected''')
     127('''''UPDATE: Makefile fixed to avoid building r.li if Msys detected''''')
    128128{{{
    129129GRASS GIS compilation log
     
    152152OR, if you want to be able to use the command line from within grass, you'll need a different start-up file.
    153153
    154 1. Open '''C:\OSGeo4W\apps\grass\bin\grass64''' and at line 24 add:
     1541. ~~Open '''C:\OSGeo4W\apps\grass\bin\grass64''' and at line 24 add:~~
     155
     156('''''UPDATE: PYTHONPATH setting bug in Init.sh now fixed''''')
    155157{{{
    156158if [ -z "$PYTHONPATH" ] ; then
     
    171173}}}
    172174
     175
     176
    173177== Compiling and Installing Development Versions of GRASS ==
    174178
     
    204208}}}
    205209OR
    206  * Download a daily snapshot from [http://grass.osgeo.org/grass65/source/snapshot/ here]
     210 * Download a weekly snapshot from [http://grass.osgeo.org/grass65/source/snapshot/ here]
    207211
    2082122. Follow the instructions above for grass-6.4.0, but change all grass64 to grass65, etc.
     
    215219./mswindows/osgeo4w/package.sh
    216220}}}
     221
    217222
    218223=== Grass-7.0.svn (trunk) ===
     
    228233}}}
    229234OR
    230  * Download a daily snapshot from [http://grass.osgeo.org/grass70/source/snapshot/ here] and unpack to c:\osgeo4w\usr\src (if you use this method in the instructions below change "grass_trunk" to the folder name of your snapshot eg. "grass-7.0.svn_src_snapshot_2009_03_29")
     235 * Download a weekly snapshot from [http://grass.osgeo.org/grass70/source/snapshot/ here] and unpack to c:\osgeo4w\usr\src (if you use this method in the instructions below change "grass_trunk" to the folder name of your snapshot eg. "grass-7.0.svn_src_snapshot_2009_03_29")
    231236
    2322372. Open c:\osgeo4w\etc\ini\msys.bat and at line 3 add:
     
    234239set PYTHONPATH=%OSGEO4W_ROOT%\apps\Python25
    235240}}}
    236 3. Open c:\osgeo4w\usr\src\grass_trunk\lib\python\grass.py, and at line 208 change:
     2413. ~~Open c:\osgeo4w\usr\src\grass_trunk\lib\python\grass.py, and at line 208 change:~~
     242
     243('''''UPDATE: automatic OS detection fixed in SVN; moved to core.py''''')
    237244{{{
    238245os.execvp("g.parser", [name] + argv)
     
    256263        $$(call linker)
    257264}}}
    258 5. Download the package.sh script from [http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/osgeo4w/package.sh?format=raw here]
     2655. Download the package.sh script from [http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/osgeo4w/package.sh?format=raw here]   (''why not use the native grass 7 ver??' [source:grass/trunk/mswindows/osgeo4w/package.sh])
    259266
    2602676. Put in c:\osgeo4w\usr\src\grass_trunk\mswindows\osgeo4w\ (you may have to create the latter two folders)
     
    263270
    2642718. Also, at line 35 change:
     272
     273('''''UPDATE: not needed if you pull mswindows\osgeo4w\package.sh from the GRASS 7 source code''''')
    265274{{{
    266275--with-freetype-includes=/osgeo4w/include/freetype2
     
    278287./mswindows/osgeo4w/package.sh
    279288}}}
    280 10. Once the scripts fails on the r.li.* errors (see above), type:
     28910. ~~Once the script fails on the r.li.* errors (see above), type:~~
     290
     291('''''UPDATED: fixed to avoid building r.li if Msys detected''''')
    281292{{{
    282293make install
     
    284295
    28529611. Once this is finished open c:\osgeo4w\apps\grass\grass-7.0.svn\etc\Init.sh, and at line 150 change:
     297
     298(''still aplicable???'')
    286299{{{
    287300PATH="$GRASS_LD_LIBRARY_PATH"
     
    293306
    29430712. Open c:\osgeo4w\apps\grass\bin\grass70, and at line 25 add:
     308
     309(''still needed???'')
    295310{{{
    296311if [ -z "$PYTHONPATH" ] ; then
     
    310325{{{
    311326cd /osgeo4w/usr/src/grass_trunk
     327make distclean
    312328svn up
    313329rm configure-stamp
    314330./mswindows/osgeo4w/package.sh
    315331}}}
     332
    316333
    317334=== Troubleshooting ===
     
    327344 * QGIS
    328345 * Add cairo support to grass-7.0.svn
    329   * Possibly use these cairo binaries [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-1.6.4-2.zip deps] and [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev-1.6.4-2.zip bin].
     346  * Possibly use these cairo binaries [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-1.6.4-2.zip deps] and [http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev-1.6.4-2.zip bin]. (check for newer versions)
    330347  * Preferably get cairo added to osgeo4w tree.
    331348 * Add geos support for grass-7.0.svn (need geos-config file)
     349
    332350
    333351== Building with MS Visual Studio ==