开发者

iphone opengl proper set up

Last night I attempted to play around with OpenGL in Xcode, but I couldn't run it on my ipod 2nd Gen (error with Can't run 'FirstOpenGL' - was built for 'armv7', but device requires 'armv6' or compatible architecture).

The architecture option was only armv7 but there was no armv6. I opened it up with OpenGL template and 开发者_StackOverflow中文版I searched around build option but wasn't able to figure out how to set it up. How can I resolve this problem?


Can you run on the simulator ?

Try changing the base SDK to something lower, see if that helps.

One last thing you could check is for this line:

EAGLRenderingAPI api = kEAGLRenderingAPIOpenGLES2;

and change it to:

EAGLRenderingAPI api = kEAGLRenderingAPIOpenGLES1;

Some old iPod cannot run OpenGL ES 2.0 so you need to use 1.1.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