xcode 在 OSX 上安装 GLFW
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19410945/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing GLFW on OSX
提问by Zotoaster
I've been all over the internet and I simply cannot find a way to install GLFW for OSX and use it with Xcode. A lot of articles use cmake for this, which I tried to install but I still can't access it from the terminal.
我一直在互联网上,我根本找不到一种方法来为 OSX 安装 GLFW 并将它与 Xcode 一起使用。很多文章为此使用了 cmake,我尝试安装它,但仍然无法从终端访问它。
I just need a simple step-by-step guide for installing it because I'm going to lose my mind.
我只需要一个简单的分步指南来安装它,因为我会失去理智。
Thanks
谢谢
回答by segfault
回答by informaton
If you are still running into trouble with this and want to use homebrew, change the install command to reflect the newer GLFW version (3 as of this writing)
如果您仍然遇到此问题并想使用自制软件,请更改安装命令以反映较新的 GLFW 版本(撰写本文时为 3)
brew tap homebrew/versions
brew install --build-bottle --static glfw3