POV-Ray : Newsgroups : povray.binaries.programming : Mac Superpatch Adaption Kit : Re: Mac Superpatch Adaption Kit Server Time
19 Apr 2024 22:51:54 EDT (-0400)
  Re: Mac Superpatch Adaption Kit  
From: Chris Huff
Date: 23 Nov 1999 12:24:22
Message: <231119991227298575%chrishuff_99@yahoo.com>
I got the 3.1g preliminary version working, although very untested, all
I did was add your files to the ones from the 3.1g Superpatch source.
I had to add the files photons.c and isoblob.c to the project.
Here are the errors I got and the fixes I did for them, probably a
better way of fixing most of them.

Errors and warnings compiling Superpatch 3.1g preliminary version:

Error   : function call 'Warn(double, char *, char *)' does not match
'Warn(double, char *)'
photons.c line 990   Warn(1.0,"Could not save photon map
(%s)\n",photonOptions.fileName);

The fix(temporary):
Warn(1.0,"Could not save photon map \n");


Error   : ';' expected
isofunc.h line 48   HANDLE   hLib;

The fix(temporary, probably should add case for Mac version in addition
to UNIX):
replace the lines just above that line:
#ifdef UNIX
    typedef void * HANDLE;
#endif
with this:
    typedef void * HANDLE;


Error   : struct/union/enum/class tag 'Function_Struct' redefined
isofunc.h line 52   struct Function_Struct {

The fix: Remove the definition in isofunc.h


POV crashes on completion of render using isosurface
The fix(temporary, probably causes memory leak): In the file f_func.c,
in the function Destroy_Function(), comment out this line(line 1050):
      if (Func->pnum >0) POV_FREE (Func->parm);

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.