compile issue

hi, I tried to compile the HelloWorld in cocos2d-0.99.4-x-0.7.1 under iMac, Xcode 3.2, iOS SDK 3.2, I got 49 errors:

CompileC build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/Objects-normal/i386/cocos2d.o …/…/cocos2dx/cocos2d.cpp normal i386 c++ com.apple.compilers.llvmgcc42
cd /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone
setenv LANG en_US.US-ASCII
setenv PATH “/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 ~~x c++~~arch i386 fmessage-length=0pipe Wno-trigraphsfpascal-strings fasm-blocksO0 Wreturn-typeWunused-variable DUSE_FILE32APIDGL_GLEXT_PROTOTYPES DTARGET_OS_IPHONED__IPHONE_OS_VERSION_MIN_REQUIRED=30200 isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdkmfix-and-continue mmacosx-version-min=10.5gdwarf-2 iquote /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/cocos2d-generated-files.hmapI/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/cocos2d-own-target-headers.hmap I/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/cocos2d-all-target-headers.hmapiquote /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/cocos2d-project-headers.hmap F/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/Debug-iphonesimulatorI/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/Debug-iphonesimulator/include I/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/libxml2I/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx I/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/openglesI/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/DerivedSources/i386 I/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/DerivedSourcesisysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk c /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/cocos2d.cppo /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/build/HelloWorld.build/Debug-iphonesimulator/cocos2d-x.build/Objects-normal/i386/cocos2d.o

In file included from /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/include/CCPVRTexture.h:30,
from /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/include/cocos2d.h:77,
from /Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/cocos2d.cpp:25:
/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/opengles/GLES/glext.h:252: error: expected initializer before ‘AVAILABILITY_INTERNALIPHONE_4_0’
/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/opengles/GLES/glext.h:253: error: expected initializer before ‘AVAILABILITY_INTERNALIPHONE_4_0’
/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/opengles/GLES/glext.h:260: error: expected initializer before ‘AVAILABILITY_INTERNALIPHONE_4_0’
/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/opengles/GLES/glext.h:303: error: expected initializer before ‘AVAILABILITY_INTERNALIPHONE_4_0’
/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/opengles/GLES/glext.h:304: error: expected initializer before ‘AVAILABILITY_INTERNALIPHONE_4_0’
/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/opengles/GLES/glext.h:305: error: expected initializer before ‘AVAILABILITY_INTERNALIPHONE_4_0’
/Users/88/cocos2d-0.99.4-x-0.7.1/HelloWorld/iphone/…/…/cocos2dx/platform/iphone/third_party/opengles/GLES/glext.h:306: error: expected initializer before ‘AVAILABILITY_INTERNALIPHONE_4_0’

How to build the HelloWorld? Can anybody give some advice, thx.

The directory of “cocos2dx/platform/iphone/third_party/opengles/GLES/” is copied from Xcode 4.1,
maybe we can not do it like this. You can build it on Xcode 4.1 or above. We will fix it later.

I have created an issue: http://www.cocos2d-x.org/issues/325

thx, right here waiting for you :slight_smile: