Game Development Community

Mac and TGB Platformer Kit PRO installation

by Eero Karvonen · in TGB Platformer Kit · 02/19/2012 (2:14 pm) · 5 replies

Hello,

I just bought the source version (PRO) of TGB Platformer Kit on my Mac. I've copied the files as instructed in the readme file:

ditto <src_dir> <dst_dir>

But the next instructions seem quite confusing and Windows-only. So I plainly ask, what do I have to do in order to compile the package into binary on my Mac? (Is there really some re-installing of TGB included in the process?)

Thanks in advance!

#1
02/26/2012 (10:34 am)
Somehow I got the PRO version of PSK working with just copying the files with "ditto" command. So there was no need to compile any files; apparently running any projects automatically compiles all necessary C++ source files too. But the installation instructions were bizarre, and I think there should be better instructions for the installation of a commercial package.
#2
11/13/2012 (3:59 pm)
@Eero: No, I'm a Mac user... Have you used Terminal?
#3
11/13/2012 (4:55 pm)
I think the main problem is TGB was not installed correctly. Do you have the latest version? If you don't have the latest version for each, just redownload them and try again.
#4
12/19/2012 (9:31 am)
I've been completely unable to build the PSK Pro in Xcode. I install the standard TGB Pro and can recompile it just fine if I use LVVM GCC 4.2 but then once I 'ditto' command the PSK Pro files into the folder and add the PlatformerKit source files to all five targets and try to recompile I get this error:

Ld "../../../tgb/Torque Game Builder Debug.app/Contents/MacOS/Torque Game Builder Debug" normal i386
    cd /Applications/Torque2D_Pro_1_7_6/engine/compilers/Xcode
    /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++-4.2 -arch i386 -L/Applications/Torque2D_Pro_1_7_6/engine/compilers/Xcode/../../../tgb -F/Applications/Torque2D_Pro_1_7_6/engine/compilers/Xcode/../../../tgb -filelist "/Users/chrishoopes/Library/Developer/Xcode/DerivedData/Torque2D-dodwgsyijmrkymbrxcrvhvznzsoi/Build/Intermediates/Torque2D.build/Default/Torque Game Builder Debug.build/Objects-normal/i386/Torque Game Builder Debug.LinkFileList" -lz -framework Accelerate -fobjc-link-runtime -framework AGL -framework Carbon -framework OpenGL -framework CoreFoundation -framework DrawSprocket -framework Cocoa -framework OpenAL -o "/Applications/Torque2D_Pro_1_7_6/engine/compilers/Xcode/../../../tgb/Torque Game Builder Debug.app/Contents/MacOS/Torque Game Builder Debug"

Undefined symbols for architecture i386:
  "t2dShape3D::getMountedShape(int)", referenced from:
      pskActor3D::getMuzzleVector()       in pskActor3D.o
      pskActor3D::getMuzzlePoint()       in pskActor3D.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

(null): "t2dShape3D::getMountedShape(int)", referenced from:
(null): PskActor3D::getMuzzleVector()       in pskActor3D.o
(null): PskActor3D::getMuzzlePoint()       in pskActor3D.o
(null): Symbol(s) not found for architecture i386
(null): Collect2: ld returned 1 exit status

Has anyone got this working in Xcode?
#5
12/19/2012 (9:57 am)
Whoop I seem to have gotten it working. Please see this thread: www.garagegames.com/community/forums/viewthread/132583/1#comment-837996