POV-Ray : Newsgroups : povray.programming : Atempting MPW Compile ? Server Time
25 Dec 2024 10:57:19 EST (-0500)
  Atempting MPW Compile ? (Message 1 to 10 of 26)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Moon47
Subject: Atempting MPW Compile ?
Date: 5 May 2000 23:20:40
Message: <391240BA.BBBBCD38@earthlink.net>
Attempting MPW Compile ?
With little luck...
Any help would be graciously appreciated... =)
Major prob., is w/ sysMacPict.c. Listing the errors below...
I have read and tried the post in Macintosh.Users.Group "Compile 3.1g r2
under MPW MrC" by Y.Tanabe with varying success. i.e. some changes were
not sensible?

(1)These are the errors received w/ the sysMacPict from Y.Tanabe:
(2)The second set are errors from the original sysMacPict:

(1)...-->
# 5/4/00 8:43:39 PM ----- Building :mpwobj:sysMacPict.c.o
MrC C Compiler 4.1.0f1c1
Copyright (C) 1994-1999 by Apple Computer, Inc.

header size in bytes
       ^
File ":MacSource:sysMacPict.c"; line 153 #Error: missing ',' between
declaration of 'header' and 'size'
#-----------------------
} PictFHeader, *PictFHeaderPtr;
^
File ":MacSource:sysMacPict.c"; line 159 #Error: ';' or ',' expected
#-----------------------
file handle") ;
           ^
File ":MacSource:sysMacPict.c"; line 269 #Lexical error: unterminated
string
#-----------------------
                Error("PICT is to big, maximal width of PICTs to read is

                                                                       ^

File ":MacSource:sysMacPict.c"; line 391 #Lexical error: unterminated
string
#-----------------------
This way
     ^
File ":MacSource:sysMacPict.c"; line 426 #Error: missing ',' between
declaration of 'This' and 'way'
#-----------------------
Fatal error: too many errors
### MPW Shell copy - Execution of Pov-Ray.makeout terminated.
### MPW Shell copy - Execution of BuildProgram terminated.

(2)...-->
# 5/2/00 10:01:29 PM ----- Building :mpwobj:sysMacPict.c.o
MrC C Compiler 4.1.0f1c1
Copyright (C) 1994-1999 by Apple Computer, Inc.

class MacFile
      ^
File ":MacSource:sysMacPict.c"; line 111 #Error: missing ',' between
declaration of 'class' and 'MacFile'
#-----------------------
                virtual ~MacFile() { };
                        ^
File ":MacSource:sysMacPict.c"; line 115 #Error: ';' or ',' expected
#-----------------------
                virtual void WriteLine(COLOUR *line_data, int
line_number) = 0;
                        ^
File ":MacSource:sysMacPict.c"; line 117 #Error: ';' or ',' expected
#-----------------------
                virtual int ReadLine(COLOUR *line_data, int
*line_number) = 0;
                        ^
File ":MacSource:sysMacPict.c"; line 118 #Error: ';' or ',' expected
#-----------------------
};
^
File ":MacSource:sysMacPict.c"; line 119 #Error: ';' or ',' expected
#-----------------------
Fatal error: too many errors
### MPW Shell copy - Execution of Pov-Ray.makeout terminated.
### MPW Shell copy - Execution of BuildProgram terminated.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Atempting MPW Compile ?
Date: 6 May 2000 12:03:12
Message: <39144240@news.povray.org>
In article <391240BA.BBBBCD38@earthlink.net> , Moon47 <rdm### [at] earthlinknet>
wrote:
> Attempting MPW Compile ?
> With little luck...

It is currently not possible to compile POV-Ray 3.1g with MrC without a good
portion of knowledge about mixed C/C++ compiles using MrC.  When releasing
the source code for 3.1g I simply forgot to update the makefile, and it
would have taken some time to fix it so you can compile again anyway.

> (1)These are the errors received w/ the sysMacPict from Y.Tanabe:
> (2)The second set are errors from the original sysMacPict:

For reasons of stability I suggest to use CodeWarrior, especially if you
have no or little experience with MPW and the MrC compiler or with C/C++ in
general.


       Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Moon47
Subject: Re: Atempting MPW Compile ?
Date: 6 May 2000 13:33:15
Message: <3913088E.C534BA89@earthlink.net>
So the problems with sysMacPict exist in the makefile and not the .c &
.h files for sysMacPict...? It would help if i knew where to hunt down
the problem... Once again i have fixed current problems up until
sysMacPict. It has given me the most trouble...?

> It is currently not possible to compile POV-Ray 3.1g with MrC without
a good
> portion of knowledge about mixed C/C++ compiles using MrC.  When
releasing
> the source code for 3.1g I simply forgot to update the makefile, and
it
> would have taken some time to fix it so you can compile again anyway.

