Changes between Version 85 and Version 86 of CompileOnWindows


Ignore:
Timestamp:
Jun 2, 2009, 8:36:44 AM (15 years ago)
Author:
cnielsen
Comment:

Several steps removed after bugfixes

Legend:

Unmodified
Added
Removed
Modified
  • CompileOnWindows

    v85 v86  
    6767}}}
    68686. Download the MinGW packages:
    69 (''[https://sourceforge.net/project/showfiles.php?group_id=2435 or newer??]'')
     69(''[https://sourceforge.net/project/showfiles.php?group_id=2435 updates may be found here]'')
    7070 * '''bin-utils''' from [http://downloads.sourceforge.net/mingw/binutils-2.19.1-mingw32-bin.tar.gz here]
    7171 * '''gcc-core''' from [http://downloads.sourceforge.net/mingw/gcc-core-3.4.5-20060117-3.tar.gz here]
     
    7979
    80808. Download an updated '''make''' from [http://downloads.sourceforge.net/mingw/make-3.81-MSYS-1.0.11-2.tar.bz2 here] (required for grass-7.0.svn)
    81 (''[https://sourceforge.net/project/showfiles.php?group_id=2435 or newer??]'')
     81(''[https://sourceforge.net/project/showfiles.php?group_id=2435 updates may be found here]'')
    8282
    83839. Unpack to c:\osgeo4w\apps\msys
     
    8787
    8888Download:
    89 (''[https://sourceforge.net/project/showfiles.php?group_id=23617 or newer??]'')
     89(''[https://sourceforge.net/project/showfiles.php?group_id=23617 updates may be found here]'')
    9090 * '''bison''' from [http://downloads.sourceforge.net/gnuwin32/bison-2.1-bin.zip here]
    9191 * '''bison-deps''' from [http://downloads.sourceforge.net/gnuwin32/bison-2.1-dep.zip here]
     
    116116--with-includes=/c/OSGeo4W/include \
    117117}}}
    118 5. To compile, type in MSYS console:
     1184. To compile, type in MSYS console:
    119119{{{
    120120export PATH="/osgeo4w/bin:$PATH"
     
    123123}}}
    124124
    125 When finished, you should have the ~~following~~ compilation log (c:\osgeo4w\usr\src\grass-6.4xxx\error.log):
    126 
    127 ('''''UPDATE: Makefile fixed to avoid building r.li if Msys detected''''')
    128 {{{
    129 GRASS GIS compilation log
    130 -------------------------
    131 Started compilation: Mon Feb 16 10:11:17 GMT 2009
    132 --
    133 Errors in:
    134 /usr/local/src/grass-6.4.0/raster/r.li/r.li.daemon
    135 ...
    136 make: *** [default] Error 1
    137 }}}
    138 Currently r.li.* cannot be compiled on Windows, but grass will run fine without them.
    139 
    140 
    141 6. ~~Because of these errors in the install script stops. To finish it type:~~
    142 {{{
    143 make install
    144 }}}
    145 
    146 Now GRASS should be installed in c:\osgeo4w\apps\grass-6.4.0\
     1255. Check error.log for any error messages and package.log if you're having problems.
     126
     127GRASS should now be installed in c:\osgeo4w\apps\grass-6.4.0\
    147128
    148129=== Usage ===
     
    150131To start grass use the icon on the desktop.
    151132
    152 OR, if you want to be able to use the command line from within grass, you'll need a different start-up file.
    153 
    154 1. ~~Open '''C:\OSGeo4W\apps\grass\bin\grass64''' and at line 24 add:~~
    155 
    156 ('''''UPDATE: PYTHONPATH setting bug in Init.sh now fixed''''')
    157 {{{
    158 if [ -z "$PYTHONPATH" ] ; then
    159  PYTHONPATH="$GISBASE/etc/python"
    160 else
    161  PYTHONPATH="$GISBASE/etc/python:$PYTHONPATH"
    162 fi
    163 export PYTHONPATH
    164 }}}
    165 
    166 2. To start grass, type in MSYS console:
     133OR, if you want to be able to use the command line from within grass
     134
     1351. Type in MSYS console:
    167136{{{
    168137/osgeo4w/apps/grass/bin/grass64
     
    199168
    2001691. Download the grass-6.5.svn source tree with:
    201  * subversion (also see [wiki:DownloadSource here]
     170 * subversion (also see [wiki:DownloadSource here])
    202171{{{
    203172cd /osgeo4w/usr/src
    204173svn co http://svn.osgeo.org/grass/grass/branches/develbranch_6/ grass6-devel
    205 #For Subsequent updates, type:
    206 cd /osgeo4w/usr/src/grass6-devel
    207 svn up
    208174}}}
    209175OR
     
    215181{{{
    216182cd /osgeo4w/usr/src/grass6-devel
     183make distclean
    217184svn up
    218185rm configure-stamp
     
    228195cd /osgeo4w/usr/src
    229196svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk
    230 #For Subsequent updates, type:
    231 cd /osgeo4w/usr/src/grass_trunk
    232 svn up
    233197}}}
    234198OR
     
    239203set PYTHONPATH=%OSGEO4W_ROOT%\apps\Python25
    240204}}}
    241 3. ~~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''''')
    244 {{{
    245 os.execvp("g.parser", [name] + argv)
    246 }}}
    247 To:
    248 {{{
    249 os.execvp("g.parser.exe", [name] + argv)
    250 }}}
    251 4. ~~Open c:\osgeo4w\usr\src\grass_trunk\include\Make\Multi.make, at at line 19 change:~~
    252 
    253 ('''''UPDATE: suspect that this isn't needed; for now skip it but please let us know if you find it breaks without it''''')
    254 {{{
    255 $(BIN)/%$(EXE): $(DEPENDENCIES)
    256         $(call linker)
    257 
    258 define objs_rule
    259 $(BIN)/$(1)$(EXE): $$(patsubst %.o,$(OBJDIR)/%.o,$$($$(subst .,_,$(1)_OBJS)))
    260 }}}
    261 To:
    262 {{{
    263 define objs_rule
    264 $(BIN)/$(1)$(EXE): $$(patsubst %.o,$(OBJDIR)/%.o,$$($$(subst .,_,$(1)_OBJS))) $(DEPENDENCIES)
    265         $$(call linker)
    266 }}}
    267 5. Download the package.sh script from [http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/osgeo4w/package.sh?format=raw here]
    268 
    269 (''why not use the native grass 7 ver??'' [source:grass/trunk/mswindows/osgeo4w/package.sh])
    270 
    271 6. Put in c:\osgeo4w\usr\src\grass_trunk\mswindows\osgeo4w\ (you may have to create the latter two folders)
    272 
    273 7. Open c:\osgeo4w\usr\src\grass_trunk\mswindows\osgeo4w\package.sh, and make the same changes as in the grass-6.4.0 section above
    274 
    275 8. Also, at line 35 change:
    276 
    277 ('''''UPDATE: not needed if you pull mswindows\osgeo4w\package.sh from the GRASS 7 source code''''')
    278 {{{
    279 --with-freetype-includes=/osgeo4w/include/freetype2
    280 }}}
    281 To:
    282 {{{
    283 --with-freetype-includes=/osgeo4w/include/freetype2 \
    284 --without-cairo \
    285 --without-geos
    286 }}}
    287 
    288 9. To compile, type in MSYS console:
     205
     2063. Open c:\osgeo4w\usr\src\grass_trunk\mswindows\osgeo4w\package.sh, and make the same changes as in the grass-6.4.0 section above
     207
     2084. To compile, type in MSYS console:
    289209{{{
    290210cd /osgeo4w/usr/src/grass_trunk
    291211./mswindows/osgeo4w/package.sh
    292212}}}
    293 10. ~~Once the script fails on the r.li.* errors (see above), type:~~
    294 
    295 ('''''UPDATED: fixed to avoid building r.li if Msys detected''''')
     213
     214 * If any errors came up during the compile they will be recorded in error.log. If they are non-critical modules you can finish the installation with:
    296215{{{
    297216make install
    298217}}}
    299218
    300 11. Once this is finished open c:\osgeo4w\apps\grass\grass-7.0.svn\etc\Init.sh, and at line 150 change:
    301 
    302 (''still aplicable???'')
    303 {{{
    304 PATH="$GRASS_LD_LIBRARY_PATH"
    305 }}}
    306 To:
    307 {{{
    308 PATH="$GRASS_LD_LIBRARY_PATH:$PATH"
    309 }}}
    310 
    311 12. Open c:\osgeo4w\apps\grass\bin\grass70, and at line 25 add:
    312 
    313 (''still needed???'')
    314 {{{
    315 if [ -z "$PYTHONPATH" ] ; then
    316  PYTHONPATH="$GISBASE/etc/python"
    317 else
    318  PYTHONPATH="$GISBASE/etc/python:$PYTHONPATH"
    319 fi
    320 export PYTHONPATH
    321 }}}
    322 
    323 13. You're finished, start with:
     2195. You're finished, start with:
    324220{{{
    325221/osgeo4w/apps/grass/bin/grass70