gendaylit, dls, glare factors

i m osx beginner.
also rad beginner.
everything beginner.
you ll realize soon, reading my three questions ..;-)))))))))))

FIRST QUESTION:
while trying to compile gendaylit (on osx UNIX) i get this error:

% make
cc -Ae -g -c sun.c
cpp-precomp: Invalid option '-Ae'
make: *** [sun.o] Error 1

so i removed the -Ae tag (HP UNIX?) but with -ansi tag ...
... and another error message appeared

%make
cc -ansi -c sun.c
cc -ansi -c fropen.c
paths.h:62: only 1 arg to macro 'fropen' (2 expected)
fropen.c:20: only 1 arg to macro 'fropen' (2 expected)
fropen.c:20: illegal external declaration, missing `;' after `fropen'
fropen.c:26: illegal external declaration, found `if'
fropen.c:43: illegal method selector, found `1'
fropen.c:44: illegal method definition, missing `{' after `/'
fropen.c:46: illegal external declaration, found `if'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [fropen.o] Error 1

so i lost my faith...
...thinking i had to edit the c source.
is anybody so kind and nice to help me compiling such program?

SECOND QUESTION:
i found a java program, DLS, and i tried to use it.
BUT although i have a working radiance install on my ibook this program tells kindly that radiance cannot run on a MAC.
i think it understands that ti's working on apple VJM and stops.
any idea about the way of telling it it's wrong, that radiance CAN run on macOSX?

THIRD QUESTION:
glare calculation.
if i use IES files to generate proper radiance light sources, does radiance consider them in glare calculation?
which trick should i use to solve this (mapping luminance distribution on a glow material?)?

THANKS A LOT
[email protected]

pillo wrote:

i m osx beginner.
also rad beginner.
everything beginner.
you ll realize soon, reading my three questions ..;-)))))))))))

FIRST QUESTION:
while trying to compile gendaylit (on osx UNIX) i get this error:

% make
cc -Ae -g -c sun.c
cpp-precomp: Invalid option '-Ae'
make: *** [sun.o] Error 1

so i removed the -Ae tag (HP UNIX?) but with -ansi tag ...

yeap -Ae is for HPUX. One has to handtweak the compile options.

... and another error message appeared

%make
cc -ansi -c sun.c
cc -ansi -c fropen.c
paths.h:62: only 1 arg to macro 'fropen' (2 expected)
fropen.c:20: only 1 arg to macro 'fropen' (2 expected)
fropen.c:20: illegal external declaration, missing `;' after `fropen'
fropen.c:26: illegal external declaration, found `if'
fropen.c:43: illegal method selector, found `1'
fropen.c:44: illegal method definition, missing `{' after `/'
fropen.c:46: illegal external declaration, found `if'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
make: *** [fropen.o] Error 1

so i lost my faith...
...thinking i had to edit the c source.
is anybody so kind and nice to help me compiling such program?

Apparently OS-X on Mac has some macro fropen defined. The function
prototype in paths.h specifies only one argument for the function defined
in fropen.c .
Try to add a #undef fropen in line 9 of paths.h .

-Peter

···

--
pab-opto, Freiburg, Germany, www.pab-opto.de

thanks a lot for giving me the LIGHT!!!!
now IT WORKS!!!
WWWWWW

[email protected]

PS other questions still remain unsolved... so if anybody knows about....

reply (1.74 KB)

···

Da: Peter Apian-Bennewitz <[email protected]>
Data: 18/03/2002 10:51
A: [email protected]
Oggetto: Re: [Radiance-general] gendaylit, dls, glare factors

pillo wrote:

> i m osx beginner.
> also rad beginner.
> everything beginner.
> you ll realize soon, reading my three questions ..;-)))))))))))
>
> FIRST QUESTION:
> while trying to compile gendaylit (on osx UNIX) i get this error:
>
> % make
> cc -Ae -g -c sun.c
> cpp-precomp: Invalid option '-Ae'
> make: *** [sun.o] Error 1
>
> so i removed the -Ae tag (HP UNIX?) but with -ansi tag ...

yeap -Ae is for HPUX. One has to handtweak the compile options.

>
> ... and another error message appeared
>
> %make
> cc -ansi -c sun.c
> cc -ansi -c fropen.c
> paths.h:62: only 1 arg to macro 'fropen' (2 expected)
> fropen.c:20: only 1 arg to macro 'fropen' (2 expected)
> fropen.c:20: illegal external declaration, missing `;' after `fropen'
> fropen.c:26: illegal external declaration, found `if'
> fropen.c:43: illegal method selector, found `1'
> fropen.c:44: illegal method definition, missing `{' after `/'
> fropen.c:46: illegal external declaration, found `if'
> cpp-precomp: warning: errors during smart preprocessing, retrying in
> basic mode
> make: *** [fropen.o] Error 1
>
> so i lost my faith...
> ...thinking i had to edit the c source.
> is anybody so kind and nice to help me compiling such program?

Apparently OS-X on Mac has some macro fropen defined. The function
prototype in paths.h specifies only one argument for the function defined
in fropen.c .
Try to add a #undef fropen in line 9 of paths.h .

-Peter

--
pab-opto, Freiburg, Germany, www.pab-opto.de