在Mac OS X上编译OpenGL SOIL [英] Compiling OpenGL SOIL on Mac OS X

查看:184
本文介绍了在Mac OS X上编译OpenGL SOIL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何链接或编译SOIL( http://lonesock.net/soil.html )到Mac OS X上的C ++ OpenGL项目?

How would I link in or compile SOIL (http://lonesock.net/soil.html) into my C++ OpenGL project on Mac OS X?

推荐答案

在更新版本的Mac OS X上,必须编辑make文件并添加

On newer versions of Mac OS X, such as Leopard, you'll have to edit the make file and add

'-arch 1386 -arch x86_64'

添加到Makefile的CXX宏中。编译完成后,您还必须链接项目中的CoreFoundation.framework。因此,您的最终构建命令可能看起来像

to the CXX macro of the Makefile. After compiling, you'll also have to link in the CoreFoundation.framework in your project. So your final build command might look something like

gcc -Wall -lSOIL -framework OpenGL -framework GLUT -framework CoreFoundation

这篇关于在Mac OS X上编译OpenGL SOIL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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