OpenGL ES 2.0 SDK for Mac (iPhone)

This topic contains 2 replies, has 2 voices, and was last updated by  zghotlawala 6 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30338

    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

    #34493

    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
    and here: http://www.imgtec.com/forum/forum_posts.asp?TID=1038

    #34494

    Thanks  a lot… It really solves my issues Smile

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.