在Xcode 4中添加一个OpenGL框架 [英] Adding an OpenGL framework in Xcode 4

查看:213
本文介绍了在Xcode 4中添加一个OpenGL框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Xcode 4进行C ++编程。我想添加一个框架,特别是一个OpenGL框架,我不太习惯于哪里的东西。它在帮助文档中说,我应该选择目标,并从那里,我得到的夏季窗格,我可以添加一个链接的框架/库。当我这样做,夏季窗格不会出现。它显示了当我的目标是一个可可应用程序,但由于我在C ++编程,我选择命令行工具,并从中选择语言。那么,我该如何将OpenGL框架添加到我的目标?

解决方案




也许在构建阶段(而不是摘要),然后单击链接二进制库,然后添加按钮,然后搜索OpenGL.framework
我不确定100%,这也是新的:)


I'm using Xcode 4 for my C++ programming. I want to add a framework, specifically an OpenGL framework, and I'm not quite used to where things are yet. It says in the help documentation that I should select the target, and from there I get the summery pane where I can add a linked framework/library. When I do that, the summery pane doesn't show up. It does show up when my target is a cocoa application, but since I'm programming in C++, I choose the command line tool, and select the language from there. So, how exactly do I add the OpenGL framework to my target?

解决方案


maybe go under "build phases" (instead of "summary") and then click "Link Binary With Libraries" and add button then search OpenGL.framework im not sure 100%, im new to this too :)

这篇关于在Xcode 4中添加一个OpenGL框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