# OpenGL ES 2.0 SDK for Mac (iPhone)

**URL:** <https://forums.imgtec.com/t/opengl-es-2-0-sdk-for-mac-iphone/891>\
**Category:** PowerVR Insider\
**Created:** [November 4, 2010, 11:38am UTC](https://forums.imgtec.com/t/opengl-es-2-0-sdk-for-mac-iphone/891 "2010-11-04T11:38:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zghotlawala](https://avatars.discourse-cdn.com/v4/letter/z/8edcca/32.png) [@zghotlawala](https://forums.imgtec.com/u/zghotlawala)\
**Post date:** [November 4, 2010, 11:38am UTC](https://forums.imgtec.com/t/opengl-es-2-0-sdk-for-mac-iphone/891/1 "2010-11-04T11:38:15Z")

</div>

Dear Concerned,  
Can you please guide why I’m not able to run any single projects listed in the tutorial folder and demos folder. Currently I’m using iOS 4.1 ver. as a base sdk & simulator for testing purpose. I just tried to build the project & it fires approx 118 errors. Some of them are listed down for reference purpose.  
Compilation Error:  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp: In function ‘EPVRTError PVRTShaderLoadSourceFromMemory(const char\*, GLenum, GLuint\*, CPVRTString\*, const char\* const\*, GLuint)’:  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:52: error: ‘glCreateShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:533)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:54: error: ‘glShaderSource’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:605)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:55: error: ‘glCompileShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:527)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:59: error: ‘glGetShaderiv’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:574)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:63: error: ‘glGetShaderiv’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:574)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:65: error: ‘glGetShaderInfoLog’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:575)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:68: error: ‘glDeleteShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:539)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp: In function ‘EPVRTError PVRTShaderLoadBinaryFromMemory(const void\*, size\_t, GLenum, GLenum, GLuint\*, CPVRTString\*)’:  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:94: error: ‘glCreateShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:533)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:109: error: ‘glShaderBinary’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:604)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:113: error: ‘glDeleteShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:539)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:122: error: ‘glDeleteShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:539)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp: In function ‘EPVRTError PVRTCreateProgram(GLuint\*, GLuint, GLuint, const char\*\*, int, CPVRTString\*)’:  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:197: error: ‘glCreateProgram’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:532)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:199: error: ‘glAttachShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:508)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:200: error: ‘glAttachShader’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:508)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:204: error: ‘glBindAttribLocation’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:509)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:208: error: ‘glLinkProgram’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:596)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:210: error: ‘glGetProgramiv’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:571)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:214: error: ‘glGetProgramiv’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:571)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:216: error: ‘glGetProgramInfoLog’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:572)  
  
/Users/zahur/Desktop/Zahur/SDKPackage\_OGLES2/Tools/OGLES2/Build/iPhone/…/…/PVRTShader.cpp:222: error: ‘glUseProgram’ is unavailable (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:637)  
  
Please guide me how can I proceed further  
Thanks & Regards,  
Zahur

---

<div class="post-metadata">

**Author:** ![martin-kraus](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@martin-kraus](https://forums.imgtec.com/u/martin-kraus)\
**Post date:** [November 4, 2010, 9:39pm UTC](https://forums.imgtec.com/t/opengl-es-2-0-sdk-for-mac-iphone/891/2 "2010-11-04T21:39:31Z")

</div>

Did you also set the “Base SDK” of the targets of the project? And the “iOS Deployment Target” of the project and target? Also, the “Base SDK” and “iOS Deployment Target” of any included projects and their targets (e.g. PowerVR OpenGL ES tools).  
  
See also here: [https://www.imgtec.com/forum/forum\_posts.asp?TID=1000](https://www.imgtec.com/forum/forum_posts.asp?TID=1000)  
and here: [www.imgtec.com/forum/forum\_posts.asp?TID=1038](https://www.imgtec.com/forum/forum_posts.asp?TID=1038)

---

<div class="post-metadata">

**Author:** ![zghotlawala](https://avatars.discourse-cdn.com/v4/letter/z/8edcca/32.png) [@zghotlawala](https://forums.imgtec.com/u/zghotlawala)\
**Post date:** [November 6, 2010, 3:43am UTC](https://forums.imgtec.com/t/opengl-es-2-0-sdk-for-mac-iphone/891/3 "2010-11-06T03:43:02Z")

</div>

Thanks&nbsp; a lot… It really solves my issues&nbsp; ![Smile]()
