wiki:BuildingOnWindows

Version 5 (modified by marcopx, 16 years ago) ( diff )

--

GRASS Windows Native Binary Building Guide by Marco Pasetti

develop your own GRASS modules on MS-Windows

(1) download this archive: http://grass.osgeo.org/grass63/binary/mswindows/native/GRASS_MSYS_Environment.zip

It is still not updated, but it's fair enough for the job.

(2) refer to this document on how to develop GRASS modules: http://download.osgeo.org/grass/grass6_progman/

You don't need to build GRASS in order to build your own modules; the smartest way is to:

(2a) download and install the current WinGRASS release (6.3.0-3). Referring to the following building guide (http://www.webalice.it/marco.pasetti/grass/BuildFromSource.html):

(2b) execute steps 1 and 2 from that document

(2c) jump to step 24, download and extract the GRASS sources tarball (it's very important that you use the same sources as the current binary release, that is 6.3.0) as suggested by the guide.

(2d) run the configure as suggested by the guide and run the "export PATH=[...]" command

(2e) run: make libs

(3) assuming that you have your own module *example.module* in C:\msys\local\src\my-grass-modules\example.module:

(3a) go to your module's source root: cd /usr/local/src/my-grass-modules/example.module

(3b) run: make MODULE_TOPDIR=/usr/local/src/grass-6.3.0

your own module's binaries will be built in: C:\msys\local\src\grass-6.3.0\dist.i686-pc-mingw32\bin while the html help pages in: C:\msys\local\src\grass-6.3.0\dist.i686-pc-mingw32\docs\html

(4) just copy the binaries and html pages to your GRASS-Install-Dir\bin and \docs\html\ respectively

Note: See TracWiki for help on using the wiki.