Magnatune: We Are Not Evil
  POV-Ray : Newsgroups : povray.unofficial.patches : MCPov web page (montecarlo path tracing patch) : Re: MCPov web page (montecarlo path tracing patch) Server Time: 7 Sep 2008 01:54:32 GMT
  Re: MCPov web page (montecarlo path tracing patch)  
From: triple r
Date: 12 May 2008 17:20:00
Thanks!  Very exciting.  Some minor hiccups on compiling on Intel Mac OS X
10.5.2 with gcc 4.0.1, which should be a decent measure of compiling on Linux.
Just a few quick fixes and it compiles just fine, although I haven't actually
tested it yet.  Here are the errors, unabridged:

 - Ricky





In file included from render.cpp:55:
optout.h:69:1: warning: "DISTRIBUTION_MESSAGE_2" redefined
In file included from ../unix/config.h:91,
                 from frame.h:58,
                 from render.cpp:44:
.../conf.h:14:1: warning: this is the location of the previous definition
In file included from rendctrl.cpp:66:
optout.h:69:1: warning: "DISTRIBUTION_MESSAGE_2" redefined
In file included from ../unix/config.h:91,
                 from frame.h:58,
                 from rendctrl.cpp:41:
.../conf.h:14:1: warning: this is the location of the previous definition
render.cpp: In function ‘int pov::compute_noise_bitmap(long int, long int, long
int, long int, long int, float*)’:
render.cpp:1837: error: name lookup of ‘i’ changed for new ISO ‘for’ scoping
render.cpp:1724: error:   using obsolete binding at ‘i’
render.cpp:1852: error: ‘ABS’ was not declared in this scope
make[3]: *** [render.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


g++ -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../source/base -I../source/frontend
-I../source/patches -I../unix -I../libraries/png -I../libraries/tiff/libtiff
-I../libraries/tiff/libtiff -I../libraries/jpeg -I/usr/X11/include   -pipe
-Wno-multichar -s -O3 -ffast-math -malign-double -minline-all-stringops
-march=i686 -mtune=i686  -c -o montecarlo.o montecarlo.cpp
montecarlo.cpp: In function ‘void
pov::init_2d_LHS(pov::TS_Latin_Hypercube_Sampler*, int)’:
montecarlo.cpp:471: error: name lookup of ‘i’ changed for new ISO ‘for’ scoping
montecarlo.cpp:463: error:   using obsolete binding at ‘i’
montecarlo.cpp: In function ‘void pov::rotate_axis(double*, double*)’:
montecarlo.cpp:501: error: ‘ABS’ was not declared in this scope
montecarlo.cpp: In function ‘void pov::sample_hemisphere(double*, double*, int,
int)’:
montecarlo.cpp:541: error: no matching function for call to ‘max(float, double)’
montecarlo.cpp: In function ‘void pov::sample_double_hemisphere(double*, int,
int, double&, double&)’:
montecarlo.cpp:561: error: no matching function for call to ‘max(float, double)’
montecarlo.cpp: In function ‘void pov::sample_hemisphere_cosine(double*,
double*, int, int, double&)’:
montecarlo.cpp:601: error: no matching function for call to ‘max(float, double)’
montecarlo.cpp: In function ‘bool pov::ProjectTriToHemisphere(const double*,
const double (*)[3], pov::Triangle&)’:
montecarlo.cpp:726: error: name lookup of ‘i’ changed for new ISO ‘for’ scoping
montecarlo.cpp:707: error:   using obsolete binding at ‘i’
make[1]: *** [montecarlo.o] Error 1
make: *** [all-recursive] Error 1


Post a reply to this message

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