Compiling in MacOS X 10.2?

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
The one and only ;-)
Private First Class
Private First Class
Posts: 13
Joined: Fri Jan 03, 2003 10:14 am
Location: Austin, TX

Compiling in MacOS X 10.2?

Post by The one and only ;-) »

Has anyone had any luck getting a compile to work under MacOS X?

I've played with it a bit. I had to undefine availability for a couple of
floating point functions (can't remember which). Now, I'm getting

BackgroundRenderer.cxx:323: prototype for `void
BackgroundRenderer::setCelestial(const SceneRenderer&, float*, float*)' does
not match any in class `BackgroundRenderer'
BackgroundRenderer.h:46: candidate is: void
BackgroundRenderer::setCelestial(const SceneRenderer&, const float*, const
float*)

Look familiar to anyone? I can get past this by changing the prototype
to remove the consts, but then I fail in the link. (Actually, I think I run into
another prototype problem first -- it's been a while since I worked on this.)

Another interesting tihng to note: I get lots of these warnings (pretty much one for each file):
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning: as it has already been specified as a non-system directory
In file included from /usr/include/assert.h:14,
from ../../include/common.h:30,
from ../../include/global.h:21,
from BackgroundRenderer.cxx:13:
/usr/include/stdlib.h:77: warning: redeclaration of C++ built-in type `wchar_t'
In file included from ../../include/network.h:32,
from ../../include/Address.h:25,
from ../../include/Flag.h:22,
from World.h:28,
from BackgroundRenderer.cxx:19:
/usr/include/sys/param.h:66:1: warning: "BSD" redefined
BackgroundRenderer.cxx:1:1: warning: this is the location of the previous definition

I've got the latest developer tools installed which includes gcc 3.1.

Thanks for any help.

++Doug
User avatar
learner
General
General
Posts: 270
Joined: Sun May 11, 2003 2:06 am
Location: Maryland
Contact:

checked out the latest from cvs?

Post by learner »

Have you checked out the latest source from cvs for the v1_7 tag?

In the src/platform directory, there is a Project Builder project that will build the latest. It's not set up with all of the targets like the makefile system, but it'll get you what is released for the .dmg.

Several source files required header, option, and makefile twidling to get them to build properly. The biggest problem is in the include/common.h header where there is a block for floating point math routines that are suspect. If you want to go the makefile route, throw a #include <math.h> in there right before all of the redefinitions for the floating point math routines and you'll be 99% there.

The Project Builder project, of course, makes things so much more simple. Just needs a bunch of work to properly describe all of the existing targets (executables and library).
User avatar
learner
General
General
Posts: 270
Joined: Sun May 11, 2003 2:06 am
Location: Maryland
Contact:

Re: Compiling in MacOS X 10.2?

Post by learner »

;-) wrote:Has anyone had any luck getting a compile to work under MacOS X?

I've played with it a bit. I had to undefine availability for a couple of
floating point functions (can't remember which). Now, I'm getting

BackgroundRenderer.cxx:323: prototype for `void
BackgroundRenderer::setCelestial(const SceneRenderer&, float*, float*)' does
not match any in class `BackgroundRenderer'

.
.
.

++Doug
This problem has now been fixed by a recent patch. It's now possible to build using either the makefile or ProjectBuilder project.

Cheers!
Post Reply