Installing GLFW on OSX
Asked Answered
S

2

8

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.

I just need a simple step-by-step guide for installing it because I'm going to lose my mind.

Thanks

Santanasantayana answered 16/10, 2013 at 18:25 Comment(2)
Do you mean you can't install cmake or you don't know how to use cmake?Midden
cmake has a bug where it can not install the command line tools.Dialectic
T
15

I use homebrew to install GLFW. Once brew has been configured, use the commands

brew tap homebrew/versions

brew install --build-bottle --static glfw2

Trite answered 11/12, 2013 at 3:33 Comment(0)
P
1

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)

brew tap homebrew/versions

brew install --build-bottle --static glfw3
Proudlove answered 28/1, 2017 at 0:46 Comment(1)
I got "Warning: glfw: --static was deprecated; using --without-shared-library instead!" but the installation worked. Thanks.Twentyone

© 2022 - 2024 — McMap. All rights reserved.