Game Development Community

Yet more osx compile problems

by Jon Law · in Technical Issues · 09/26/2005 (9:57 pm) · 5 replies

Hi im running mac osx 10.4 and xcode 2.1 and i am having some serious problems compiling torque.
i followed the instructions in the documentation: i went to the pb folder, updated the project file, set my build folder to .../example and hit build and go.. Yet i get 157 errors similar to these

../engine/platform/event.h:127: error: 'data' was not declared in this scope
../engine/platform/event.h:127: error: expected primary-expression before ')' token
../engine/platform/event.h:127: error: a function call cannot appear in a constant-expression
../engine/platform/event.h:130: error: 'data' was not declared in this scope
../engine/platform/event.h:130: error: expected primary-expression before ')' token
../engine/platform/event.h:130: error: a function call cannot appear in a constant-expression
../engine/platform/event.h:133: error: 'data' was not declared in this scope
../engine/platform/event.h:133: error: expected primary-expression before ')' token
../engine/platform/event.h:133: error: a function call cannot appear in a constant-expression
../engine/audio/audioDataBlock.h:29: error: invalid use of member 'AudioEnvironment::mUseRoom' in static member function
../engine/audio/audioDataBlock.cc:102: error: from this location
../engine/audio/audioDataBlock.cc:102: error: expected primary-expression before ')' token
../engine/audio/audioDataBlock.cc:102: error: 'Offset' was not declared in this scope

i really have no clue what to do,
any help would be greatly appreciated. thanks in advance

#1
09/28/2005 (8:24 am)
See http://www.garagegames.com/mg/forums/result.thread.php?qt=31118

However, the fix there did not fully work for me, and I remain at a bit of a loss.

tone
#2
09/28/2005 (6:27 pm)
I still get the following errors...

../engine/platform/types.h:264:2: error: #endif without #if
../engine/platform/types.h:264:2: error: #endif without #if


i tried getting rid of one of the end ifs to see if i had copied one more than i was suppose to .. but then i just get all those original errors..
any help is Greatly appreciated
#3
09/30/2005 (9:48 pm)
Ok so i got somthing...

i download the cvs version of torque of the cvs server and discovered that there is much for included in it for mac. i was able to compile the engine with no problems immediatly after downloading. However with the version that is in the installer, ive had numerious problems, including problems with map2dif etc. with the cvs version however everything seems to be working fine
#4
04/19/2006 (3:30 pm)
So the CVS compiles with no errors? I hope so, as I have been pulling my hair out the last few days trying to correct the compile errors for torque.
#5
04/19/2006 (4:05 pm)
Often I have found that the countless compile errors I sometimes get have more to do with files that don't belong in the project than anything else.

There are a number of files included with the SDK that don't apply to the Mac build and should be removed from the project if they haven't been already. If they are left in, you get lots of confusing compile errors.