Game Development Community

Cannot build/run project in Xcode

by Lovre Simunovic · in iTorque 2D · 04/19/2011 (5:48 am) · 4 replies

Hello,

Xcode cannot compile any one project on my macbook (including sample projects):

image:

[img]http://s4.postimage.org/31km0yj38/Screen_shot_2011_04_19_at_2_44_21_PM.jpg[...

It gives 3 errors:

/../../../../engine/source/platformiPhone/platformGL.h
../../../../engine/source/platformiPhone/platformGL.h:27:40: error: platformIPhone/iPhoneGL2ES.h: No such file or directory

../../../../engine/source/platformiPhone/platformGL.h:27:40: error: platformIPhone/iPhoneGL2ES.h: No such file or directory

In file included from /Applications/iTorque2D_1_4_1/MyProjects/Aquarium/buildFiles/XCode_iPhone/../../../../engine/source/game/demoGame.cc
In file included from ../../../../engine/source/gui/core/guiCanvas.h
In file included from ../../../../engine/source/gui/core/guiControl.h
In file included from ../../../../engine/source/gui/core/guiTypes.h
In file included from ../../../../engine/source/dgl/gTexManager.h
In file included from ../../../../engine/source/platform/platformGL.h
PlatformIPhone/iPhoneGL2ES.h: No such file or directory in ../../../../engine/source/platformiPhone/platformGL.h
/../../../../engine/source/platformiPhone/iPhoneProfiler.h
../../../../engine/source/platformiPhone/iPhoneProfiler.h:5:30: error: core/TorqueConfig.h: No such file or directory

In file included from /Applications/iTorque2D_1_4_1/MyProjects/Aquarium/buildFiles/XCode_iPhone/../../../../engine/source/game/main.cc
Core/TorqueConfig.h: No such file or directory in ../../../../engine/source/platformiPhone/iPhoneProfiler.h


I really don't know where is the problem.
This is fresh install of xcode 4 and itorque 1.4.1
Please help and sorry for the bad english

About the author

Recent Threads


#1
04/19/2011 (7:48 am)
You're using the Sim target, please change Active Target to iTorque2DGame_device.
#2
04/19/2011 (7:49 am)
@Lovre - It sounds like your installation was corrupted somehow. Can you confirm these files exist in the directories:

engine/source/core/torqueConfig.h
engine/source/platformiPhone/iPhoneGL2ES.h

If they are there, then there is something else going on with the paths.
#3
04/21/2011 (12:56 am)
Hello,

@Alistar - That was the first thing I did - no result

@Michael - the files are there, the full path is:
/Applications/iTorque2D_1_4_1/engine/source/core/torqueConfig.h
/Applications/iTorque2D_1_4_1/engine/source/platformiPhone/iPhoneGL2ES.h
but in Xcode the path is:
../../../../engine/source
that is in Build Settings
Can you please instruct me how to change the paths or where could be the problem
#4
04/21/2011 (7:25 am)
Weird,

This should all work, pretty please amuse us and do a reinstall anyway. It's making little sense.