Game Development Community

iTGB and Xcode 3.2 with Snow Leopard.

by Patrick Twohig · in Torque Game Builder · 09/27/2009 (10:21 pm) · 2 replies

So I downloaded iTGB and I'm having a problem building it from within Xcode. I can get the project found in engine/compilers/Xcode_iPhone to build just fine, but the project found under engine/compilers/Xcode isn't working at all. Here's the steps I've taken so far. Note I've tried both 1.2 and 1.3 (beta) versions of iTGB and nothing seems to work.

1) Installed the latest Xcode/iPhone SDK from ADC.
XCode's about page shows the following:
Xcode Version 3.2
Xcode IDE: 1610.0
Xcode Core: 1608.0
ToolSupport: 1591.0
2) Extracted the distribution of iTGB into an empty folder.
3) Opened engine/compilers/Xcode/Torque2D.xcodeproj
4) Set the Platform SDK to "Mac OSX 10.5 SDK" (I've also tried with 10.6)
5) Clicked "Build and Go", resutling in ~600 compile errors or so, mostly from openAL
6) I removed OpenAL from the build info and re-added it. Ensuring that I added the OpenAL provided with the system. No change.
7) I removed OpenAL from the build info and re-added it. Ensuring that I added the OpenAL provided with Torque Game Builder. No change.

So I'm stuck. The error is somewhere in the build environment, but I have no idea as to how to get it working right. If anybody has been able to get this working, let me know. I tried this same process with both iTGB 1.2 and iTGB 1.3 (beta) and nothing changed. Thanks in advance.

Here's the output of the build errors.
../../lib/openal/macosx/OpenAL.framework/Headers/al.h:87:0 ../../lib/openal/macosx/OpenAL.framework/Headers/al.h:87: error: invalid use of 'ALvoid'

../../lib/openal/macosx/OpenAL.framework/Headers/alc.h:43:0 ../../lib/openal/macosx/OpenAL.framework/Headers/alc.h:43: error: '<anonymous>' has incomplete type

../../lib/openal/macosx/OpenAL.framework/Headers/alc.h:43:0 ../../lib/openal/macosx/OpenAL.framework/Headers/alc.h:43: error: invalid use of 'ALCvoid'

../../lib/openal/macosx/OpenAL.framework/Headers/al.h:87:0 ../../lib/openal/macosx/OpenAL.framework/Headers/al.h:87: error: too few arguments to function 'ALenum alGetError(<type error>)'

/Users/patricktwohig/T2D_iPhone_Beta/engine/compilers/Xcode/../../source/audio/audio.cc:263:0 /Users/patricktwohig/T2D_iPhone_Beta/engine/compilers/Xcode/../../source/audio/audio.cc:263: error: at this point in file

#1
10/03/2009 (5:32 am)
I have the same issue when trying to compile TGB Game and the Editor with 4.2. I can compile iTGB 1.2 without problems, but I get this error for the iTGB Beta.

Did you find a solution to this problem?
#2
10/06/2009 (1:31 pm)
same here, anyone know how to fix this?

I get this in the crash report when trying to run a game too:

Process: TGBGame [4510]
Path: /Users/Joe/Downloads/T2D_iPhone_Beta/tgb/gameData/T2DProject/TGBGame.app/Contents/MacOS/TGBGame
Identifier: TGBGame
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: Torque Game Builder [4458]

Date/Time: 2009-10-06 16:33:11.182 +0000
OS Version: Mac OS X 10.6.1 (10B504)
Report Version: 6

Interval Since Last Report: 98558 sec
Crashes Since Last Report: 9
Per-App Crashes Since Last Report: 3
Anonymous UUID: 7DE9A896-DE53-473A-8B13-9C443863D73B

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0

Dyld Error Message:
Library not loaded: @executable_path/../Frameworks/Ogg.framework/Versions/A/Ogg
Referenced from: /Users/Joe/Downloads/T2D_iPhone_Beta/tgb/gameData/T2DProject/TGBGame.app/Contents/MacOS/TGBGame
Reason: image not found