Game Development Community

Building an empty project in Xcode produces 1145 errors

by Anders · in Torque 3D Professional · 09/03/2010 (12:45 am) · 2 replies

I created a new game project from the Torque 3D dashboard, clicked the button to open it in Xcode, and hit compile. I get 1145 of the following error:

Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

I think the problem is that it can't find any of the files it's trying to build. It's trying to build files at this path:

/Users/me/Torque_3D_2009_SDK_1_0_1_Mac/My Projects/MyGame/buildfiles/Xcode/Users/me/Torque_3D_2009_SDK_1_0_1_Mac/Engine/lib/lmng

I can't find where to change this path, though. I went to the project's Get Info and tried changing the search path, but it didn't work. I also added main.cpp from the correct location to the project. That got rid of 1 error.

Anyone know how I can fix it without having to manually add every code file to the project?

#1
09/03/2010 (2:30 am)
First check the global project settings (Project->Edit Project Settings->General->Base SDK). Make it use the 10.5 or 10.6 SDK (if on Snow Leopard). If you don't have at least 10.5 as an option, you will need to grab the latest Xcode 3.x and reinstall.

Then click Get Info… on the relevant target in the tree hierarchy, and check that the Build settings also use an existing SDK.

Finally try changing between different Xcode versions if 4.2 won't build. The more modern, the higher SDK version it requires. The latest Xcode (3.2.4( includes fixes so 4.2 can build with lower SDKs.
#2
09/07/2010 (6:13 pm)
This has been a constant issue...

See this thread:
http://www.torquepowered.com/community/forums/viewthread/98673

I've documented the few things needed to be done to make things build properly (and I can verify with the latest OS X build it does create a usable project).