POV-Ray : Newsgroups : povray.programming : Recompiling POV for NT and Pentium 2 : Re: Recompiling POV for NT and Pentium 2 Server Time
29 Jul 2024 06:24:30 EDT (-0400)
  Re: Recompiling POV for NT and Pentium 2  
From: Vahur Krouverk
Date: 7 Aug 1998 14:27:49
Message: <35CB393D.2126CC9@fv.aetec.ee>
Hello!

Steven Pigeon wrote:

> Hello All.
>
>  I've downloaded the source of PovRay and tried to compile
> it for Windows NT using MsVc 5.0. The goal is to produce a
> pentium 2 -friendly executable that use all possible optimisations
> for this cpu.

> MsVc5 rewrites the ressource file (as it was not created by it)
> and I get a lot of strange beheviors. Open dialogs are really
> big, it refuses to use the default .ini settings, etc... ?

Well, in this NG was thread about compiling PovRay with VC recently. Look for the
thread
"Problems Compiling POV 3.01 with Visual C++ 5.0", there are some tips given.

Dialogs big? Ain't it "missing initialization for font structure" error? (see the
above mentioned thread).

I had problems with default .ini file settings as well, when tried to run PovRay with
optimizations on. Apparentry file
parsing function didn't worked correctly, when optimized. My version of splitfn (in
pvmisc.c) is as follows (original version
used input parameter filename as temporary variable):

--8<------------>8--
int splitfn (char *filename, char *path, char *name, char *ext)
{
  char        *s ;
  char        str [_MAX_PATH] ;

  strcpy (str, filename) ;

  if (path != NULL)
    *path = '\0' ;
  if (name != NULL)
    *name = '\0' ;
  if (ext != NULL)
    *ext = '\0' ;

  if ((s = strrchr (str, '.')) != NULL)
  {
    if (ext)
      strcpy (ext, s) ;
    *s = '\0' ;
  }

  if ((s = strrchr (str, SEPARATOR)) != NULL)
  {
    if (name)
      strcpy (name, s + 1) ;
    *++s = '\0' ;
    if (path)
      strcpy (path, str) ;
  }
  else
    if (name)
      strcpy (name, str) ;

  return (0) ;
}
--8<------------>8--
Hope this helps.


Post a reply to this message

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