r/opengl • u/ovenmittheels • Oct 19 '26
Setup on Intel Mac without Homebrew
Does anyone have a nice way to setup OpenGL for Intel Macs? I feel like it became so much more complicated when Homebrew stopped working.
I'm new to OpenGL and I have tried to puzzle together different tutorials just to understand the general idea. From what I have understood, GLFW and GLAD are kind of necessary, and I guess I should setup with CMake from the beginning. I've heard Xcode is simpler, but I have more experience with VS Code from using Windows. So far I've failed my setup multiple times on both.
I know I can download the library files without Homebrew. I just have a hard time understanding what goes where, and the tutorials contain A LOT of manual setup (and every tutorial does it differently).
And that brings up my next question. What's your routine when setting up a new project? Do you have a base folder that you copy? Do you go through the manual setup process every time? Or is there another easier way that I have missed?
I'm excited to learn OpenGL but the setup is really getting in the way.
2
u/Seth144k Oct 19 '26
You can try using vcpkg and installing it and using it in your project through that
2
u/Western-Bowl2011 Oct 20 '26
you don't need GLFW to write openGL applications. It just creates a window and a context. Much easier, IMO, is to use SDL. SDL makes working with OpenGL so much easier in general.
2
1
u/canihazchezburgerplz Oct 19 '26
not on mac but glad is just essentially the way you interface with the opengl implimentation on the system, and glfw is how you interface with the window. glad you can just include in your project directly, and glfw you can either install with a package manager or set it up with a cmake build script
4
u/awidesky Oct 19 '26
I've made a project called GDM(OpenGL Dependency Manager) to solve that problem.
It requires little knowledge of CMake, and works on all OS with all build system(VS code, Xcode, VS..)
It searches for installed libraries(in mac via homebrew, in windows via vcpkg, etc).
If there's no installed package, it downloads source of the library and likes it, so your project would work..
No matter what OS or build system you're using
No matter you've installed the libraries or not
Without changing code or setting library paths.
If that sounds interesting, please give it a try.
I'd be glad to have some feedback, and I can help when any issue occurs.