wiki:BuildingOnWindows

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

--

GRASS Windows Native Binary Building Guide by Marco Pasetti

Develop your own GRASS modules on MS-Windows

Refer to the following document on how to develop GRASS modules: http://download.osgeo.org/grass/grass6_progman/

(1) Download and install the current WinGRASS release.

(2) Follow the instruction written here: http://grass.osgeo.org/grass63/binary/mswindows/native/#Build%20GRASS%20From%20Source

(3) Open this document: http://www.webalice.it/marco.pasetti/grass/BuildFromSource.html#GRASS

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

(3a) Run the configure as suggested by the guide and run the "export PATH=[...]" command

(3b) run: make libs

(4) Assuming that you have your own GRASS module "example.module" in C:\msys\local\src\my-grass-modules\example.module:

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

(4b) 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 *

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

  • the specific GRASS path name (..\grass-6.3.0\..) may change, depending on the current GRASS source code release
Note: See TracWiki for help on using the wiki.