[GRASS5] Re: s.kcv in 5.4, v.kcv in 5.7?

Helena Mitasova hmitaso at unity.ncsu.edu
Fri Oct 15 15:46:17 EDT 2004


I noticed that s.kcv is commented out with a note that it needs update
to 5.0 API -
is that true? Markus says that it compiles (and runs?) OK for him.
I have troubles compiling it because of bad path, but otherwise it may
be
up-to-date and worth including - can somebody else try it?. 
It creates a random subset of point data -
this is particularly useful for crossvalidation, as well as for data
sets
that are oversampled (e.g. lidar).
Radim, would it be possible to port it to 5.7 as v.kcv? (I noticed that
some
of the other useful site programs such as v.random are already there.

thank you for any feedback on this,

helena 

 
         [GRASS-CVS] paul: grass/src/CMD/lists GRASS,1.132,1.133
....
 #src/sites/s.kcv  # needs update to 5.0 API
....

 
Markus Neteler wrote:
> 
> 
> > I tried to compile it myself but I am getting a similar error as with the
> > g3. command in 5.7 - it tries to write into /etc/bin which does not exist (see below)
> 
> That's odd. I get:
> 
> make[1]: Leaving directory `/hardmnt/thuille1/ssi/cvsgrass_exp/src/sites/s.kcv'
> 
> So it writes (as it should) to /nfsmnt/thuille1/ssi/cvsgrass_exp/grass-build/dist.i686-pc-linux-gnu/etc/bin/cmd/s.kcv
> 
> I feel that the part /path/to/dist.i686-pc-linux-gnu/ is missing in your case.

> 
> > gcc
> > -L/home/helena/grasscvs53/grass50_exp_2003_10_04/src/libes/LIB.i686-pc-linux-gnu  -o /etc/bin/cmd/s.kcv OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/dreset.o OBJ.i686-pc-linux-gnu/histo.o OBJ.i686-pc-linux-gnu/utils.o -lgis   -ldatetime -lm  -lz
> > /usr/bin/ld: cannot open output file /etc/bin/cmd/s.kcv: No such file or
> > directory
> > collect2: ld returned 1 exit status
> > make: *** [/etc/bin/cmd/s.kcv] Error 1
> 
> Somehow the path prefix got lost.
> 
> Markus




More information about the grass-dev mailing list