|
![](/i/fill.gif) |
Ron,
Thank yoy very much for helping me. I really apreciate that.
At this time I am trying to compile your sources, but I found
some errors. Two of them I could fix, but about the third I am
not sure what to do exactly, I do not much about the sources,
perhaps you can help with this problem.
Bug report :
First:
In the makefile there is a little error. I think the two
lines beginning with C:\.... are there accidently.
......
radiositDEP = $(SRCDIR)/radiosit.c \
C:\Cygnus\B19\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\egcs-2.91.57\..\..\..\..\i386-cygwin32\include\string.h
\
C:\Cygnus\B19\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\egcs-2.91.57\..\..\..\..\i386-cygwin32\include\_ansi.h
\
$(SRCDIR)/frame.h config.h $(SRCDIR)/lighting.h $(SRCDIR)/point.h
$(SRCDIR)/vlbuffer.h $(SRCDIR)/bbox.h $(SRCDIR)/vector.h \
$(SRCDIR)/povray.h $(SRCDIR)/atmosph.h $(SRCDIR)/camera.h
$(SRCDIR)/media.h
.....
Second:
file f_func.c line 207
//*(calc_stack_top)= pow(
ABS(*(calc_stack_top)),*(calc_stack_top+1));
An ansi C Compiler does not understand the // - comment and it is
confusing
because of the * after the // to. I changed it that way :
/* *(calc_stack_top)= pow(
ABS(*(calc_stack_top)),*(calc_stack_top+1)); */
otherwise I had some errors
Third:
Here I don't know exactly what to do.
"../f_param.c", line 78: error(1164): argument of type "OBJECT *" is
incompatible with parameter of type "PARAMETRIC *"
if (! Intersect_Par_Box (Ray, Object, &Depth1, &Depth2, &Side1,
&Side2))
^
I put here a cast in like :
if (! Intersect_Par_Box (Ray, (PARAMETRIC*)Object, &Depth1,
&Depth2, &Side1, &Side2))
"../f_param.c", line 501: error(1143): declaration is incompatible with
"PRECOMP_PAR_DATA *Precompute_Parametric_Values(PARAMETRIC *,
char,
int)" (declared at line 158 of "../isosrf.h")
PRECOMP_PAR_DATA *Precompute_Parametric_Values (Par, flags, depth)
^
This problem I think I fixed by changing the line from
PRECOMP_PAR_DATA *Precompute_Parametric_Values (Par, flags, depth)
PARAMETRIC *Par;
char flags;
int depth;
to
PRECOMP_PAR_DATA *Precompute_Parametric_Values (PARAMETRIC * Par, char
flags, int depth)
Now it finished compilation but I am not sure if the cast will do the
job
during runtime. What do you think about that?
I am looking forward to hearing from you.
chris
> On Fri, 21 May 1999 11:12:00 -0500, Christian Wietholt wrote:
> >Hi folks,
> >
> >has anybody compiled the Superpatch for POVRay in an Unix
> >enviroment. Can anybody give me advice how to do this?
> >
> >I will appreciate any help
>
> It took me a while, but I succeeded in getting the superpatch
> to build with the Unix sources and the Cygwin toolkit under
> Windows NT. You should be able to use my makefiles and other
> modifications to build it with the standard GNU tools under
> your favorite Unix. I can't maintain my website from here,
> so you'll have to go over to povray.binaries.programming to
> get the patch. Just unzip it in your source directory (it
> should replace frame.h, parse.h, and unix/makefile) and make
> it as you usually would.
>
> For obvious reasons, I haven't tested this with the X or SVGA
> versions. If anyone has any problems with those, let me know.
>
> This does not include the shared library support, as far as I
> know. I need to consult the original isosurface materials to
> figure out how that's supposed to work, and those are at home.
Post a reply to this message
|
![](/i/fill.gif) |