I just tried (for the N-th time) to install MCPov 0.0.5 on my AMD 64-bit Debian
Etch Linux system.
Intel C++ compiler refused to compile, complaining about something in the libpng
GNU C++ compiler produced only code that would do a fine job rendering the
benchmark, but segfault on any montecarlo scene.
Using valgrind I was able to track down the error to a statement in
userdisp.cpp, function POV_Std_Display_Init():
char *s = NULL;
fprintf(stderr, "%s", s);
Duh - how smart to deliberately try to print a NULL string (or an empty string,
for that matter)... well, anyway, changing patches.h to disable the
AVOID_EMPTY_STRING_WARNING patch would work around the issue.
As this is part of the MegaPOV 1.2.1 sources, I guess this is more of a general
MegaPOV problem rather than a MCPov specific thing.
Post a reply to this message