POV-Ray : Newsgroups : povray.unofficial.patches : NT command line Server Time
2 Sep 2024 14:13:43 EDT (-0400)
  NT command line (Message 1 to 6 of 6)  
From: D  H  Miller
Subject: NT command line
Date: 26 Jan 2000 21:51:19
Message: <388fb2a7@news.povray.org>
Can someone tell me if the MegaPov patch (0.3) can run under NT on a command
line?
thanks much,
D.



--
dhm### [at] mediaonenet
http://www.casdn.neu.edu/~dmiller


Post a reply to this message

From: Michael Andrews
Subject: Re: NT command line
Date: 27 Jan 2000 07:04:20
Message: <389034EC.2CC23F10@reading.ac.uk>
I've built a command line only port from the Linux (I think it was)
megapov source using the Cygnus Win32 compiler and it runs happily on
NT.

Bye for now,
	Mike Andrews.

"D. H. Miller" wrote:
> 
> Can someone tell me if the MegaPov patch (0.3) can run under NT on a command
> line?
> thanks much,
> D.
> 
> --
> dhm### [at] mediaonenet
> http://www.casdn.neu.edu/~dmiller


Post a reply to this message

From: Nathan Kopp
Subject: Re: NT command line
Date: 27 Jan 2000 21:29:14
Message: <3890fefa@news.povray.org>
D. H. Miller <dhm### [at] mediaonenet> wrote...
> Can someone tell me if the MegaPov patch (0.3) can run under NT on a
command
> line?
> thanks much,

I've compiled a win32 console version with MSVC for testing and it works.

-Nathan


Post a reply to this message

From: Michael Andrews
Subject: Re: NT command line
Date: 28 Jan 2000 06:08:45
Message: <38917967.6A2A6359@reading.ac.uk>
Actually, with some more testing, I find that it doesn't run happily. It
seems that #macro and possibly #if directives are causing problems. Are
these the constructs which use fseek() to move around the file? If so I
guess the Cygnus compiler is acting in a non-standard way with this.
Does anyone know of a fix for this behaviour? Or if the MingW32 does the
same?

I should probably post this to p.unix or p.programing, but this is
frustrating me as I'm trying to add a new warp type (the swirl effect I
made with multiple functions a time ago).

Any feedback would be appreciated.
	Mike Andrews.

Michael Andrews wrote:
> 
> I've built a command line only port from the Linux (I think it was)
> megapov source using the Cygnus Win32 compiler and it runs happily on
> NT.
> 
> Bye for now,
>         Mike Andrews.
> 
> "D. H. Miller" wrote:
> >
> > Can someone tell me if the MegaPov patch (0.3) can run under NT on a command
> > line?
> > thanks much,
> > D.
> >
> > --
> > dhm### [at] mediaonenet
> > http://www.casdn.neu.edu/~dmiller


Post a reply to this message

From: Nathan Kopp
Subject: Re: NT command line
Date: 28 Jan 2000 09:34:54
Message: <3891a90e@news.povray.org>
Michael Andrews <M.C### [at] readingacuk> wrote...
> Actually, with some more testing, I find that it doesn't run happily. It
> seems that #macro and possibly #if directives are causing problems. Are
> these the constructs which use fseek() to move around the file? If so I
> guess the Cygnus compiler is acting in a non-standard way with this.
> Does anyone know of a fix for this behaviour? Or if the MingW32 does the
> same?

#macro and #if both use fseek() and ftell(), and some compilers (including
MSVC++) can have problems with these.  MSVC++, for example, sometimes
assumes that your file is DOS format (using CR+LF for new line).  Cygnus may
assume the opposite.  For MSVC++, the solution is to convert form UNIX
format to DOS format.  (I use my editor, PFE, for this task.)  For Cygnus,
you may need to convert the opposite direction, but be aware that POV's
editor doesn't support UNIX format.

-Nathan


Post a reply to this message

From: Michael Andrews
Subject: Re: NT command line
Date: 31 Jan 2000 07:02:20
Message: <38957A7B.E09B45BA@reading.ac.uk>
Thanks Nathan.

I use PFE a lot too, and saving as UNIX format seems to fix the problem.

Is this behaviour caused by some sort of inconsistent usage of fseek()
and ftell() in the tokeniser? In my Cygnus setup ... ah! mount tells me
that my drive is not binary mounted, so it is doing the linefeed
conversion at this point and the tokeniser is getting less characters
than the file increments. So the number of characters read and the file
position offset start to drift. I think I understand the problem now.

Would this problem not be fixed by reading the file into memory? I guess
this would cause new problems for very large scene files ...

I'll have a go at finishing this warp patch now.

Bye for now,
	Mike Andrews.

Nathan Kopp wrote:
> 
> Michael Andrews <M.C### [at] readingacuk> wrote...
> > Actually, with some more testing, I find that it doesn't run happily. It
> > seems that #macro and possibly #if directives are causing problems. Are
> > these the constructs which use fseek() to move around the file? If so I
> > guess the Cygnus compiler is acting in a non-standard way with this.
> > Does anyone know of a fix for this behaviour? Or if the MingW32 does the
> > same?
> 
> #macro and #if both use fseek() and ftell(), and some compilers (including
> MSVC++) can have problems with these.  MSVC++, for example, sometimes
> assumes that your file is DOS format (using CR+LF for new line).  Cygnus may
> assume the opposite.  For MSVC++, the solution is to convert form UNIX
> format to DOS format.  (I use my editor, PFE, for this task.)  For Cygnus,
> you may need to convert the opposite direction, but be aware that POV's
> editor doesn't support UNIX format.
> 
> -Nathan


Post a reply to this message

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