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\ |
| 125 | 5. Check error.log for any error messages and package.log if you're having problems. |
| 126 | |
| 127 | GRASS should now be installed in c:\osgeo4w\apps\grass-6.4.0\ |
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: |
| 133 | OR, if you want to be able to use the command line from within grass |
| 134 | |
| 135 | 1. Type in MSYS console: |
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 | |
| 206 | 3. 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 | |
| 208 | 4. To compile, type in MSYS console: |
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: |
| 219 | 5. You're finished, start with: |