Changes between Version 81 and Version 82 of CompileOnWindows
- Timestamp:
- May 31, 2009, 3:20:01 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompileOnWindows
v81 v82 125 125 When finished, you should have the ~~following~~ compilation log (c:\osgeo4w\usr\src\grass-6.4xxx\error.log): 126 126 127 (''' UPDATE: Makefile fixed to avoid building r.li if Msys detected''')127 ('''''UPDATE: Makefile fixed to avoid building r.li if Msys detected''''') 128 128 {{{ 129 129 GRASS GIS compilation log … … 152 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 153 154 1. Open '''C:\OSGeo4W\apps\grass\bin\grass64''' and at line 24 add: 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''''') 155 157 {{{ 156 158 if [ -z "$PYTHONPATH" ] ; then … … 171 173 }}} 172 174 175 176 173 177 == Compiling and Installing Development Versions of GRASS == 174 178 … … 204 208 }}} 205 209 OR 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] 207 211 208 212 2. Follow the instructions above for grass-6.4.0, but change all grass64 to grass65, etc. … … 215 219 ./mswindows/osgeo4w/package.sh 216 220 }}} 221 217 222 218 223 === Grass-7.0.svn (trunk) === … … 228 233 }}} 229 234 OR 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") 231 236 232 237 2. Open c:\osgeo4w\etc\ini\msys.bat and at line 3 add: … … 234 239 set PYTHONPATH=%OSGEO4W_ROOT%\apps\Python25 235 240 }}} 236 3. Open c:\osgeo4w\usr\src\grass_trunk\lib\python\grass.py, and at line 208 change: 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''''') 237 244 {{{ 238 245 os.execvp("g.parser", [name] + argv) … … 256 263 $$(call linker) 257 264 }}} 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] 265 5. 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]) 259 266 260 267 6. Put in c:\osgeo4w\usr\src\grass_trunk\mswindows\osgeo4w\ (you may have to create the latter two folders) … … 263 270 264 271 8. Also, at line 35 change: 272 273 ('''''UPDATE: not needed if you pull mswindows\osgeo4w\package.sh from the GRASS 7 source code''''') 265 274 {{{ 266 275 --with-freetype-includes=/osgeo4w/include/freetype2 … … 278 287 ./mswindows/osgeo4w/package.sh 279 288 }}} 280 10. Once the scripts fails on the r.li.* errors (see above), type: 289 10. ~~Once the script fails on the r.li.* errors (see above), type:~~ 290 291 ('''''UPDATED: fixed to avoid building r.li if Msys detected''''') 281 292 {{{ 282 293 make install … … 284 295 285 296 11. 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???'') 286 299 {{{ 287 300 PATH="$GRASS_LD_LIBRARY_PATH" … … 293 306 294 307 12. Open c:\osgeo4w\apps\grass\bin\grass70, and at line 25 add: 308 309 (''still needed???'') 295 310 {{{ 296 311 if [ -z "$PYTHONPATH" ] ; then … … 310 325 {{{ 311 326 cd /osgeo4w/usr/src/grass_trunk 327 make distclean 312 328 svn up 313 329 rm configure-stamp 314 330 ./mswindows/osgeo4w/package.sh 315 331 }}} 332 316 333 317 334 === Troubleshooting === … … 327 344 * QGIS 328 345 * 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) 330 347 * Preferably get cairo added to osgeo4w tree. 331 348 * Add geos support for grass-7.0.svn (need geos-config file) 349 332 350 333 351 == Building with MS Visual Studio ==