I was not happy with the CodeWarrior evaluation copy i received.
Therefore i have given up on that idea until 1. I have a new computer
that will handle the evaluation disks i currently have... ( long story )
... in short the evaluation disks will not work on my computer
specifically and they don't know why... =(
2. I have $ to buy a copy of CodeWarrior.

Yes my knowledge is minimal with C and none with C++. I have been
teaching myself C with MPW at home and plan to take C++ in the fall...

> For reasons of stability I suggest to use CodeWarrior, especially if
you
> have no or little experience with MPW and the MrC compiler or with
C/C++ in
> general.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Atempting MPW Compile ?
Date: 6 May 2000 15:50:29
Message: <39147785@news.povray.org>
In article <3913088E.C534BA89@earthlink.net> , Moon47 <rdm### [at] earthlinknet>
wrote:

> So the problems with sysMacPict exist in the makefile and not the .c &
> .h files for sysMacPict...? It would help if i knew where to hunt down
> the problem... Once again i have fixed current problems up until
> sysMacPict. It has given me the most trouble...?

No, the problem is rather strange:  The early versions of POV-Ray 3.1,
including at least 3.1 and 3.1a used a different sysMacPict code.
I then rewrote it and placed it into a two classes and wrote an adaptation
layer (from C++ to the C function POV-Ray expects) to more easily switch
between Pict and Movie output.  As CodeWarrior allows to mix C and C++
source files without requiring to switch compilers there are no problems
there.  With the MPW MrC compiler things are different and you actually need
MrC to compile most of the source and MrCpp to compile sysMacPict.cp .
there is only one catch: The linker does not like the slightly different
object formats, at least the last time I tried.

The real solution to the problem would involve the following steps in
splitting up the MPW makefile:

- move the PNG sources into a static library -> new makefile using MrC
- move the ZLIB sources into a static librar y -> new makefile using MrC
- remove the PNG and ZLIb sources from the current POV-Ray makefile
- add the PNG and ZLIB static libraries to the current POV-Ray makefile
- change the POV-Ray makefile to use MrCpp
- build PNG and ZLIb libraries, then build POV-Ray

