Thanks a lot for the report. I will look
into the cause of these warnings a little
later. Yes, r.cva eats up a lot of CPU
time but it is not really a memory hog.
It could be optimized but that would
require serious tweaking of the core
LOS code.
----- Originalnachricht -----
Von: Michael Barton <michael.barton@asu.edu>
Datum: Freitag, 29. Juli 2005 6:53 am
Betreff: Re: Gem compiling error
Here is a report on r.cva.
It looks to be a great tool. It seems to work pretty well, though
it takes a
surprising amount of time for it calculations. I've been running
over 10
minutes on my G4 Powerbook (1 GHz with 512 Mb RAM) with the Spearfish
dataset doing a cumulative viewshed for 6 sites across the 30m dem.It gives a series of warnings as it works that I don't
understand--especially the number of them given I'm only looking
at 6 sites.
(see below). It also eats up 60-90+% of my cpu resources, though
it doesn't
take a lot of RAM. I suppose it's doing a lot of swapping.One small bug. The browse button for elevation raster map only
seems to show
floating point maps. Basic integer maps are not seen, though it
seems I can
type them in.I hope this is helpful.
Thanks again for doing this.
MichaelAnyway here's the output so far...
r.cva input=elevation.dem sites=archsites_water100m
output=cva_archsitesobs_elev=1.75 target_elev=0.0 max_dist=20000
seed=1 sample=10.0 type=sites
curvc=0.0 -f -osegment_pagein: No such file or directory
GRASS_INFO_WARNING(11179,2): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,3): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,4): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,5): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,6): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,7): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,8): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,9): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,10): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,11): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,12): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,13): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,14): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,15): segment_pagein: Bad file descriptor
GRASS_INFO_WARNING(11179,16): segment_pagein: Bad file descriptor
[the progress bar is about half-way across the window at the moment]
On 7/28/05 10:26 AM, "benducke@compuserve.de" <benducke@compuserve.de>
wrote:> This sounds like the same bug you reported to me
> some time ago.
>
> tried to add this line:
>
> #include <sys/types.h>
>
> to every .c file that has:
>
> #include /usr/include/sys/dirent.h
>
> (make sure that types.h is included on a line
> preceeding dirent.h)
> This is a problem that often pops up on Mac mailing lists
> and is to do with Apple shipping corrupt system header files.
> I thought I had fixed this in the 0.95 release but obviously
> not ...
>
> As to why you get this problem on one machine and not on the other
> I have no clue.
>
> Cheers,
>
> Benjamin
>
> ----- Originalnachricht -----
> Von: Michael Barton <michael.barton@asu.edu>
> Datum: Mittwoch, 27. Juli 2005 0:40 am
> Betreff: Gem compiling error
>
>> Benjamin,
>>
>> I¹m a bit baffled. I had no problem compiling gem on myG5 desk.
>> However,when I tried it on my G4 PowerBook it didn¹t work. I¹m
>> sending the output
>> below. Maybe you can shed some light before I start digging
somewhat>> randomly.
>>
>> Both are running OSX 10.3.9 and (I think) have the same version of
>> Developer¹s Tools (though there may be some difference I¹m not
>> seeing).
>> Thanks for your help.
>> Michael
>> ____________________
>> C. Michael Barton, Professor of Anthropology
>> School of Human Evolution and Social Change
>> PO Box 872402
>> Arizona State University
>> Tempe, AZ 85287-2402
>> USA
>>
>> Phone: 480-965-6262
>> Fax: 480-965-7671
>> www: <www.public.asu.edu/~cmbarton>
>>
>>
>> - - - compile errors - - - -
>>
>> cmb-powerbook:~ cmbarton$ cd /downloads/gem-0.95
>> cmb-powerbook:/downloads/gem-0.95 cmbarton$ make
>> gcc -c at_exit_funcs.c -Wall
>> gcc -c error.c -Wall
>> gcc -c tools.c -Wall
>> gcc -c reg_deps.c -Wall
>> gcc -c reg_entries.c -Wall
>> /usr/include/sys/dirent.h:73: undefined type, found `u_int32_t'
>> /usr/include/sys/dirent.h:74: undefined type, found `u_int16_t'
>> /usr/include/sys/dirent.h:75: undefined type, found `u_int8_t'
>> /usr/include/sys/dirent.h:76: undefined type, found `u_int8_t'
>> cpp-precomp: warning: errors during smart preprocessing, retrying
>> in basic
>> mode
>> In file included from /usr/include/dirent.h:64,
>> from reg_entries.c:25:
>> /usr/include/sys/dirent.h:73: parse error before "u_int32_t"
>> /usr/include/sys/dirent.h:75: parse error before "d_type"
>> /usr/include/sys/dirent.h:76: parse error before "d_namlen"
>> /usr/include/sys/dirent.h:83: parse error before '}' token
>> reg_entries.c: In function `restore_entries_gisman':
>> reg_entries.c:650: dereferencing pointer to incomplete type
>> reg_entries.c:652: dereferencing pointer to incomplete type
>> reg_entries.c:652: dereferencing pointer to incomplete type
>> reg_entries.c:702: dereferencing pointer to incomplete type
>> reg_entries.c:703: dereferencing pointer to incomplete type
>> reg_entries.c:703: dereferencing pointer to incomplete type
>> make: *** [reg_entries.o] Error 1
>> cmb-powerbook:/downloads/gem-0.95 cmbarton$
>>
>>
>____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USAPhone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>