[GRASS-dev] compile an individual module

Hi,

I’m working to make a script for grass add_ons.

So, I’m trying to compile an individual module for understand how working.

I’ve seen the howto: http://grass.itc.it/grass63/source/INSTALL

I’ve tryed with a script of add_ons (r.in.onearth), I change the relative path

in the Makefile to absolute path. (MODULE_TOPDIR=/mydirectory

So it’s stopped, because it don’t such the file:
($MODULE_TOPDIR)/include/Make/Grass.make
($MODULE_TOPDIR)/include/Make/Platform.make
and “don’t have the rule to make target ($MODULE_TOPDIR)/include/Make/Grass.make”

so I’ve seen that the ($MODULE_TOPDIR)/include/Make/Grass.make don’t exist, but
exists a ($MODULE_TOPDIR)/include/Make/Grass.make.in file, but I’ve correctly installed
GRASS sorce code in my pc…

What’s the problem?

Thanks in advanced

R

COMPILING INDIVIDUAL MODULES - OWN MODULES

To compile (self-made) GRASS modules or to compile modified modules
at least the GRASS libraries have to be compiled locally. This is
done by launching:

    make libs

Then change into the module's directory and launch the "make" 

command. The installation can be either done with "make install" from
the main source code directory or locally with 
    "INST_NOW=y make"

You may want to define an alias for this:
    alias gmake6='INST_NOW=y make'

Then simply compile/install the current module with
    gmake6

Note: If you keep your module source code outside the standard GRASS
source code directory structure, you will have to change the relative
path(s) in the Makefile to absolute path(s).

Hi,

2008/3/12, roberto marzocchi <roberto.marzocchi@gmail.com>:

I've seen the howto:
http://grass.itc.it/grass63/source/INSTALL

I've tryed with a script of add_ons (r.in.onearth), I change the relative
path

in the Makefile to absolute path. (MODULE_TOPDIR=/mydirectory

So it's stopped, because it don't such the file:
($MODULE_TOPDIR)/include/Make/Grass.make
($MODULE_TOPDIR)/include/Make/Platform.make
and "don't have the rule to make target
($MODULE_TOPDIR)/include/Make/Grass.make"

so I've seen that the
($MODULE_TOPDIR)/include/Make/Grass.make don't exist, but
exists a ($MODULE_TOPDIR)/include/Make/Grass.make.in file,
but I've correctly installed

you need to run configure with proper switches to generate Grass.make
and others.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi,

2008/3/12, roberto marzocchi <roberto.marzocchi@gmail.com>:

I've to run configure under GRASS directory?

yes, in the root GRASS source code directory.

Martin

It's correct? Just for a module?
thank you very much
R

2008/3/12, Martin Landa <landa.martin@gmail.com>:
> Hi,
>
> 2008/3/12, roberto marzocchi <roberto.marzocchi@gmail.com>:
>
> > I've seen the howto:
> > http://grass.itc.it/grass63/source/INSTALL
> >
> > I've tryed with a script of add_ons (r.in.onearth), I change the
relative
> > path
> >
> > in the Makefile to absolute path. (MODULE_TOPDIR=/mydirectory
> >
> > So it's stopped, because it don't such the file:
> > ($MODULE_TOPDIR)/include/Make/Grass.make
> > ($MODULE_TOPDIR)/include/Make/Platform.make
> > and "don't have the rule to make target
> > ($MODULE_TOPDIR)/include/Make/Grass.make"
> >
> > so I've seen that the
> > ($MODULE_TOPDIR)/include/Make/Grass.make don't exist,
but
> > exists a ($MODULE_TOPDIR)/include/Make/Grass.make.in
file,
> > but I've correctly installed
>
>
> you need to run configure with proper switches to generate Grass.make
> and others.
>
> Martin
>
>
> --
> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
>

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *