Game Development Community

Dead build on a Mac

by Scott Coursey · in RTS Starter Kit · 11/11/2004 (8:09 pm) · 14 replies

I just cracked the source on my VPC and compiled under XCode. I have an error about "terrRender2.cc" missing (just renamed the target to "terrRender.cc").

My other errors are:

Undefined symbols:
VisManager::processClient()
VisManager::processServer()
_gClientVisManager
_gServerVisManager

Clues?

#1
11/11/2004 (8:14 pm)
Check to make sure your target file (whatever it is for Mac, I honestly do not know) includes:

game/RTS/visManager.cc \

All of the new source files for the RTS pack that I am aware of (taken from targets.torque.mk, which works for linux style compiles):

SOURCE.GAME.RTS=\
game/RTS/RTSBuilding.cc \
game/RTS/rtsConnection.cc \
game/RTS/visManager.cc \
game/RTS/RTSCamera.cc \
game/RTS/RTSUnit.cc \
game/RTS/RTSProjectile.cc \
game/RTS/guiMapHud.cc \
game/RTS/guiMapHudGen.cc \
game/RTS/guiMapHudRender.cc \
game/RTS/guiRTSTSCtrl.cc
#2
11/12/2004 (12:45 am)
Got it. Thanks.

For anyone else who wants to build on a Mac, drop the engine/game/RTS folder into the torque_pb_2_1 project in XCode (make it active for Debug and Release), and also add the engine/terrain/terrSelection.cc file to terrain.

It built. Now I can test it later (need sleep).
#3
11/12/2004 (1:07 am)
Cool Scott, let me know how it goes. I was trying to get a Mac build going here, but it was hard crashing. Also, with XCode 1.5 it had some really strange problems. I think I fixed the crash bug during an all-night bug fixing session, but we didn't have time to solidly test it before launching.

Btw, what version of XCode are you using? And what version of OS X? Are you on a G3, G4, or G5? Thanks for the info! Hope to have the Mac build up on the site on Monday.
#4
11/12/2004 (3:46 am)
Hm. I haven't updated my XCode in a while. It says it's still 1.1. I'll have to get a newer version.

I'm running on OS X 10.3.6 on a PowerBook G4.

The only problem I'm noticing is the CTRL-Wheel (camera angle). It doesn't do anything.
#5
11/12/2004 (3:56 am)
I seem to remember vaguely that windows keybinds are treated slightly differently from Mac/Linux (my Linux developer mapped some new commands once that worked fine on his linux box, but I could get them to work after a full svn update from our script repo).

Unfortunately, I can't remember what exactly I had to do to fix it, but you may want to patch in a keypress bind and see if that works first (to test functionality), and then explore the key-mouse mapping combo.
#6
11/12/2004 (5:04 am)
Ok, I just updated to XCode 1.5 and rebuilt the Release version. Everything works the same (including the CTRL-WMB). No surprises.
#7
11/12/2004 (10:20 am)
Awesome. Great news, thanks Scott.
#8
11/12/2004 (11:53 am)
Woot! I hadn't had time to check my fixes, but glad it's working. I'll get time to finish up testing this over the weekend, and then we should get an official mac installer out on Monday. Yay!

Thanks much for the info Scott.
#9
11/22/2004 (2:31 pm)
Alright, well, I'm having problems with it... On a clean build of just the RTS kit on its own, the application starts up, but does nothing.
#10
11/22/2004 (9:57 pm)
That's exactly what I see in mine. How long do you delay before you kill it? What machine are you running?
#11
11/22/2004 (10:00 pm)
Odd, Seth. Seems like part of your post disappeared.
#12
11/22/2004 (10:03 pm)
I have a G5 with 10.3.6. I'm letting it spin (it's been going for several minutes now). I originally only waited about 30 seconds and force-quit it. In the console there were only a couple of lines, but when I ran it again (and let it go longer) it started doing more....

Right now it's dying here:

[edit]Removed because it's pointless now that I've solved the problem and because it was making the page too wide.[/edit]
#13
11/22/2004 (10:06 pm)
Yeah, I deleted the message because everything in it turned out to be false just after I posted it. This is where I'm at now. Stepping through with the debugger, it appears to be spazzing out somewhere during script compiling?
#14
11/22/2004 (10:10 pm)
DUH!!!!!

Delete all the .dso files. lol... I feel silly.