Ok. So if I understand correctly, you’re trying to build the OpenGL Superbible examples back from the 6th edition, not the ones for the latest 7th edition. And your problem isn’t really with the Superbible example code itself, but rather just building the GLFW dependency. And building this on Macbook. Is this correct?
Re building GLFW on MacBook, here’s a related link, which you may already have found:
See info on this page on installing GLFW 3.
Here on Linux, I just fetched the OpenGL Superbible 7th edition examples using the information here:
which pulls from this git repro: sb7code (GitHub)
Then I built them like this:
In CMakeLists.txt, changed the "glfw3" in the following line to "glfw":
set(COMMON_LIBS sb7 glfw3 X11 Xrandr Xinerama Xi Xxf86vm Xcursor GL rt dl)
# Now you're ready to run binaries in this directory
Seems to work fine. But it does presume you have GLFW 3.x installed.
The reason for my one-line mod to
CMakeLists.txt was that my local GLFW 3 library is named
No problem. New users can’t post links (URLs). However, once you have a few more posts on the forums, then you’ll be able to post them.