Game Development Community

Problems compiling on Mac

by Nmuta Jones · in Torque Game Engine · 01/03/2010 (3:11 pm) · 5 replies

I just bought a used Mac Mini that runs OSX 10.4 (Tiger, I think)

I am a TGE 1.5.2 and AFX license owner.

I have been compiling on PC for a year now. My code is based on the latest AFX for TGE.

I took my whole AFX folder (with my custom engine files in it) and brought it onto my Mac Mini

when I try to compile with xcode 2.5, I get an error : Undefinded symbols:

www.mediabreeze.com/mac.jpg
sorry, the location of the files referenced is too long for the computer screen. But hopefully someone out there has seen this or knows what's going on. I apologize for my ignorace; never compiled on Mac before.

Here's what I have tried:

1. Fresh install of AFX on the Mac (which worked) , then dumping all of the SDK files from PC into the SDK files on Mac. Didn't work. Couldn't find some plist file.

2. Fresh install of AFX on Mac. then dumped ONLY the ENGINE folder from my PC SDK into the Mac folder. Did not work, produced error above (Undefined symbols).


What I am doing wrong? Is this a simple problem or does it take a bunch of detective work to get it to compile correctly on the Mac? Any nudge in the right direction would be appreciated. Thanks.


#1
01/03/2010 (8:49 pm)
You will want a newer OS and a newer version of Xcode. You NEED at least Leopard to follow the latest IDEs. An upgrade is fortunately cheap. Check Mac sites for info and where to buy something that works with your system.

It sort of looks like parts of the 10.4 SDK is missing, but having never suffered 2.x Xcode, I can't tell for sure. Most developers have Snow Leopard now, and even finding a system that still runs 10.4 is actually rare ;)

The general rule of thumb for Apple support is: "one version previous".
#2
01/04/2010 (1:58 am)
@Ronnie:
First of all, thanks so much for your reply. It's good to see that some of my problems may be related to using and older OS and older xcode.

Unfortunately, I bought an older, used Mac mini (it was built in 2005 some time I think) and the guy who sold it to me said that it can only be upgraded to Mac OSX 10.4

So i need to figure out how to make it work on the system I have now. Is this possible?

I need to know.
#3
01/04/2010 (5:16 am)
that does not sound right if your mac has an intel chip it will take the latest os.
I to run a mac mini
http://forums.macosxhints.com/archive/index.php/t-68459.html
check this out it might help ya
#4
01/04/2010 (11:13 am)
As Glitch said, any Intel-based mini will run 10.6; in addition, a PPC mini will run 10.5 "Leopard" - I'm running that on my G4 tower that was made in 1999! The guy who sold you the Mini doesn't know what he's talking about.

Anyway, none of that is particularly relevant. TGE uses a lot of deprecated functions and won't build against the 10.5 or 10.6 SDK without a lot of work. You have to build with the 10.4 SDK, regardless of what OS or Xcode version you're using. Newer Xcode versions naturally have additional features that you may find useful, but upgrading without using a newer SDK won't fix the above problem, and upgrading + using a newer SDK will create more problems!

When you say that you "dump[ed] all of the SDK files from PC into the SDK files on Mac," what "SDK files" are you talking about? When you say that it "couldn't find some plist file," what file are you talking about?

What (if any) compiler errors were there? The above is a linker error; the missing symbol it's complaining about could be missing because it failed to compile earlier. In general, diagnosing build errors in the order in which they appear is far more productive than trying to do so in reverse order.

Given that a brand-new install of TGE + AFX works, the most likely cause is your custom code. Does that include any new files, and if so did you remember to add them to the Xcode project? Does it use any Windows-specific functions? If so, those will need to be ported.
#5
01/04/2010 (11:27 am)
Thanks, guys.

IMPORTANT INFORMATION:
Stock AFX out of the box DOES COMPILE on my mac mini.

So I have gotten compiliation working with AFX. Just not with my source, which is AFX with several small engine changes. This source compiles fine on my PC.

Windows only function? Me thinks not.

but NO, I did NOT add the new C++ files to my xcode project. That may be the problem.

I will do so and report back.