[GRASS-user] How To Develop Own GRASS Modules on Windows

marco.pasetti at alice.it marco.pasetti at alice.it
Wed Jun 18 04:08:58 EDT 2008

Hi Daniel,

I reply you starting a new thread on the list because I think it could be of general interest:

>my goal is just to understand how to create a module like v.in.ascii (by example)
>because i must create a specific tool importing data
>your page is a learning tool not for replacing the install
>If you have a better way for me, please help me

if you want to develop you own GRASS modules on Windows I suggest you to:

01. 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 your job.

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

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

03. download and install the current WinGRASS release (6.3.0-3)

referring to my building guide (http://www.webalice.it/marco.pasetti/grass/BuildFromSource.html):

04. execute steps 1 and 2

05. 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

06. run the configure as suggested by the guide and run the "export PATH=[...]" command

07. run: make libs

assuming that you have your own module *v.in.daniel* in C:\msys\local\src\my-grass-modules\v.in.daniel:

08. go to your module's source root: cd /usr/local/src/my-grass-modules/v.in.daniel

09. 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

10. just copy the binaries and html pages to your GRASS-Install-Dir\bin and \docs\html\ respectively

Happy hacking :-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080618/9822b608/attachment.html

More information about the grass-user mailing list