I will do this for the POV-Ray Mac 3.5 source files, but my time does not
permit me to do this for 3.1 right now :-(


       Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Moon47
Subject: Re: Atempting MPW Compile ?
Date: 6 May 2000 16:54:39
Message: <391337C1.805E9D4E@earthlink.net>
Thank you this does help... Not allot, but that is fault of my low
knowledge and understanding. But hopefully as this grows this will give
me a direction to start in to solve the problem. thank you again for
your input...

> I will do this for the POV-Ray Mac 3.5 source files, but my time does
not
> permit me to do this for 3.1 right now :-(

Understandable...
Cant Wait to see what is in store...


Post a reply to this message

From: Moon47
Subject: Re: Atempting MPW Compile ?
Date: 7 May 2000 14:57:10
Message: <39146DBC.A614DB9C@earthlink.net>
I am trying to compile w/ out the pesky sysMacPict till i have time to
read up and fix the make file as suggested...
I ran into another problem:

 if(GetControlData(controlList, 0, kControlListBoxListHandleTag,
sizeof(ListHandle), (Ptr)(&list), &actualSize) != noErr)
                                   ^
File ":MacSource:TextEditorUtils.c"; line 501 #Error: undefined
identifier 'kControlListBoxListHandleTag'

Why is this where should this have been defined...?


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Atempting MPW Compile ?
Date: 7 May 2000 17:07:41
Message: <3915db1d$1@news.povray.org>
In article <39146DBC.A614DB9C@earthlink.net> , Moon47 <rdm### [at] earthlinknet>
wrote:

> I am trying to compile w/ out the pesky sysMacPict till i have time to
> read up and fix the make file as suggested...
> I ran into another problem:
>
>  if(GetControlData(controlList, 0, kControlListBoxListHandleTag,
> sizeof(ListHandle), (Ptr)(&list), &actualSize) != noErr)
>                                    ^
> File ":MacSource:TextEditorUtils.c"; line 501 #Error: undefined
> identifier 'kControlListBoxListHandleTag'
>
> Why is this where should this have been defined...?
>

Two possible reasons: Either your Universal Interfaces are too old, I think
3.2 is required. Or, ControlDefinitions.h is not included properly.


     Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Moon47
Subject: Re: Atempting MPW Compile ?
Date: 8 May 2000 20:09:38
Message: <39160878.F3C312FD@earthlink.net>
Thank you,

I believe that anything having to do w/ C/C++ is most current including
interfaces. Although i am not sure what "Universal Interfaces" are i
have nothing ( as far as i know ) titled "universal..." in MPW...

ControlDefinitions.h was not included at all as far as i could see i
included it after TextEditorUtils.h at the top... it ran fine...

More problems w/: LIGHTING.c

I appreciate all the help. I hope this does not take out too much of
your time.
Btw would this dissuasion be better fit in the Bug Report forum ? If so
maybe i should start a new thread in Bug Report...?

Thanks again this will help immensely in the long run...
And keep in mind i am in no hurry, reply at your own convenience... I
still have other studding to do besides working on the bugs... Thanks...
Ryan Mooney.

# 5/7/00 5:57:54 PM ----- Building :mpwobj:LIGHTING.c.o
MrC C Compiler 5.0.0d1c1
Copyright (C) 1994-2000 by Apple Computer, Inc.

        Warp_EPoint(TPoint, IPoint, (TPATTERN *)Texture);
                                                       ^
File ":SOURCE:LIGHTING.c"; line 2230 #Error: 4 actual arguments expected
for Warp_EPoint
#-----------------------
        Warp_EPoint (TPoint, IPoint, (TPATTERN *)Texture);
                                                        ^
File ":SOURCE:LIGHTING.c"; line 2238 #Error: 4 actual arguments expected
for Warp_EPoint
#-----------------------
    Warp_EPoint (TPoint, IPoint, (TPATTERN *)Texture);
                                                    ^
File ":SOURCE:LIGHTING.c"; line 2270 #Error: 4 actual arguments expected
for Warp_EPoint
#-----------------------
            (void)Compute_Ambient(Intersection->IPoint, Raw_Normal,
AmbCol, Weight * Max_Radiosity_Contribution);

^
File ":SOURCE:LIGHTING.c"; line 2497 #Error (Arg #3): cannot implicitly
convert
from: (float *)
to  : (double *)
#-----------------------
}
^
File ":SOURCE:LIGHTING.c"; line 2702 #
### Warning 29: Local variable 'Normal_Direction' is not used within
function 'compute_lighted_texture'
#-----------------------
### MPW Shell copy - Execution of Pov-Ray.makeout terminated.
### MPW Shell copy - Execution of BuildProgram terminated.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Atempting MPW Compile ?
Date: 8 May 2000 22:47:14
Message: <39177c32$1@news.povray.org>
In article <39160878.F3C312FD@earthlink.net> , Moon47 <rdm### [at] earthlinknet>
wrote:

> I believe that anything having to do w/ C/C++ is most current including
> interfaces. Although i am not sure what "Universal Interfaces" are i
> have nothing ( as far as i know ) titled "universal..." in MPW...

It is the "Interfaces&Libraries" folder, you can always get the most recent
version of Universal Interfaces (basically header files and stub libraries)
from <http://developer.apple.com/sdk/index.html>.

> ControlDefinitions.h was not included at all as far as i could see i
> included it after TextEditorUtils.h at the top... it ran fine...
>
> More problems w/: LIGHTING.c
>
> I appreciate all the help. I hope this does not take out too much of
> your time.

No problem, I should have checked the MPW makefile before releasing the
source code.  The thing is that MPW MrC compiles have always been a mess to
set up, CodeWarrior is easier to use and allows to forget about such issues
like header files at all (also this is not always good) by using precompiled
headers (which is also faster when compiling complex projects like POV-Ray).

But I have to admit that I really do not know why the casts and function
calls in lighting.c should not compile, the only idea I can come up with is
that you have some ANSI C or strong error checking option activated.

BTW, you should not be using MrC 5.0.0d1c1, this is definitely a bad idea
(especially with MrC where they are still fixing the parser to support full
ISO C++ using a "developmental", meaning pre-alpha version is a bad idea).
You should use MrC 4.1 (the current final version of MrC) and once you get
there, you should also make sure you are running the final PPCLink in case
you are not.

> Btw would this dissuasion be better fit in the Bug Report forum ? If so
> maybe i should start a new thread in Bug Report...?

No, povray.programming is the right group.  For all practical purposes the
source code is unsupported anyway, so there is no way to report compiling
problems as bugs :-)


      Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Moon47
Subject: Re: Atempting MPW Compile ?
Date: 10 May 2000 02:04:51
Message: <3917AD3C.3087475B@earthlink.net>
Last one i hope i almost thought i was done...
Well only 30 or so more files to go out of a couple hundred...
Any idea... Why is it trying to "convert" int to what looks like a call
to some funct? File OPTIN.c.o:

# 5/8/00 11:53:02 PM ----- Building :mpwobj:OPTIN.c.o
MrC C Compiler 4.1.0f1c1
Copyright (C) 1994-1999 by Apple Computer, Inc.

             Histogram_File_Handle = GET_SYS_FILE_HANDLE () ;
                                                            ^
File ":SOURCE:OPTIN.c"; line 1653 #Error: cannot implicitly convert
from: (int)
to  : (struct file_handle_struct *)
#-----------------------
### MPW Shell - Execution of Pov-Ray.makeout terminated.
### MPW Shell - Execution of BuildProgram terminated.


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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