Game Development Community

ALPHA 1.1: Mac: Undefined symbols

by Scott Coursey · in Torque Game Builder · 11/24/2005 (10:54 pm) · 46 replies

I've successfully gotten T2D to build on my Mac. I could do a write-up on what I did, but most steps are covered elsewhere. The one thing I did find rather odd, and if anyone knows of a better way, then please let me know, was the use of "inline" in engine/T2D/t2dUtility.cc was breaking the final link.

I was getting errors such as:

/usr/bin/ld: warning prebinding disabled because of undefined symbols
/usr/bin/ld: Undefined symbols:
mSwap(float&, float&)
collect2: ld returned 1 exit status

The mSwap is an inline function inside t2dUtility.cc. I went in and removed all "inline" phrases and rebuilt. Everything worked. The T2D example also comes up nicely.

Now to play...
Page«First 1 2 3 Next»
#41
12/06/2005 (9:23 pm)
Unfortunately, that's where the phrase "ALPHA" comes in. According to Melv, in another thread, there are some functions that have not been written for the Mac yet.

So, saving GUIs and tile-maps won't work. You can hack the code together yourself, which would be a great help to others, or we can all wait until they "spread some love to the Mac" (to quote a GG emp).
#42
12/07/2005 (7:19 am)
I see. Has anyone given a time frame? I'd do it myself except I have no idea how.

-Peter
#43
12/07/2005 (9:38 am)
I think I saw a post that someone got this to work on Linux. Not sure if it'll work here.

I'm just happily playing around in 1.0.2, so I'll wait for anything further.
#44
12/16/2005 (4:01 am)
I'm getting a weird error, but probably because I added files to the project that don't need to be there. However, I noticed that event.h wasn't in the project (thus the reason I added some stuff). Now I'm getting an error in engine/gui/GuiControl.cc around line 25:
...cannot declare member 'GuiControl::smDesignTime' within 'GuiEditControl'
and about 247 other errors (no, really!) in that file.
I'm using Xcode 1.5 and GCC 3.3. Does anyone have a working project file I could get? Maybe I'll try again from scratch.
#45
12/16/2005 (5:20 am)
I resolved that error by moving the block of static variable definitions to the end of the source file, and moving the GuiEditControl * variable to the very last line. Maybe GCC 4 accepts them where they are, but GCC 3.3 doesn't like them at the start? Weird.

Ok, now I get a link error: 'libogg.0.dylib' is not prebound.

This must be because it's using the libogg.a from my /usr/local/bin/ directory, but it appears that the Vorbis.framework that comes with T2D is empty (the linker complains it can't find it even when I add it to the project). I guess I'll keep trying things unless someone replies. :)
#46
01/28/2006 (5:43 pm)
The regular (non-alpha) build apparently requires the changes in resManager.h, the enum change in event.h, and the ranlib operation for the vorbis libraries. I didn't have any other problems with the build.

10.4.4 XCode 2.0 powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0

These instructions should really be in the package, I get really dirty with things that don't compile before I've even had a chance to break them.
Page«First 1 2 3 Next»